CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 6th, 2002, 11:12 AM
shawn gibson shawn gibson is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Posts: 120 shawn gibson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 18 m 25 sec
Reputation Power: 12
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

shawn

Last edited by shawn gibson : April 6th, 2002 at 11:15 AM.

Reply With Quote
  #2  
Old April 6th, 2002, 12:41 PM
degsy degsy is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2001
Posts: 1,882 degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 Days 21 h 19 m 30 sec
Reputation Power: 18
<div Id="menuItem2_1" onMouseOver="this.style.cssText='margin: 0px; border: solid 1px #00F7FF'">TEST</div>

Reply With Quote
  #3  
Old April 6th, 2002, 03:41 PM
mrrichardfeder mrrichardfeder is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2001
Posts: 765 mrrichardfeder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 45 sec
Reputation Power: 12
<style type="text/css">

.menudef {
position: relative;
left : 0px;
padding: 1px;
border-width: 0px;
cursor: hand;
}
.menuOver {
position: relative;
left: -1px;
padding: 1px;
border: 1px #00f7ff solid;
cursor: hand;
}

</style>

<span id="menuItem2_1" class="menudef"
onmouseover="this.className='menuOver'"
onmouseout="this.className='menudef'">
TEST</span>

Reply With Quote
  #4  
Old April 6th, 2002, 03:53 PM
shawn gibson shawn gibson is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Posts: 120 shawn gibson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 18 m 25 sec
Reputation Power: 12
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

shawn

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > onMouseOver CSS command: add a border via JS

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap