
Feb 15th, 2008, 11:00
|
|
SuperMember
|
|
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
Re: Add / Delete CSS classes on hover
Something like this:
- Code: Select all
function hoverClass() {
var x=document.getElementById("block")
var y=document.getElementById("pix")
x.onmouseover = function(){ y.className="on"}
x.onmouseout = function() { y.className="" }
}
|