Hi,
I apologise if this is a simple one but I am a complete begininer to HTML/Javascript. Found this bit of code on web and would like to know how to advance on a new html page.
What do I need to add to the code to do this.
Thanks in advance any help you can give.
Redtooth.
<HTML>
<HEAD>
<TITLE>The page</TITLE>
<SCRIPT LANGUAGE = "JavaScript">
<!--
function makeArray() {
this.length = makeArray.arguments.length;
for (var i = 0; i < this.length; i++)
this[i + 1] = makeArray.arguments;
}
function makeSlideShow (obj, wait, pre, url) {
this.curText = '';
this.posit = 1;
this.word = obj;
this.length = obj.length;
this.pre = pre;
this.wait = wait;
this.url = url;
this.display = displaySlideShow;
}
function displaySlideShow() {
if (this.posit <= this.length) {
this.curText = this.word[this.posit]
outStringWord = blankFrameTop + this.pre + this.curText + blankFrameBottom;
parent.draw.location = 'javascript
arent.outStringWord';
this.posit++;
}
else top.location = this.url;
}
function displayLoop() {
if (wordIntro.posit <= wordIntro.length)
reDraw = setTimeout('displayLoop()', wordIntro.wait);
wordIntro.display();
}
var words = new makeArray ('This is the first','this is the second','Expecting the next
sheet to be index1.html - what do you need to add to make this so?');
var wordIntro = new makeSlideShow (words, 2500,
'<CENTER><BR><BR><BR><BR><BR><BR><BR><BR><FONT SIZE = 5>', 'part02_index.html');
var blankFrameTop = '<HTML><BODY BGCOLOR = "#000000" TEXT = "#FFFFFF">';
var blankFrameBottom = '</BODY></HTML>';
var blankFrame = blankFrameTop + blankFrameBottom;
document.write ('<FRAMESET onLoad = "displayLoop()" ROWS = "100%, *" FRAMEBORDER = NO
BORDER = 0>');
document.write ('<FRAME SCROLLING = AUTO SRC = "javascript
arent.blankFrame" NAME =
"draw" MARGINWIDTH = 2 MARGINHEIGHT = 2>');
document.write ('</FRAMESET>');
//-->
</SCRIPT>
</HEAD>
<BODY>
</BODY>
</table>
</body>
</HTML>
I apologise if this is a simple one but I am a complete begininer to HTML/Javascript. Found this bit of code on web and would like to know how to advance on a new html page.
What do I need to add to the code to do this.
Thanks in advance any help you can give.
Redtooth.
<HTML>
<HEAD>
<TITLE>The page</TITLE>
<SCRIPT LANGUAGE = "JavaScript">
<!--
function makeArray() {
this.length = makeArray.arguments.length;
for (var i = 0; i < this.length; i++)
this[i + 1] = makeArray.arguments;
}
function makeSlideShow (obj, wait, pre, url) {
this.curText = '';
this.posit = 1;
this.word = obj;
this.length = obj.length;
this.pre = pre;
this.wait = wait;
this.url = url;
this.display = displaySlideShow;
}
function displaySlideShow() {
if (this.posit <= this.length) {
this.curText = this.word[this.posit]
outStringWord = blankFrameTop + this.pre + this.curText + blankFrameBottom;
parent.draw.location = 'javascript
this.posit++;
}
else top.location = this.url;
}
function displayLoop() {
if (wordIntro.posit <= wordIntro.length)
reDraw = setTimeout('displayLoop()', wordIntro.wait);
wordIntro.display();
}
var words = new makeArray ('This is the first','this is the second','Expecting the next
sheet to be index1.html - what do you need to add to make this so?');
var wordIntro = new makeSlideShow (words, 2500,
'<CENTER><BR><BR><BR><BR><BR><BR><BR><BR><FONT SIZE = 5>', 'part02_index.html');
var blankFrameTop = '<HTML><BODY BGCOLOR = "#000000" TEXT = "#FFFFFF">';
var blankFrameBottom = '</BODY></HTML>';
var blankFrame = blankFrameTop + blankFrameBottom;
document.write ('<FRAMESET onLoad = "displayLoop()" ROWS = "100%, *" FRAMEBORDER = NO
BORDER = 0>');
document.write ('<FRAME SCROLLING = AUTO SRC = "javascript
"draw" MARGINWIDTH = 2 MARGINHEIGHT = 2>');
document.write ('</FRAMESET>');
//-->
</SCRIPT>
</HEAD>
<BODY>
</BODY>
</table>
</body>
</HTML>