[jQuery] buildStyleString
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=675345019-15122006>> </SPAN>I'm looking
for some help in building a plugin that would get <SPAN
class=675345019-15122006>the</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=675345019-15122006>> </SPAN>computed
styles of an element and build an inline style string for</DIV>
<DIV dir=ltr align=left><SPAN class=675345019-15122006>></SPAN> that
element. I assume it'd be something like looping through</DIV>
<DIV dir=ltr align=left><SPAN
class=675345019-15122006>></SPAN> jQuery(el).css("styleName") and
sticking the results together. <SPAN class=675345019-15122006><FONT
face=Arial color=#0000ff size=2> </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=675345019-15122006></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=675345019-15122006><FONT face=Arial
color=#0000ff size=2>I'm curious, how would this be used?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=675345019-15122006></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=675345019-15122006><FONT face=Arial
color=#0000ff size=2>Do you want only the results of inline styles,
or the current values of all style properties whether they're inline
or inherited? If you plan to round-trip this back to the tested element as an
inline style, would the interference with css stylesheet rules be a
problem?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=675345019-15122006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=675345019-15122006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=675345019-15122006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=675345019-15122006></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=675345019-15122006></SPAN><SPAN
class=675345019-15122006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV></BODY></HTML>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/