HighDots Forums  

object.style=???

alt.html.dhtml alt.html.dhtml


Discuss object.style=??? in the alt.html.dhtml forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Miguel De Anda
 
Posts: n/a

Default object.style=??? - 02-03-2004 , 08:42 PM






I've got a script that can't really use a class definition for a style and
must instead use a style="..." in the div tag. I also need a way to define
an mouseover style for this div. I have a function that works something like
this:

function getDiv(content, styleoff, styleon) {
return '<div style="' + styleoff + '" ' +
'onMouseOver="this.style=\'' + this.styleon + '\';">' +
content + '</div>';
}

It will also need a mouseout to put the initial style back, but I can't get
the style set. I know that there is style.___ = but I don't know what I'm
going to get from the string. Any suggestions?



Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.