You are here: Re: Rotating URL website Code « PHP Programming Language « IT news, forums, messages
Re: Rotating URL website Code

Posted by tamirdoron on 01/23/08 09:27

On 17 ינואר, 12:26, Sibine <simon.jes...@gmail.com> wrote:
> Thanks very much for all your help. I'll try the frames out later and
> see how it goes :)



try this one that I amended specially for you to work with Iframe...
You can drop the top menue and autostart the script.
===================================================================
<html>
<html>
<head>
<script language="JavaScript">
<!-- Begin
var repeatshow = 1; // 1 = yes, 0 = no
var timedelay = 10000; // time in milliseconds, 5000 = 5 secs

var page = new Array(
"http://cafe.themarker.com/view.php?u=70158",
"http://www.ynet.co.il/",
"http://www.google.com/advanced_search?hl=en&num=100",
"http://www.morfix.co.il/",
"http://www.tamir.co.il/",
"http://www.i-property.co.il/",
"http://www.ymap.co.il/",
"http://cafe.themarker.com/"


); // note no comma after last page!

// your "the end" page. Necessary if repeatshow = 0;
var endpage = "http://www.sharatim.co.il";

var slidenum = 0;
var slidecount = page.length;
var timerID = 0;
var win2;
function showSlideShow() {
slidenum++;
if (slidenum < slidecount+1) {
parent.main.location.href = page[slidenum-1];
}
if (slidenum == slidecount+1) { // if finished
if (repeatshow) {
slidenum = 0;
timerID = setTimeout('showSlideShow()', timedelay)
}
else parent.main.location.href = endpage;
}
else timerID = setTimeout('showSlideShow()', timedelay);
}
// End -->
</script>


</HEAD>

<BODY onload="timerID=setTimeout('showSlideShow()',timedelay)">
<center>

<a href="javascript:showSlideShow();"
onClick="clearTimeout(timerID)">Cycle Pages</a> ..........
<a href="#" onClick="clearTimeout(timerID)">STOP</
a> ..........
<a href="http://www.tamir.co.il" target="main"
onClick="clearTimeout(timerID)"><B>Stop @ My PAGE </B></A>

<IFRAME SRC="main.html" name="main" WIDTH=100% HEIGHT=95%>

</center>


</div></BODY>

</HTML>
============================

Good luck

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация