[RESOLVED] my images keep dissapearing?? please help
Here's the code:
//create image array
var tt=new Array("assets/ww.jpg","assets/discussion.gif","assets/officeSpaceSmall.jpg","assets/projects.jpg");
<a href="" id="l1" onclick="changeit('pic',tt);"><h6>tutoring</h6></a>
<a href="" id="l2" onclick="changeit('pic',tt);"><h6>discussions</h6></a>
<a href="" id="l3" onclick="changeit('pic',tt);"><h6>workshops</h6></a>
<a href="" id="l4" onclick="changeit('pic',tt);"><h6>projects</h6></a>
<a href=""><img src="assets/ww.jpg" name="pic" width="400" height="258" /></a>
The natural anchor event fires (reload) after completing the function call. Prevent this with return false:
<a href="" id="l1" onclick="changeit('pic',tt);return false;"><h6>tutoring</h6></a>
Thank you thank you!!!!
I forgot about that! Now to get the scrolling working :-) I'm going to try to execute a loop on the array...
not sure that I follow
The w3c article appears to be talking about ids and names (id="",name=""). I don't have any strictly numeric ids (id='l1' etc is found). The only numeric identifiers that would be used would be for the array index [0,1,2, ...]
It appears that that would be a valid sgml type for an array. Am I mistaken? Were you just giving me a heads up? Please explain. I definitely want to understand.
Sorry my mistake, the 'l' looks like a '1' in my editor
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread