I have a script that is for a url rotator page. I have worked on it for over 3 hours. I converted the text with all my urls to html but all I get is the page title and a blank page. If anyone could help me I would be very appreciative and would give you some free ad space on my website.
thank you,
Sammymantha :o

No free space, you should provide us with your code so we can help you find the problem

I have a script that is for a url rotator page. I have worked on it for over 3 hours. I converted the text with all my urls to html but all I get is the page title and a blank page. If anyone could help me I would be very appreciative and would give you some free ad space on my website.
thank you,
Sammymantha :o

<html>
<head><title>Control page</title>

<SCRIPT language="JAVASCRIPT">
var Win;
var page_index=0;
var page = new Array();
page[0] = "";
page[1] = "";
page[2] = "";
page[3] = "";
page[4] = "";
page[5] = "";
page[6] = "";
page[7] = "";
page[8] = "";
page[9] = "";
page[10] = "";
page[11] = "";
page[12] = "";
page[13] = "";
page[14] = "";
page[15] = "";
page[16] = "";
page[17] = "";
page[18] = "";
page[19] = "";
page[20] = "";
page[21] = "";
page[22] = "";
page[23] = "";
page[24] = "";
page[25] = ""; 
page[26] = "";
page[27] = "";
page[28] = "";
page[29] = "";
page[30] = "";
page[31] = "";
page[32] = "";
page[33] = "";
page[34] = "";
page[35] = ""; 
page[36] = "";
page[37] = "";
page[38] = "";
page[39] = "";
page[40] = ""; 
page[41] = ""; 
page[42] = "";
page[43] = "";
page[44] = "";


function next_page()
{

   page_index++;
   if (page_index == 45) 
        page_index = 0;
   Win.location.replace(page[page_index]);


}

</SCRIPT>
</head>

<body>
<h1>Auto Start Page Rotator</h1>

<SCRIPT language="JAVASCRIPT">

Win=window.open(page[0], 'Win','resize=yes,toolbar=yes,status=yes,scrollbars=yes,screenX=0,screenY=0,width=1000,height=666')
setInterval("next_page();",45000);


</SCRIPT>

</body>
</html>

I put up the script so you can have a look.

Your script work absolutly fine for me, I did use only short listing of few address, changed time for faster cycling and had no problems ( used IE6 and firefox 1.0.7).

<html>
<head><title>Control page</title>

<SCRIPT language="JAVASCRIPT">
var Win;
var page_index=0;
var page = new Array();
page[0] = "http://mail.yahoo.com/";
page[1] = "http://www.daniweb.com/";
page[2] = "http://www.dutchfightclub.nl/";
page[3] = "http://www.dabs.com/";
page[4] = "http://www.lowestonweb.com/";
page[5] = "http://www.vantecusa.com/";

function next_page()
{
page_index++;
if (page_index == 6) 
page_index = 0;
Win.location.replace(page[page_index]);
}

</SCRIPT>
</head>

<body>
<h1>Auto Start Page Rotator</h1>

<SCRIPT language="JAVASCRIPT">

Win=window.open(page[0], 'Win','resize=yes,toolbar=yes,status=yes,scrollbars=yes,screenX=0,screenY=0,width=1000,height=666')
setInterval("next_page();",8000);
</SCRIPT>

</body>
</html>

You can check it here (I will removed from website when you tell me, it just example for you to see)
Dont forget people have often blocked pop ups so they may not want to see it in this form
To admin - if you feel this is advertaising please remove provided url, I have not objections

First off, Thank you! for your help. I copied the script from the web page with your message and it now works on Netscape and Firefox. However It just shows rotator page with title on Internet Explorer (6.0) Any suggestions? Also if you have a link you would like to have on my rotator it's yours. Thanks again for your help.

First off, Thank you! for your help. I copied the script from the web page with your message and it now works on Netscape and Firefox. However It just shows rotator page with title on Internet Explorer (6.0) Any suggestions? Also if you have a link you would like to have on my rotator it's yours. Thanks again for your help.[sammymantha]

It has to do something with your browsers settings than. When I open that page I got message "auto start rotator" and then second window open which is rotating url. Also you should upload this on server, I don't know if this will work from station.

in the above code your putting the url manually in the code.
I want user to enter the url and let that should be accepted by the code and then resolve
ne help?

Good and nice post.....

I try it and it works
Thanks & regards

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.