February 12, 2003
Date Based Redirection

There might be times where you want to redirect all incoming visitors of your site to a certain page. Perhaps you only want to have that redirection active during a certain timespan. But perhaps this timespan is exactly during the weekend and you are somewhere during that time where you do not have internet access so you cannot FTP in and make the changes...

For this purpose I've created this 312 byte Flash file (to download it: right click / save as..) which can be adjusted to your needs. Just place it on your pages and it will automatically redirect every visitor to an URL of your choice if they arrive during the timespan that you have set for redirection. This is definitely not rocket science and it can also be done in Javascript, but I thought it might be useful on February 15.

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0" WIDTH="5" HEIGHT="5" id="datelinker" ALIGN="">
<PARAM NAME=flashvars VALUE="from=2/15/2003/0/0/0&to=2/15/2003/23/59/59&href=http://www.quasimondo.com/nowar.html">
<PARAM NAME=movie VALUE="datelinker.swf"> <PARAM NAME=quality VALUE=low> <PARAM NAME=wmode value=transparent>
<EMBED src="datelinker.swf" quality=low wmode=transparent WIDTH="5" HEIGHT="5" NAME="datelinker" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"

As you see it's all in the FlashVars parameter:


HOUR/MINUTE/SECOND is optional. If you omit it it will be set to 00:00:00 which is midnight. To test it right now you can reset your internal calendar to February 14 /23:59:59 and wait for a second.

Posted at February 12, 2003 01:30 PM | Further reading

Quasimondo is closed. Wasn't it a little bit ambiguous ;-)

Posted by: minivip on February 16, 2003 12:35 AM

imho the second parameter "to=2/15/2003/23/59/59" is not exactly correct, you missed one second of the 15th.

Posted by: minivip on February 16, 2003 12:40 AM
Post a comment

Email Address:



Remember info?

Thank you!

Most Visited Entries
Sketches, Works & Source Code
In Love with
Powered by
Movable Type 2.661

© Copyright Mario Klingemann

Syndicate this site:
RSS 1.0 - RSS 2.0

Quasimondo @ flickr
Quasimondo @ LinkedIn
Quasimondo @ Twitter
Quasimondo @ Facebook
Quasimondo @ MySpace
Quasimondo is a Bright
Citizen of the TRansnational Republic
My other blog in german

My family name is written Klingemann,
not Klingelmann, Klingeman, Klingaman, Kingemann,
Kindermann, Killingaman, Klingman, Klingmann, Klingonman
Klingemman, Cleangerman, Klingerman or Kleangerman

profile for Quasimondo at Stack Overflow, Q&A for professional and enthusiast programmers