i'm writing a menu in javascript.i want the links to change onmouseover and onmouseclick and of course onmouseout
but when i roll over the links i get object expected error
i defined javascript class as follows
function Menu(variables here){
assigning here
this.display = function(){
document.write here eg
document.write('<li><a href=\"path\" id=\"c\" onmouseover=\'changeLikStyleOn("c")\'></a>');
}
function changeLinkStyleOn(id)
var li= document.getElementById(id);
style definition here
}
function changeLinkStyleOut(id){
var li= document.getElementById(id);
style definition here
}
}
Thank You
but when i roll over the links i get object expected error
i defined javascript class as follows
function Menu(variables here){
assigning here
this.display = function(){
document.write here eg
document.write('<li><a href=\"path\" id=\"c\" onmouseover=\'changeLikStyleOn("c")\'></a>');
}
function changeLinkStyleOn(id)
var li= document.getElementById(id);
style definition here
}
function changeLinkStyleOut(id){
var li= document.getElementById(id);
style definition here
}
}
Thank You