OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Assign New Class to Object
This page's ID:
11111
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
Been trying to figure this one out, but I'm not sure what I'm looking for and I'm exhausted. I want to use a function to change the class assigned to an object. Say I have two classes, like so ... .class1 { blah } .class2 { blah } ... and to start, I have an image assigned class1 ... <IMG ID="myImage" CLASS="class1" SRC ...> Depending on some factor (probably to be discussed next if I get stuck), I want to change myImage to use class2. I'm looking for something like [b]document.myImage.class = "class2"[/b] -- am I even close? (This project is taking way, way too long.) [url=http://www.texastwisted.com] [img]http://www.bigwaste.com/asylum/sig_incoming_call.gif[/img] [/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »