Q&A



I'm trying to bring about a little bit of interaction in this site. I've received a couple of questions from people with problems they are facing with Javascript and hope to provide solutions. This page will act as a forum where u can put down ur questions and I will try and solve. It's also a place where all the questions will be listed so that u can browse through previous questions and find solutions to ur problems. I hope this helps a lot of u Javascripters present on the net.

Ask a question.


Question 1 : OnMouseOver images and Netscape 2.0
I was wondering if you could help me. I was learning how to program the onmouseover command, however, I've discovered that it does not work with Netscape 2.0. As the user moves his/her mouse over the image a Javascript error appears. I have it working in Netscape 3.0, but not in Netscape 2.0. Additionally, I found another programmer who had a similar onmouseover command, but it did not work in Netscape 2.0 either. Does the onmouseover command not work in Netscape 2.0? Help!!! I am sure there are lots of users out there still using N 2.0, but these folks cannot view our page.
Looking forward to hearing back from you.
-Rob Gibson
Answer:
Netscape 2.0 does support onMouseOver however in 2.0 an image is not treated as an object therefore u cannot change an image's source once the image is displayed. Infact even Internet Explorer 3.0 does not support dynamic image source changing. The image is treated as an object only in Netscape Navigator 3.0 not 2.0 hence changing it's source is not possible.

Question 2 : List of examples where OnMouseOver can be used.
Is there some kind of a list that handles all the onmouseover and onmouseout events? I search the web but i only found site's that have the code in there page. If you know of such a site, can you e-mail me the url.
-Greetz, jeroen.
Answer:
Here is a list of some of the things you could do by trapping the OnMouseOver and OnMouseOut events for any link.
1. Statusbar messages.
2. Changing Image's.
3. Popup alertboxes or Windows.
4. Load a new url when the cursor passes over a link.
5. Play music when the cursor passes over a link. Note: You can use OnMouseOver and OnMouseOut with any kind of link on an html page. Hence the possibilities are vast. All things like these stated above can be done trapping the OnMouseOver and OnMouseOut events associated with a link.


Ask a question.


This page is maintained by Sanjay Shetty.
Send mail to sanjay@dbsindia.com.

U R visitor no .