Random gifs or photos is what Im trying to accomplish.
Heres what I have so far.
<<set $image = either("image1.webm","image2.jpg",image3)>>
(print: '<img src="' + $image + '">')
<img src="$image">
Also after I have this figured out Id like to know if it would be simpler to use tags or arrays to ensure the same random image doesn't get pulled again.
Looking at another persons code posted below, he/she seems to use macros.
<<set $vid = $image>><<video $vid>>
But this doesnt work for me when I use certain file types and I cant find the code of the video macro.
Heres what I have so far.
<<set $image = either("image1.webm","image2.jpg",image3)>>
(print: '<img src="' + $image + '">')
<img src="$image">
Also after I have this figured out Id like to know if it would be simpler to use tags or arrays to ensure the same random image doesn't get pulled again.
Looking at another persons code posted below, he/she seems to use macros.
<<set $vid = $image>><<video $vid>>
But this doesnt work for me when I use certain file types and I cant find the code of the video macro.