web experts, need your help

Czar

Lifer
Oct 9, 1999
28,510
0
0
I'm trying to do a bit of javascript and this is what I want to do

onmouseover="this.style.border-left='1px solid black'"

but I cant, because border-left is not allowed in javascript, but border-left is allowed as a css item. So what ways do I have to make this work?
 

Alphathree33

Platinum Member
Dec 1, 2000
2,419
0
0
Two ways you can do it.

(1) Change the class of the object to a class that has a 1px border left when you mouse over (therefore you can define your .class { border-left: 1px solid black }

(2) this.style.borderLeft = "1px solid black";

:)
 

Czar

Lifer
Oct 9, 1999
28,510
0
0
1. I'v had problems getting the change class on objects to work on other browsers than IE so that doesnt work.

2. WORKS!!! thanks :D

sorry about your other problem, way out of my legue though I managed to scrable something like that togther I think, very dirty and ugly work

http://212.30.195.192/edo/
its the menu there