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
Aside from much of the data in the page being proprietary it would be a lot of work to cull out a working example. Yes the markup is valid XHTML 1.0 Strict. The CSS isn't valid due to a few proprietary MS attributes (removing them didn't solve the problem) but apart from those I only had a few warnings about fonts and background colors. Anyway I opted for a temporary fix until I can rewrite the page from scratch. I added IDs and an onmousedown handler to all the links and adapted a function from one of my personal projects. [code]function bInset(ob) { if (Mozilla) { ob.style.borderStyle='inset'; if (bCache) D.getElementById(bCache).style.borderStyle='outset'; bCache=ob.id; } }[/code] Edit: Changed line 4 to if (bCache&&bCache!=ob.id) D.getElementById(bCache).style.borderStyle='outset'; This is called from each link using onmousedown="bInset(this);" and it yields the desired effect. [small](Edited by [internallink=2169]ZOD[/internallink] on 11-02-2005 08:33)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »