Your Ad Here


Go Back   VIPrapid.com > WEBMASTERS ZONE > Programming

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-05-2009, 08:31 PM
VIP
 

Join Date: Mar 2009
Location: Before Internet
Posts: 80
Arrow Dhtml Css

JavaScript can be used to change the style of an HTML element:

Examples

Change the style of the current element
How to change the style of an element using the this object.

Change the style of a specific element
How to change the style of an element using getElementById.

JavaScript, DOM, and CSS

With HTML 4, JavaScript and the HTML DOM can be used to change the style any HTML element.

To change the style the current HTML element, use the statement:

Code:
style.property=new style
or more correctly:
Code:
this.style.property=new style

To change the style of a specific HTML element, use the statement:

Code:
document.getElementById(element_id).style.property=new style
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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT. The time now is 04:08 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0
Ad Management by RedTyger
eXTReMe Tracker