melon
08-13-2002, 09:29 AM
okay! got a new problem (as an absolute newbie ... so be patient ;-) )
got this code:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<script language="JavaScript">
function changeColor(obj) {
document.all[obj].style.color="red";
}
</script>
<body bgcolor="#FFFFFF" text="#000000">
<a href="#" name="one" onmouseover="JavaScript:changeColor('two');">hello</a><br>
<a href="#" name="two">bye</a>
</body>
</html>
now my question(s):
- I also want to change the colour of "hello" OnMouseOver "bye" ...
_ How can I include my css. (when "hello" is class 1 and "bye" is class 2)
and finally:
- How can I change both at the same time (into different colours / different classes)?
- It doesn't work with IE 6 ...???
thanks for help!
got this code:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<script language="JavaScript">
function changeColor(obj) {
document.all[obj].style.color="red";
}
</script>
<body bgcolor="#FFFFFF" text="#000000">
<a href="#" name="one" onmouseover="JavaScript:changeColor('two');">hello</a><br>
<a href="#" name="two">bye</a>
</body>
</html>
now my question(s):
- I also want to change the colour of "hello" OnMouseOver "bye" ...
_ How can I include my css. (when "hello" is class 1 and "bye" is class 2)
and finally:
- How can I change both at the same time (into different colours / different classes)?
- It doesn't work with IE 6 ...???
thanks for help!