OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Can I assign a script to a CSS class?
This page's ID:
21934
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
If you want to modify the CSS when a mouse moves over an object you will need to make use of the :hover selector. I haven't used IE in a long while, and I only open it up to test something I am working on to make sure that it works. But I believe that :hover only works on an anchor link. This is a bit annoying but you can achieve the functionality you are looking for by linking two instances together. .class a { ... } .class a:hover{ } which would allow for the hover functionality. But you would have to have your content encapsulated in an anchor. Which isn't always what you might want. I am sure you could achieve this functionality using Javascirpt but you could not trigger the javascript through CSS. The Scripting sits on top of the CSS. This means that the Script can access the CSS but the CSS doesn't even know that the Scripting exists, and therefore does not have the ability to access it. You would have to use onmouseover="somecode" if you want javascript functionality. [url=http://www.codetown.org] [img]http://www.codetown.org/img/sig/robot_002.gif[/img] [/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »