The script below does change the link colors onmouseover and onmouseout:
<script name="javascript">
function overAndOut(oEl) {
if (oEl.style.color == 'orange')
oEl.style.color = 'blue';
else oEl.style.color = 'orange';
}
</script>
<a href="myfile.htm" onmouseover="overAndOut(this);"
onmouseout="overAndOut(this);">LINK CHANGES COLORS OKAY HERE</a>
But if I put the other stuff with the onmouseover and onmouseout the text doesnt change colors. Is it something to do with the "this" part or anythingelse someone could see that I am missing?
<a href="myfile.htm"
onMouseOver="javascript:window.status='MyText...';return true;overAndOut(this);"
onMouseOut="javascript:window.status='';return true;overAndOut(this);">
CHANGE LINK TEXT COLOR ON MOUSE OVER HERE</a>
<script name="javascript">
function overAndOut(oEl) {
if (oEl.style.color == 'orange')
oEl.style.color = 'blue';
else oEl.style.color = 'orange';
}
</script>
<a href="myfile.htm" onmouseover="overAndOut(this);"
onmouseout="overAndOut(this);">LINK CHANGES COLORS OKAY HERE</a>
But if I put the other stuff with the onmouseover and onmouseout the text doesnt change colors. Is it something to do with the "this" part or anythingelse someone could see that I am missing?
<a href="myfile.htm"
onMouseOver="javascript:window.status='MyText...';return true;overAndOut(this);"
onMouseOut="javascript:window.status='';return true;overAndOut(this);">
CHANGE LINK TEXT COLOR ON MOUSE OVER HERE</a>
Comment