Welcome to TalkGraphics.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2009
    Location
    Rochester, Kent, UK
    Posts
    70

    Question Question: Auto Page load html script

    Is it possible within WXD to define an html script that automatically loads a sequence of webpages similar to a slide show? I am looking to have a sequence of web pages continuously playing on an office monitor.
    IP

  2. #2
    Join Date
    Mar 2005
    Location
    Andover, Massachusetts, USA, Earth, Milky Way, Universe
    Posts
    427

    Default Re: Question: Auto Page load html script

    Quote Originally Posted by Carrot View Post
    Is it possible within WXD to define an html script that automatically loads a sequence of webpages similar to a slide show? I am looking to have a sequence of web pages continuously playing on an office monitor.
    Wouldn't redirects with new windows opening do the trick?
    -h
    ===============
    (a.k.a.) Bobby Harris
    IP

  3. #3
    Join Date
    Jan 2009
    Location
    Rochester, Kent, UK
    Posts
    70

    Default Re: Question: Auto Page load html script

    How do i invoke redirects? also with respect to my original question; is there a way of controlling the duration each page is delayed?
    IP

  4. #4
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: Question: Auto Page load html script

    Quote Originally Posted by Carrot View Post
    Is it possible within WXD to define an html script that automatically loads a sequence of webpages similar to a slide show? I am looking to have a sequence of web pages continuously playing on an office monitor.
    Sure, why not.
    Put following code in the placeholder somwhere on the page:
    Code:
    <script type="text/javascript">
    setTimeout("window.open('page2.htm', '_self')", 5000);
    </script>
    Replace 'page2.htm' with the name of the page to open.
    The '5000' is a delay in 1/1000's of second. So 5000 is 5 seconds.
    John.
    IP

  5. #5
    Join Date
    Jan 2004
    Location
    Holland Patent, NY, USA
    Posts
    605

    Default Re: Question: Auto Page load html script

    One option is to embed the following in the <head> section of each page:

    <META HTTP-EQUIV="Refresh" CONTENT="5; URL=page-to-go-to.html">

    Modify for each page. See here:

    http://en.wikipedia.org/wiki/Meta_refresh
    IP

  6. #6
    Join Date
    Jan 2009
    Location
    Rochester, Kent, UK
    Posts
    70

    Default Re: Question: Auto Page load html script

    Quote Originally Posted by covoxer View Post
    Sure, why not.
    Put following code in the placeholder somwhere on the page:
    Code:
    <script type="text/javascript">
    setTimeout("window.open('page2.htm', '_self')", 5000);
    </script>
    Replace 'page2.htm' with the name of the page to open.
    The '5000' is a delay in 1/1000's of second. So 5000 is 5 seconds.
    Excellent: Thanks Covoxer. Can I assume I can add multiple references in the placeholder? e.g
    ......
    setTimeout("window.open('page2.htm', '_self')", 5000);
    setTimeout("window.open('page3.htm', '_self')", 5000);
    setTimeout("window.open('page4.htm', '_self')", 5000);
    ......

    also is it possible to then loop?
    Last edited by Carrot; 26 March 2009 at 09:23 PM. Reason: Update Question
    IP

  7. #7

    Default Re: Question: Auto Page load html script

    I doubt it.
    Wouldn't that just cause all three pages to open together in 5 seconds??
    IP

  8. #8
    Join Date
    Jan 2009
    Location
    Rochester, Kent, UK
    Posts
    70

    Default Re: Question: Auto Page load html script

    so a place holder at the top of each relevent page calling the next page is the way to go?
    IP

  9. #9

    Default Re: Question: Auto Page load html script

    Yes
    IP

 

 

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
  •