Glossary Item Box

PowerWEB TextBox for ASP.NET

pwSwapStyles Method

Swaps style information for any two HTML elements.

[JavaScript]
pwSwapStylespwObj1, pwObj2)

Parameters

pwObj1
Required. The HTML element which will take on the style properties of pwObj2.
pwObj2
Required. The HTML element which will take on the style properties of pwObj1.

Remarks

This method "swaps" some visual style properties of two HTML elements. The style properties swapped are backgroundColor, borderColor, color, and borderStyle.

Example

[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>
	

In This Section

Assembly Overview
Contains classes that support and enable creation of HTML-editing capable web applications.
Client-Side API
Describes client-side JavaScript functions that are used by PowerWEB TextBox for ASP.NET.

 

 


Send comments on this topic.

Documentation version 3.2.0.0.

© 2009 Dart Communications.  All rights reserved.