Webmaster Forum Rules | Posting Guide | Contact Us | Testimonials | Contributing Geek Program | Advertise on Geek/Talk
Welcome to the GeekTalk Webmaster Discussion Forums from GeekVillage.com

Click Here To Register. It's Free!

Go Back   geek/talk: Signature-free discourse for serious web publishers > YOUR CREATION: Building & Maintaining A Web Site > Web Development - Programming / Coding
User Name
Password
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 02-10-2016, 02:59 AM   #1
beingchinmay
Registered User
 
Join Date: Jun 2015
Posts: 246
Arrow How to change style on an element?

Between CSS and javascript is a weird symmetry. CSS style rules are layed on top of the DOM. The CSS property names like "font-weight" are transliterated into "myElement.style.fontWeight". The class of an element can be swapped out. For example:

document.getElementById("myText").style.color = "green";
document.getElementById("myText").style.fontSize = "20";






Hair Building Fiber | Step Up Height Increaser
beingchinmay is offline   Reply With Quote
Reply

Bookmarks

Tags
asp, php

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Could you review HoopsAvenue.com please? Magic2K2 Web Design and Webmaster Issues 14 09-29-2001 08:51 PM
Can you change the colors or UI of geek/talk? Steve_S Help Me - FAQ - Lost Geek (Read Only) 0 07-14-2001 01:43 PM
Free DNS for you to change record online immediately CYBERWORLD Web Design and Webmaster Issues 2 08-23-2000 06:19 PM
What exactly do you change in ValueClick code for individual pages? Ghiech Making Money with CPC and/or CPM Programs 1 10-04-1999 05:26 PM

Please support our advertisers. They ensure our survival.

All times are GMT -5. The time now is 03:06 PM.


GeekVillage.com is copyright © 1998-2015 Curiosity Cave - Science gifts for clever kids. All rights reserved.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.