HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 18th, 2004, 09:53 AM
ChrisBrown ChrisBrown is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 2 ChrisBrown User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Multiple IFrame Refresh

I am trying to make an iframe with multiple refreshes. I would like my iframe to refresh to a different url each time and dont know if this is possible. If possible I would like it to automatically refresh every 7-10 seconds. So if someone can provide me some usefull information i would very so much appreciate it. Thanks

Reply With Quote
  #2  
Old November 18th, 2004, 11:02 AM
ChrisBrown ChrisBrown is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 2 ChrisBrown User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Um ok, guess no one knows how to do it or im just being ignored. :\

Reply With Quote
  #3  
Old November 18th, 2004, 08:21 PM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information.
 
Join Date: Sep 2004
Location: Israel
Posts: 26,969 Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)  Folding Points: 341806 Folding Title: Super Ultimate Folder - Level 1Folding Points: 341806 Folding Title: Super Ultimate Folder - Level 1Folding Points: 341806 Folding Title: Super Ultimate Folder - Level 1Folding Points: 341806 Folding Title: Super Ultimate Folder - Level 1Folding Points: 341806 Folding Title: Super Ultimate Folder - Level 1Folding Points: 341806 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 5 Days 15 h 9 m 16 sec
Reputation Power: 1556
here you go

wow, you give up fast. ppl are not around here 24/7 you know.
anwyays, try such code:
Code:
<script>
    var arrURL=new Array("http://www.yahoo.com", "http://www.google.com", "http://www.ynet.co.il");
    var curIndex=0;
    var timer=0;
    var refreshRate=10;  //seconds
    function ChangeFrame()
    {
 	clearTimeout(timer);
 	var url=arrURL[curIndex];
 	window.open(url, "Frame1");
 	curIndex = ((curIndex+1)%arrURL.length);
 	timer = setTimeout("ChangeFrame()", refreshRate*1000);
    }
  </script>
  <iframe name="Frame1" id="Frame1" src="about:blank" width="500" height="300"></iframe>
  <input type="button" onclick="ChangeFrame();" value="Start" />
  



this code would change the location of the frame once button is clicked, you can define the urls and refresh rate.

Last edited by Shadow Wizard : November 18th, 2004 at 08:32 PM. Reason: fixed the code

Reply With Quote
  #4  
Old November 22nd, 2004, 06:39 AM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
Alternativly, just use <meta refresh> in each page of the iFrame provided that each iframe src="" will be located on your website, or you have control over them

Contrary to what many people "think"... meta refresh was developed for THIS REASON

Meta refresh is NOT meant to be used for redirections... for that, you use Response.Redirect("") or whatever method you can use for returning a HTTP300 with your SSSL

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > Multiple IFrame Refresh


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway