Script problem NEED HELP

admin

Administrator
Staff member
I am not very good at javascript, and i was wondering if anyone could rewrite this script so that it will work in a Mozilla browser (from <!-- w --><a class="postlink" href="http://www.mozilla.org">www.mozilla.org</a><!-- w -->). someone told me how to fix it, but i still didnt understand what they were talking about. ill show ya the message...
__________
> is there any way to rewrite the script or the page so that it performs
> the same function in windows ie then?

I thought I had given sufficient pointers to do that in my comments...

As for opacity. the code will look very similar; you'll need to set object.style.MozOpacity instead of setting object.filters.whatever (and probably condition that on the presence of document.all).

Boris
__________

I have the script at <!-- m --><a class="postlink" href="http://www.windedhero.com/cgi-bin/fade.js">http://www.windedhero.com/cgi-bin/fade.js</a><!-- m -->.
the goal of this script is to make an object fade to 80% opacity when a mouse passes over it, and to return to 100% opacity after the mouse moves out. there is an active example at <!-- m --><a class="postlink" href="http://www.windedhero.com/board/index.shtml">http://www.windedhero.com/board/index.shtml</a><!-- m -->, as it works in microsoft internet explorer, but it will not work in a Mozilla explorer. and in case you're too lazy, i have attached fade.js as a text document to this post.
 
Back
Top