Results 1 to 2 of 2

Thread: Time

  1. #1
    Mathias Vissers Guest

    Default Time

    Hello,<BR>I am programming in asp for a lot of months, but I have a question. Can anybody help me with the next problem: when somebody visit my site, you view page a, but when it is a new hour (17.00h, 18.00h, ...) you need to see page b (with a refresh script or something else...). How can i make this script? Please help me. <BR>My email: matje008@hotmail.com<BR><BR>Thank you for your help.<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Time

    Hey Mathias.<BR><BR>If I was you, I&#039d use the Minute() function combined with a &#060;META&#062; tag.<BR><BR>Example:<BR>&#060;META http-equiv="refresh" content="&#060;% Response.Write (60-Minute(Now))*60 %&#062;;URL="nextpage.asp"&#062;<BR><BR>Of course you will want to change the "nextpage.asp" part to whatever page you want to send the client to at the end of the hour.<BR><BR>Hope you can use it, if not let me know and I&#039ll take another look at it.<BR><BR>Take care,<BR>Lasse.<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts