auto switch between different webpages?

Posted on 2009-05-01
Last Modified: 2013-11-10
HI - I'm about to make a newsboard for our school. I will have to show some of my own webpages - no problem - I ll guees I can use the meta tag "Page-Exit"  and "Refresh" to switch between these pages. Though this might not be the best solution ..?
BUT I also have to show a page or two from another webserver - and offcause here I can't
use this method. How do I do this.
I'm using ASP (classic) and VB Script.
Hope someone out there can give me a hint / tip
Thanks Otto
Question by:otto_leholt
    LVL 1

    Assisted Solution

    You might want to use an iFrame, and have a javascript timer loop through a list of sites...setting the location of the iFrame to the site. This would probably be the most dynamic..and give you the most control. You can set the iFrame to be the size of the window, so that the user thinks they are at the external site.

    Author Comment

    Thanks for the response. Well I search for " javascript timer loop" but did'nt find something that I can use. I'm not an expert - or even very familiar with javascripts. So I need a script that can open a new window an show my external website ( ) and then close this window again after something like 30 sek , and then show my own pages again. There should be no user interaction.
    The script is for a 50" monitor / news board in the hallway in my school.
    best regards Otto Leholt
    LVL 1

    Assisted Solution

    With digital signage, it is my experience that you don't really want to have a new window pop doesn't look very nice. You will just want the display to appear to change the page it is displaying.

    If you still want it to pop up in a new window, you will have to keep a handle on the new that you can close it later (if the browser will allow)

    I did a quick search in google for 'javascript iframe' and came up with this page: It may prove useful.

    I've included a bit of framework for what you might want to do. It will have to be in the page containing the iFrame.
    <script type="text/javascript">
    function setIFrameToOtherPage(){
        //set the location of iframe to a value of your array of valid pages
        //have your page call the setIFrameToMyPage() after 30 seconds
    function setIFrameToMyPage(){
        //set the location of iframe to your content
        //have your page call the setIFrameToOtherPage() after 50 seconds
    //start the loop

    Open in new window


    Author Comment

    Thanks wpgwiggum:
    Now I got was Iframe is about - but I need to find out how to combine your script with my Iframe ..
    I better have a look in my old javaScript books... as I said I'm not very familiar with java.
    thanks otto
    sorry I'm really a bit ashamed about this - because one here recive a lot off help for .. nothing .
    LVL 1

    Assisted Solution

    If you are familar with VBScript, you may want to see if you can accomplish the same tasks with a language you know. I'm not very familar with VBScript myself...but usually you can get the same thing done just in slightly different ways.

    Once the iframe is setup, you really just need a single line of code setting the 'src' attribute of your iframe in each of the functions I made up above.

    Accepted Solution

    I havent found the perfect solution - but have used the code showed below.
    The result can be seen at
    Any suggestions are still very very welcome.
    Thanks for the help so far.
    best wishes Otto Leholt
    <meta http-equiv="refresh" content="40">
    <script type="text/javascript">
    var WindowObjectReference=null;
    function openSites() {
    var openOneAtATime=new Array()
    var i=0;
    for (i=0;i<openOneAtATime.length;i++) {
         setTimeout("WindowObjectReference ='"+openOneAtATime[i]+"','window1')",10000*i);

    Open in new window


    Author Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Introduction HyperText Transfer Protocol ( or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
    Using Quotation Marks in PHP This question ( seems to come up a lot for developers who are new to PHP.  And it got me thinking, "How can we explain the rule…
    The viewer will learn how to count occurrences of each item in an array.
    Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now