|
-
Nov 13th, 2002, 11:33 AM
#1
Thread Starter
Fanatic Member
(JAVASCRIPT HELP) Fading Link
I downloaded a script from Planet Source Code to fade my links when moused over. Here is the relavant code I need help with:
Code:
function domouseover() {
if(document.all){
var srcElement = event.srcElement;
if ((srcElement.tagName == "A" && autoFade) || srcElement.className == "fade" || (sloppyClass && srcElement.className.indexOf("fade") != -1))
fade(startColor,endColor,srcElement.uniqueID,stepIn);
}
}
I have bolded the portion in question. How can I make it where the event, "domouseover()" only occurs if the element has "onmouseover='domouseover()'"? Right now, every link on my page fades in and out and that is undesirable. Also, where can I get resources telling me how to do this kind of stuff myself? Thanks, Jeremy
He who listens well, speaks well.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|