954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

need help with url rotator script

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

sammymantha
Newbie Poster
4 posts since Jan 2006
Reputation Points: 10
Solved Threads: 0
 

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

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

Auto Start Page Rotator

sammymantha
Newbie Poster
4 posts since Jan 2006
Reputation Points: 10
Solved Threads: 0
 

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

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

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
Newbie Poster
4 posts since Jan 2006
Reputation Points: 10
Solved Threads: 0
 

[QUOTE=sammymantha]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]

sammymantha
Newbie Poster
4 posts since Jan 2006
Reputation Points: 10
Solved Threads: 0
 

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.

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

I used the code and it works beautifully with IE6.0 + and Firefox 2.0.0.3.
You can view it here.

quanvuong
Newbie Poster
1 post since May 2007
Reputation Points: 10
Solved Threads: 0
 

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?

bri552
Newbie Poster
1 post since Jun 2009
Reputation Points: 10
Solved Threads: 0
 

Use JavaScript option for read and write file to store these URLs

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You