Glossary Item Box
Swaps style information for any two HTML elements.
[JavaScript] pwSwapStylespwObj1, pwObj2)
This method "swaps" some visual style properties of two HTML elements. The style properties swapped are backgroundColor, borderColor, color, and borderStyle.
[JavaScript] The following example demonstrates using the pwSwapStyles method to change the visual appearance of two HTML elements.
<DIV id='div1' style='border-color:#434343;border-style:solid'></DIV>DIV #1</DIV> <DIV id="div2" style='border-color:#434343;border-style:solid'></DIV>DIV #2</DIV> <script language="javascript"> pwSwapStyles(div1, div2); </script>
Send comments on this topic.
Documentation version 3.2.0.0.
© 2009 Dart Communications. All rights reserved.