[B]Hello I’m very new to javascript; in fact I only started looking into writing it myself about an hour ago. Anyway, I’m trying to find a way of changing the class of a <div>, when there is a mouseover. I’ve already tried doing something like this:
<html>
<head>
<script type=”text/javascript”>
function jumpmenu()
{
document.write=(“class=”jumpitem””)
}
function jumpmenu2()
{
document.write=(“class=”jumpitem2″”)
}
<script>
</head>
<body>
<div onmouseover=”jumpmenu()” onmouseout=”jumpmenu2″>
</body>
</html>
[B]…but it doesn’t work. I fear I’ve taken completely the wrong approach. ? Could somebody tell me what to do. Also, does anybody know a good site for learning the basics of javascript?
Thanks