crystal
04-25-2005, 03:45 PM
:confused:
Dear All
I know very little about html and java. I have managed to build my site but I am not that advanced. Hope someone can help me.
I have my index and subsequent web pages up on server. It is fine - how I want it, with music and all.
But now I have decided that I am being asked too many questions about my site and I want to put a Message Slideshow up before my index page opens and then have my index page open as it is now.
Problem is, I don't want to rename all of my pages - it would take forever linking to another page, rather than my present index page.
I got a script of this site - called 'Slideshow Message Script' - is it great. It works fine if you put it at the top of a page and link to another - only trouble is it does not work if you put it in the index page and link to same index page - naturally. It just keeps playing the Slideshow Message Script over and over again. It won't open my index page in another window. It does it on my computer because it is linking from my computer to the index page on my server - I understand this.
So, how can I put this message at the beginning of my present index page, have it play, and then have it follow on to the rest of my index page as it is at the moment.
This is the script:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var background = "black";
var text = "white";
var URL = "http://www.yoursite.com/next-page.html";
var speed = 4000; // time in milliseconds (4000 = 4 secs)
var msgcount = 5;
var i = 1;
var blank = " ";
function StringArray (n) {
this.length = n;
for (var x = 1; x <= n; x++) {
this[x] = ' ';
}
}
message = new StringArray(msgcount);
message[1] = "Check out this JavaScript Slideshow!!";
message[2] = "Yet another cool effect that...";
message[3] = "you can easily add to your web pages.";
message[4] = "Why don't you put it on your site?";
message[5] = "Don't forget, there are still<br>lots more scripts to check out!";
function Slide() {
slidepage = '<body bgcolor='+background+'>'
+ '<center><table border=0 '
+ 'height=100%><tr><td><center><b><font '
+ 'color='+text+' size=6>'+message[i]+'</font></b>'
+ '</center></td></tr></table></center></body>';
if (i == message.length + 1) parent.location = URL;
if (i < message.length + 1) {
frames['slideshow'].location = "javascriptparent.slidepage";
i++;
setTimeout("Slide()",speed);
}
}
// End -->
</script>
<!-- Script Size: 1.68 KB -->
Can you help this greenhorn?
Dear All
I know very little about html and java. I have managed to build my site but I am not that advanced. Hope someone can help me.
I have my index and subsequent web pages up on server. It is fine - how I want it, with music and all.
But now I have decided that I am being asked too many questions about my site and I want to put a Message Slideshow up before my index page opens and then have my index page open as it is now.
Problem is, I don't want to rename all of my pages - it would take forever linking to another page, rather than my present index page.
I got a script of this site - called 'Slideshow Message Script' - is it great. It works fine if you put it at the top of a page and link to another - only trouble is it does not work if you put it in the index page and link to same index page - naturally. It just keeps playing the Slideshow Message Script over and over again. It won't open my index page in another window. It does it on my computer because it is linking from my computer to the index page on my server - I understand this.
So, how can I put this message at the beginning of my present index page, have it play, and then have it follow on to the rest of my index page as it is at the moment.
This is the script:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var background = "black";
var text = "white";
var URL = "http://www.yoursite.com/next-page.html";
var speed = 4000; // time in milliseconds (4000 = 4 secs)
var msgcount = 5;
var i = 1;
var blank = " ";
function StringArray (n) {
this.length = n;
for (var x = 1; x <= n; x++) {
this[x] = ' ';
}
}
message = new StringArray(msgcount);
message[1] = "Check out this JavaScript Slideshow!!";
message[2] = "Yet another cool effect that...";
message[3] = "you can easily add to your web pages.";
message[4] = "Why don't you put it on your site?";
message[5] = "Don't forget, there are still<br>lots more scripts to check out!";
function Slide() {
slidepage = '<body bgcolor='+background+'>'
+ '<center><table border=0 '
+ 'height=100%><tr><td><center><b><font '
+ 'color='+text+' size=6>'+message[i]+'</font></b>'
+ '</center></td></tr></table></center></body>';
if (i == message.length + 1) parent.location = URL;
if (i < message.length + 1) {
frames['slideshow'].location = "javascriptparent.slidepage";
i++;
setTimeout("Slide()",speed);
}
}
// End -->
</script>
<!-- Script Size: 1.68 KB -->
Can you help this greenhorn?