Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

More problems changing SRCs.

Status
Not open for further replies.

TheOrange

Programmer
Jun 23, 1999
14
US
Alright. This problem is in reference to the the site at<br>
It only works in Netscape 4.0 and higher for now, so don't go there if you're not using Navigator 4 or higher.<br>
If you click on the button "Show Answer" the src of the image right next to the word "benzene" should change to an arrow, but it doesn't. The command is worded like this:<br>
onclick="document.blankArrow3.src = 'images/garrow.gif'<br>
the directory, and names are all correct here.<br>
Now for the weird and stupid part. Click on the Radio button next to the word "Benzene", Voila the green arrow appears and its the exact same command!! And now if you reload the page, and click on "Show Answer" the green arrow now appears! If you quit netscape and restart netscape, the same problem arises untill you click on the radio button again. This makes no sense, any help would really be appreciated.
 
I just found that if I make an invisible layer, and place the arrow image in the layer. The "Show Answer" button works, it changes the src. Pointing to the conclusion that if you want to change an SRC you have to already have displayed that image somewhere in netscape at sometime that current netscape session before, which sounds stupid. Please tell me this is wrong.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top