Francisco Dias
11-29-2007, 03:52 PM
i'm developing a menu and I'm having some problems.
I wanted to do a general code move items on a menu.
example:
before after
_______ ________
|_______ |________
|_______ |________
|_______ |________
|_______ |________
it is activated by mouseover, and I wanted to create a function that covered all buttons at once.
function movemenu(x) //x is the name of the img//
document.[x value].style.left =....
but nothing happens!!
Resume: I wanted to call name (or id) as a variable
I wanted to do a general code move items on a menu.
example:
before after
_______ ________
|_______ |________
|_______ |________
|_______ |________
|_______ |________
it is activated by mouseover, and I wanted to create a function that covered all buttons at once.
function movemenu(x) //x is the name of the img//
document.[x value].style.left =....
but nothing happens!!
Resume: I wanted to call name (or id) as a variable