Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

change page after x amount of time

  • 11-04-2002 1:14pm
    #1
    Registered Users, Registered Users 2 Posts: 1,684 ✭✭✭


    I had seen a script befor that after you clicked a button it would bring you to a new page then after x amount of time would forward you to another apge. any one got anything like this floating around?


Comments

  • Registered Users, Registered Users 2 Posts: 68,317 ✭✭✭✭seamus


    Sounds like a meta tag you want? Look at the source on my webpage (before it redirects). I can't remember how to do it, I just stole the code from somewhere else

    :)


  • Registered Users, Registered Users 2 Posts: 2,660 ✭✭✭Baz_


    <META HTTP-EQUIV="refresh" CONTENT="25;url=index.asp">

    that will do it, the 25 is the number of seconds before changing, and the url=index.asp, is the url of the page you want to go to next


  • Registered Users, Registered Users 2 Posts: 12,309 ✭✭✭✭Bard


    the meta refresh tag may be what you're looking for... it refreshes the browser window at a specified url after a specified time delay.

    Go to http://www.htmlhelp.com/reference/html40/head/meta.html and scroll to the bottom for more info.


  • Registered Users, Registered Users 2 Posts: 4,225 ✭✭✭Scruff


    this works in asp. (maybe not what you're looking for but someone might find it useful)

    <script language="vbscript">
    ' CLIENT FUNCTIONS
    Function ReDirectTo()
    url = "PageToRedirectTo.asp"
    window.navigate(url)
    End Function
    </script>

    <body onload="SetInterval 'ReDirectTo', 5000" language="vbscript">

    5000 = 5 seconds


  • Registered Users, Registered Users 2 Posts: 1,684 ✭✭✭Kraken


    thats the menu and if you see where cont.html is mentioned in the last part there thats where i need to insert this code but cant get it to work. dont think it will either because of the type of menu it is.
    //Menu 0
    makeMenu('top','Home')
    	makeMenu('sub','East cork news','eastcorknews.html', 'main', false)
    	makeMenu('sub','Site Map','sitemap.html', 'main', false)
    	makeMenu('sub','Search this site','welcome.html#sitesearch', 'main', false)
    
    
    //Menu 1
    makeMenu('top','Tourism','activities.html','main',false)
    	makeMenu('sub','Activities','activities.html', 'main', false)			
    	makeMenu('sub','Trails','trails.html', 'main', false)
    	makeMenu('sub','Attractions','attractions.html', 'main', false)
    	makeMenu('sub','Food','restaurants.html', 'main', false)
    	makeMenu('sub','Pubs','pubs.html', 'main', false)
    	makeMenu('sub','Accommodation','accommodation.html', 'main', false)
    	makeMenu('sub','Information','furtherinfo.html', 'main', false)
    	makeMenu('sub','The country code','trailcountrycode.html', 'main', false)
    	
    
    //Menu 2    
    makeMenu('top','Business','bintroduction.html','main',false)
    makeMenu('sub','Profile')
    	  makeMenu('sub2','Introduction','bintroduction.html', 'main', false)
    	  makeMenu('sub2','Infrastructure','infrastructure.html', 'main', false)
    
      makeMenu('sub2','Human Resources','hr.html', 'main', false)
    	
    makeMenu('sub','Supports')
    	  makeMenu('sub2','Private','supportpriv.html', 'main', false)
    	  makeMenu('sub2','Public','supportpub.html', 'main', false)
    	  makeMenu('sub2','Business Planning','busplan.html', 'main', false)
    	  makeMenu('sub2','links','buslinks.html', 'main', false)     
    
    makeMenu('sub','Sectors')
    	  makeMenu('sub2','Agriculture','agric.html', 'main', false)
    	  makeMenu('sub2','Manufacturing','manuf.html', 'main', false)
    	  makeMenu('sub2','Food & Drink','fad.html', 'main', false)
    	  makeMenu('sub2','Small Enterprise','smallent.html', 'main', false)   
    	   makeMenu('sub2','Marine','marine.html', 'main', false)   
    	  makeMenu('sub2','Crafts','crafts.html', 'main', false) 
    	 
    
    //Menu 3
    makeMenu('top','Community','comm.html','main',false)
      makeMenu('sub','Community','comm.html', 'main', false)
     
    
    //Menu 4  
    makeMenu('top','Contact','cont.html','left',false)
      makeMenu('sub','Introduction','contact.html', 'main', false)
      makeMenu('sub','Programmes','programmes.html', 'main', false)
      makeMenu('sub','Staff Structure','staffstructure.html', 'main', false)
      makeMenu('sub','Board Structure','boardstructure.html', 'main', false)
      makeMenu('sub','History','history.html', 'main', false)
      makeMenu('sub','Work to Date','history2.html', 'main', false)
      makeMenu('sub','Current News','currentnews.html', 'main', false)
      makeMenu('sub','Publications','publications.html', 'main', false)
      makeMenu('sub','Contact Form','contactform.html', 'main', true)
    
    


  • Advertisement
Advertisement