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