Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Load Bg Depending On The User's Machine Time, SWiSHmax - beginner
cmonney
post Sep 24 2004, 02:35 AM
Post #1


~ Soul Rebel ~
Group Icon
Group: Main Team*
Posts: 3,625
Joined: 18-May 04
From: a mind-altering psychedelic trip
Member No.: 3





Load BG Depending On The User Time
_by cmonney

After you finish this tutorial you will able to create this:

  • Create 2 BG images/sprites[day, night](if you use pics, don't forget to check the 'target box' for each one).

  • Name them: "dayBG" and "nightBG".

  • Select the "Main-Time-Line", and in the Script Panel type this script:

    CODE
    onload () {
    myDate = new Date();
    if (myDate.getHours() >= 0) {
    nightBG._visible = true;
    dayBG._visible = false;
    }
    if (myDate.getHours() >= 7) {
    dayBG._visible = true;
    nightBG._visible = false;
    }
    if (myDate.getHours() > 18) {
    nightBG._visible = true;
    dayBG._visible = false;
    ?}
    }
There you have it... A "dynamically-movie-background-changer" depending on the user's computer clock.
 
+Quote Post  Go to the top of the page
kingivan
post Mar 5 2005, 12:18 PM
Post #2


New Member
Group Icon
Group: Member
Posts: 16
Joined: 5-March 05
From: Egypt
Member No.: 2,403





g[1].gif i cant understand what is this

oops.gif
 
+Quote Post  Go to the top of the page
*D*
post Mar 5 2005, 01:09 PM
Post #3


Merry KissMoose
Group Icon
Group: Main Team
Posts: 15,990
Joined: 18-May 04
From: North Pole
Member No.: 2





QUOTE(kingivan @ Mar 5 2005, 12:18 PM)
g[1].gif  i cant understand what is this

oops.gif
*


Hi King Ivan and welcome to 13dots nice to see royalty join us.

Do you use SwishMax? presuming you do, follow what Cmonney has in the above tut, upload to your webspace, it works of your PC clock and will show either night or day messages and images.
 
+Quote Post  Go to the top of the page
krypton
post May 1 2005, 11:18 AM
Post #4


Getting Used To The Dots
Group Icon
Group: Member
Posts: 30
Joined: 27-December 04
Member No.: 1,560





Great Script - thanks!
 
+Quote Post  Go to the top of the page
q_flame
post May 1 2005, 11:23 PM
Post #5


New Member
Group Icon
Group: Member
Posts: 5
Joined: 17-March 05
Member No.: 2,750



nice tut!!
thanks
 
+Quote Post  Go to the top of the page
blueshift
post May 2 2005, 03:00 AM
Post #6


unknown entity
Group Icon
Group: *Premier*
Posts: 1,164
Joined: 22-February 05
From: Red Crater, Jupiter
Member No.: 2,198





hey this is really great !
thx cmonney
 
+Quote Post  Go to the top of the page
Isabel_Maria
post May 18 2005, 05:59 AM
Post #7


New Member
Group Icon
Group: Member
Posts: 11
Joined: 18-May 05
Member No.: 4,107



Thank you, great script.
 
+Quote Post  Go to the top of the page
Andrew_F
post Nov 5 2009, 04:33 AM
Post #8


New Member
Group Icon
Group: Member
Posts: 20
Joined: 12-April 09
Member No.: 24,863





Good tut for beginners, who just studied how make your own digital clock//
Thanks for sharing!!
 
+Quote Post  Go to the top of the page

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 29th July 2010 - 10:58 PM
Life Insurance | 0% Commission Currency | Life Insurance | Cheap Travel Insurance | Manga