HTML Code:
<html>
<head>
<script src="javascript2.js">
</script>
</head>
<body>
<a href="http://www.google.com/" style="color: blue; " onmouseover="color()" onmouseout="color2()" id="colorfull"> TEXT </a>
</body>
</html>
javascript2.js
HTML Code:
function color(){
document.getElementById('color').style.color='red';
}
function color(){
document.getElementById('color').style.color='blue';
}
For some reason I couldn't get it to work. I did some reasearch and apparently
Code:
document.getElementById('color').style.color='color';
won't work in internet explorer. I'm not sure what you could do to make it work though. Does anyone have any suggestions as to what you could do instead?
Bookmarks