| Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free! |
I need javascript that controls the
|
Original Message
|
Name: SA-OSAMA
Date: March 31, 2005 at 13:39:32 Pacific
Subject: I need javascript that controls theOS: WINXPCPU/Ram: 2.4GHZ/512 MB DDR Ram |
Comment: Guys i need a javascript that could change the font color simultanueously on the web page after every 2 seconds... I know how to change the back ground color but what i am looking for is to change the theme after every 2 second... For eg (WHITE_BACKGROUND+YELLOW_FONT) and after 2 secs it becomes (RED_BACKGRONUND+BLUE_FONT) I hate those people who dont share their problem and solutions with other people...
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: Michael J (by mjdamato)
Date: March 31, 2005 at 14:41:14 Pacific
|
Reply: (edit)Create two classes of style for the body of the page (body1/body2) with the attributes you need. Then create a JS function that will change the style class used by the body object every two seconds: if (document.body.className=='body1') { document.body.className='body2' } else { document.body.className='body1' } Michael J
Report Offensive Follow Up For Removal
|

Post Locked
This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
Go to Web Development Forum Home