I’ve created a page that has three hyperlinks, with the intention that when the link is clicked, an image will swap. Pretty rudimentary javascript, i’d imagine.
Problem is, that sometimes (?) the image doesn’t appear, especially on a ‘fresh’ computer. You can however get it to show by right-clicking the image and selecting ‘Show Picture’. Then it works. Not a very desireable requirement. Any ideas on how to correct it?
Here’s my page- [URL]http://www.off-road.com/atv/kidskorner/suspension4.html
And the hyperlink code (javascript is actually not two words)-
[CODE]
<a href=”javascript:” onclick=”document.MyImage.src=’images/suspen2.gif’;”>
<b><u>here</u></b></a>to show table, or
<a href=”javascript:” onclick=”document.MyImage.src=’images/suspen1.gif’;”>
<b><u>here</u></b></a> to show gragh,<br>or
<a href=”javascript:” onclick=”document.MyImage.src=’images/PC160001_small.JPG’;”>
<b><u>here</u></b></a>to show the tires </p>