[thelist] Javascript Float Detection

liorean liorean at f2o.org
Sat May 15 07:05:26 CDT 2004


Iain Gardiner wrote:
> I am an utter Javascript noob so I need a little help on something that may
> be ridiculously simple.
> 
> I need to use an if() loop to determine whether or not a specific element
> has a float applied to it.  Is this possible and, if so, what would I put in
> the brackets to do this?
 
if(elm.style.cssFloat&&elm.style.cssFloat!='none')
    /* code */;


-- 
David "liorean" Andersson

ViewStyles, ViewScripts, SwitchStyles and GraphicsInfo bookmarklets:
<http://liorean.web-graphics.com/>
Hangouts:
<http://codingforums.com/> <http://yourmusicforums.com/>


More information about the thelist mailing list