I want to (i hope it`s possible) call the script above in a css class like
... somehow call the script above
then in my html code
<img src="./images/placeholder.gif" class="carouse" />
so am trying to find a work around this and am hoping the above approach will do it.
Or how else can i get this to work. am a little new to js.