|
-
Mar 10th, 2003, 11:08 AM
#1
Thread Starter
Fanatic Member
javascript operators
hi there,
what im tring to do is to change "bgColor" of my page when the "getSeconds" between.30 and 45 .(Lasts for 15 seconds only).I mean let the bgColor of my document change to "blue" when the seconds are between 30 and 40..I think I should use && --or ||...but how ?..could you give me an example that works..
**and can we change the color of text/font ,too?using the same method...
thanks
-
Mar 11th, 2003, 06:48 PM
#2
Fanatic Member
Assuming you know how to grab time already, the if statement would look like:
Code:
var sec = 35
if (sec >= 30 && sec <= 40) {
\\ add code here
}
www.RealisticGraphics.net
Running VS.Net Enterprise & VB 6
Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML
MSN Messenger: kmsheff
-
Mar 13th, 2003, 10:15 AM
#3
Thread Starter
Fanatic Member
grabing the time..
hi again..
I think I should learn more about "grabbing the time" what is the shortest script that "I can use the time element"
is "var sec=30" enough" or ..?
please help
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|