Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

advancing to a new index1.html page

Status
Not open for further replies.

redtooth

Programmer
May 16, 2003
2
GB
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 = &quot;JavaScript&quot;>
<!--

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:parent.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 = &quot;#000000&quot; TEXT = &quot;#FFFFFF&quot;>';
var blankFrameBottom = '</BODY></HTML>';
var blankFrame = blankFrameTop + blankFrameBottom;

document.write ('<FRAMESET onLoad = &quot;displayLoop()&quot; ROWS = &quot;100%, *&quot; FRAMEBORDER = NO

BORDER = 0>');
document.write ('<FRAME SCROLLING = AUTO SRC = &quot;javascript:parent.blankFrame&quot; NAME =

&quot;draw&quot; MARGINWIDTH = 2 MARGINHEIGHT = 2>');
document.write ('</FRAMESET>');
//-->
</SCRIPT>

</HEAD>
<BODY>

</BODY>
</table>
</body>
</HTML>
 
Redtooth...
I do not understand what you mean by advance on a new html page? Can you try to describe your problem a little differently?


Sera
I often believe that...
My computer is possessed!
 
Sera
What I mean is that if you load this piece of html code it produces a kind of slide show: a black screen, next black screen, etc. then finally it ends up on a white screen and the address is still index.html. What I would like for it to do would be to advance onto/or load up the next screen that is index1.html once its finished the slide show.
I hope this makes more sense.
Thanks
Redtooth.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top