Welcome to TalkGraphics.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2017
    Posts
    9

    Default trying to auto load next page

    Hi. I am trying to make my 2nd page auto load after an animated logo appears on the first. I have tried <script>setTimeout(function(){window.location.href ='home.html'},5000);</script> and it works, however it keeps looping back to my first page. Hoping someone could offer some help. maybe i need to put a stop command on the 2nd page?!?!? or something like that. My first page (the one with my animation) is my "index" my 2nd page (the one I want to stop at) is "home" . that might be a reason too not sure

  2. #2
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    927

    Default Re: trying to auto load next page

    Can you give us a link (maybe like www dot example dot com because you might not yet be allowed to post links) or an example design file?

  3. #3
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,912

    Default Re: trying to auto load next page

    It shouldn't loop. I just tried your code in a test site & it works as expected. See attached.
    Attached Files Attached Files
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  4. #4
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,502

    Default Re: trying to auto load next page

    Brian - I have moved this thread to the Web Design Chat forum.

    Welcome to TalkGraphics

  5. #5
    Join Date
    Oct 2017
    Posts
    9

    Default Re: trying to auto load next page

    So what I was doing wrong was placing the code in the "web properties" under placeholder tab under <head>. Thank you EGG Bramhill for showing me to put it in web page properties <body> it works Now!!!

  6. #6
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,502

    Default Re: trying to auto load next page

    Sometimes using your HEAD is not the best policy.

  7. #7
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,912

    Default Re: trying to auto load next page

    Pleased to have helped Brian.

    Not even going into 'using your body' Gary
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

 

 

Bookmarks

Posting Permissions

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