April 6th, 2002, 12:12 PM
onMouseOver CSS command: add a border via JS
How to I impliment a JS CSS command to include a border around "TEXT" (margin: 0px; border: solid 1px #00F7FF) WITHIN the following line, during the onMouseover:
<div Id="menuItem2_1" onMouseOver="JS CODE FOR BORDER">TEST</div>
I can't add an <a> class because the script code doesn't work properly with it
Last edited by shawn gibson; April 6th, 2002 at 12:15 PM.
April 6th, 2002, 01:41 PM
<div Id="menuItem2_1" onMouseOver="this.style.cssText='margin: 0px; border: solid 1px #00F7FF'">TEST</div>
April 6th, 2002, 04:41 PM
left : 0px;
border: 1px #00f7ff solid;
<span id="menuItem2_1" class="menudef"
April 6th, 2002, 04:53 PM
After the first post (thanks!!!), which worked on a single instance, but seemed to need id-ing (from the 'object undefined' I got for the rest of the 3 billion instances), I tried to 'class' the whole thing and put it into a span, and otherwise remove the inline coding (cuz that stuff drives me nuts). Thanks Mr. Feder. I'm sure this will work
I wish I could think abstractly