Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Jun 2003
    Posts
    18
    Member #
    1696
    If say I'd like for a link to change the URL it links to after a certain period, perhaps at a certain time of day, every day without me having to mediate physically - is there a way to do this without using cron jobs?

    I.E. cgi or php (I'd put this thread in one of those forums but I don't know if this even applies)?

    Not exactly a randomization script but one with a schedule. I've looked around hotscripts.com and there seemed to be a script that had to do with scheduling when a link appears but it was one of those pay-to-use pricey scripts for affiliate programs (my attempt is also not for affiliate purposes).

  2.  

  3. #2
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,657
    Member #
    1234
    Liked
    138 times
    Depends on a couple of things: Do you want it to change based upon the user's local time or the server time?
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com

  4. #3
    Junior Member
    Join Date
    Jun 2003
    Posts
    18
    Member #
    1696
    Either or. I'm not particularly picky - I just am not so keen on having to continuously edit the html on a daily basis.

  5. #4
    Senior Member raspberryh's Avatar
    Join Date
    Aug 2004
    Location
    Erie, PA
    Posts
    882
    Member #
    7208
    Liked
    1 times
    I have an idea... you can have the <a href> tag, and have <a href="javascript: goToLink();">.. then, make a function where you have an if else...
    function goToLink(){
    if ( time of day stuff )
    document.location = "http://blah"; // not sure if it's doc.location, but you can look that up
    }
    else {
    document.location = "http://something else";
    }
    }

    hope that helps - let me know.

    heather
    choosy developers choose gif!
    website | paintings | blog

  6. #5
    Senior Member
    Join Date
    Aug 2003
    Posts
    444
    Member #
    2801
    Embed some PHP code that is executed at each visit. The code checks the time of day, and if it is after a certain time point, it does what you want it to do. It won't change at an exact moment in time, but it will be fairly accurate if you have a steady stream of visitors.
    eKstreme
    eKstreme.com - Free website tools!
    fontfox - free fonts Hand-picked quality fonts.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:38 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com