help with java script

M

MEGA

Ok I want to put music behind this java script and keep it running for
the duration of the script. Havent had any luck doing so .. Please
help!


<HTML>
<HEAD>
<TITLE>JavaScript Tip of the Week for October 28, 1996: The Art of
Dynamic HTML creation</TITLE>
<SCRIPT LANGUAGE = "JavaScript">
<!--
/* This code is Copyright (c) 1996 Nick Heinle and Athenia Associates,
* all rights reserved. In order to receive the right to license this
* code for use on your site the original code must be copied from the
* Web site webreference.com/javascript/. License is granted to user
to
* reuse this code on their own Web site if and only if this entire
copyright
* notice is included. Code written by Nick Heinle of
webreference.com.
*/

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 a simple effect.', 'One of many
actually.', 'It caught your attention.', 'Now find out how it\'s
done.');
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:parent.blankFrame" NAME = "draw" MARGINWIDTH = 2
MARGINHEIGHT = 2>');
document.write ('</FRAMESET>');
//-->
</SCRIPT>
</HEAD>
<BODY>
This Page is what non-JavaScript browsers see.
</BODY>
</HTML>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,085
Messages
2,570,597
Members
47,218
Latest member
GracieDebo

Latest Threads

Top