Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can I get help with "mouse-over" font color changes anyone?

0 views
Skip to first unread message

Phaser2FunkFunk

unread,
Aug 8, 1998, 3:00:00 AM8/8/98
to WmWallace!
Put the following script justunder your opening body tag(bear in mind it will only work in IE4/5):

<SCRIPT LANGUAGE="JScript">

<!--
{
document.body.onmouseover=makeCool;
document.body.onmouseout=makeNormal;
}

function makeCool() {
        src = event.toElement;
        if (src.tagName == "A") {
            src.oldcol = src.style.color;
            src.style.color = "White";
        }
    }

function makeNormal() {
        src=event.fromElement;
        if (src.tagName == "A") {
            src.style.color = src.oldcol;
        }
 
   }

//-->

</SCRIPT>

Now every time you use <a href, you will get a mouseOver text effect.
 

WmWallace! wrote:

 Does anyone know how to add code that changes the color of a hyperlink's font when someone mouses over the hyperlink? Any help would be appreciated. My email address is: calv...@hotmail.com
 

--
Greg Fyans, Phaser2FunkFunk
Phunky's Place:
http://freespace.virgin.net/s.fyans/index.htm
 

0 new messages