OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
[CSS] Link border problem
This page's ID:
26942
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I think what poi is suggesting is that as opposed to putting code in each link you should dynamically add the onmouseover actions based on class name. This takes the functionality away from the individual links and allows you to add it to the class. So name these links' class something link "inset-link" Then loop through like in his example to add the individual mouse events. Similarly instead of using: if (bCache) D.getElementById(bCache).style.borderStyle='outset'; Just do: if (bCache) D.getElementById(bCache).className = 'outset-style' These methods allow the developer a lot more leeway without having to touch the code. [img]http://www.bitdamaged.com/graphics/bitsig.gif[/img] .:[ Never resist a perfect moment ]:.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »