Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
03-10-2012, 02:16 AM #1
- Join Date
- Mar 2012
- Thanked 0 Times in 0 Posts
How to create a timer to run an HTML click 'class'
not sure if this belongs in java or HTML... sorry!
So I am very new to JS and I have been messing around with a template file. I have been lucky so far in searching and finding most of my issues, but I don't think I know exactly what to search for in this issue.
Here it is:
There is a picture, that when clicked, runs part of a JS file that changes the background on the website.
<a href="#" class="next"><img src="images/marker_right.png" alt="" class="img"><img src="images/marker_right_active.png" alt="" class="img_act"></a>
Ultimately, I want the background to change by itself if the user does not click on the image, every 20 seconds.