Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Valentines DAY popup =)

Status
Not open for further replies.

PS1983

Technical User
Nov 6, 2001
83
AT
hello people!
uhm well tomorrow is valentines day, so i decided to make a little popup with some flowers or stuff.

but i want the popup to start at 14.02.02 @ 0.00 and stop 15.02.2002 @0.00
how can i handle this?
get date or something
i don't really have a clue=(
any suggestions?
thx in advance
steve

 
this should work:
Code:
<script language=&quot;javascript&quot;><!--
function iftime()
{
var start = new Date();
var day = start.getDate();
var hour = start.getHours();
var check = (day * 1) + (hour * 1);
if (check < 14 || check > 15)
return; // do nothin
else
// open popup here
}
//--></script>

hope it helps The pen is mightier than the sword.
 
yes it did=)!
thanks a lot dookie
steve
 
no problem. your welcome

HAPPY VALENTINES DAY! The pen is mightier than the sword.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top