Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Peter Fettes #1
swap swf displayed in index.html,
This is a difficult one.. And I'm not sure anyone will be able to answer it or
if I should be asking this question in the flash forum section.
On my index page is a flash movie. My question is this ... I wish the user to
see a different version/style of this movie depending on the time/date they
visit the website i.e.
I want the index page to load a daytime.swf between 6.00am to 6.00pm and a
midnight.swf between 6.00pm to 6.00am.
I know.. it's tough.
Anyone got any ideas - or link to a tutorial on this.
Kind Regards,
Peter
Peter Fettes Guest
-
Html newsletters displayed in Email
This seems like an easy topic but it is not to be found in these forums. I contantly get emails that display an html page when opened. They are... -
swap flash swf source file in html
Hi all. I have a flash file in my page (flash1.swf) When a user clicks on a html link, i want a javascript to swap flash1.swf for flash2.swf I... -
Swap swf in the html help of java script
Hello, Please help me create a section on my site that would have a swf file in the center of the page. On the left and right of the swf flash... -
HTTP Header being displayed at top of HTML
After rebuilding our web server from NT 4.0 IIS 4.0 to Windows 2000 IIS 5.0, I'm constantly getting HTTP Headers posted to the top of the HTML... -
In IE 6 only HTML listboxes are displayed
Try asking in an IE group. This group is for programming ASP pages. Ray at work "Daniel" <daniel_krause@web.de> wrote in message... -
Clukey #2
Re: swap swf displayed in index.html,
you can use flash, or javascript, and probably a few others, but I would use
flash because javascript can be disabled. Just look up the Date functions in
the flash helps, you'll probably use Date.getHours(). But just know that Date
functions get the informations from the viewer's computer so if their clock is
wrong then it won't work right.
Clukey Guest
-
Peter Fettes #3
Re: swap swf displayed in index.html,
Thank You,
Do you know of any online tutorials too, on this subject.
Peter Fettes Guest
-
Clukey #4
Re: swap swf displayed in index.html,
I don't know of any tutorials, but it's really quite simple just follow these
steps for flash
1. create an empty movie the size of the "midnight" and "daytime" movies
2. create an empty movie clip labeled "holder" and put it in the top left
corner of the empty movie
3. put this code into the frame with the "holder" mc:
var d = new Date();
var hour = d.getHours();
if (hour>6 && hour<18) {
_root.holder.loadMovie("daytime.swf");
} else {
_root.holder.loadMovie("midnight.swf");
}
That should do what you need it to.
Clukey Guest



Reply With Quote

