don
05-29-2003, 07:31 PM
Hi every one
I found this script on the net (see below)
that I use on http://www.jervis-bay-nsw.com.au as feartured site of the day
it gives you a different site each day for 7 days
What i tryed to do is add another site so there would be 8
so changed the 7 in script to 8 and add new url but gave error and wouldnt work
would any one be able to view script and adjust or give me another script that gives differnt site each day then start at 1 again when finshed how evewr many sites there is
any help wil be much appricated
Regards
Don
<script language="JavaScript">
//******************************************************
// * Script from http://ldpoint.com
// * Phone and internet services, tools*
// * You can use this code if you leave this message*
// ******************************************************
function GetTodaysURL()
{
var locationlist = new URLList
(
"http://www.bluepointhouse.com.au/", // Monday
"http://www.baybeachcomber.com.au/", // Tuesday
"http://www.mmguesthouse.com/", //Wednesday
"http://www.theseychelles.com.au/", //Thursday
"http://www.thehuskypub.com.au/", //Friday
"http://www.dolphincruises.com.au/", //Saturday
"http://www.shoalhaven.net.au/~suenorm/" // Sunday
);
now = new Date();
num = now.getDay();
if (num == 0) num = 7;
location.href = locationlist.list[num-1];
}
function URLList ()
{
var argv = URLList.arguments;
var argc = argv.length;
this.list = new Object();
for (var i = 0; i < argc; i++)
this.list[i] = argv[i];
this.count = argc;
return this;
}
</script>
I found this script on the net (see below)
that I use on http://www.jervis-bay-nsw.com.au as feartured site of the day
it gives you a different site each day for 7 days
What i tryed to do is add another site so there would be 8
so changed the 7 in script to 8 and add new url but gave error and wouldnt work
would any one be able to view script and adjust or give me another script that gives differnt site each day then start at 1 again when finshed how evewr many sites there is
any help wil be much appricated
Regards
Don
<script language="JavaScript">
//******************************************************
// * Script from http://ldpoint.com
// * Phone and internet services, tools*
// * You can use this code if you leave this message*
// ******************************************************
function GetTodaysURL()
{
var locationlist = new URLList
(
"http://www.bluepointhouse.com.au/", // Monday
"http://www.baybeachcomber.com.au/", // Tuesday
"http://www.mmguesthouse.com/", //Wednesday
"http://www.theseychelles.com.au/", //Thursday
"http://www.thehuskypub.com.au/", //Friday
"http://www.dolphincruises.com.au/", //Saturday
"http://www.shoalhaven.net.au/~suenorm/" // Sunday
);
now = new Date();
num = now.getDay();
if (num == 0) num = 7;
location.href = locationlist.list[num-1];
}
function URLList ()
{
var argv = URLList.arguments;
var argc = argv.length;
this.list = new Object();
for (var i = 0; i < argc; i++)
this.list[i] = argv[i];
this.count = argc;
return this;
}
</script>