By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,636 Members | 1,213 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,636 IT Pros & Developers. It's quick & easy.

Sound clip needs to load last

P: n/a
Hi

A clint has insisted we load a babbling brook sound clip to his home
page but it needs to load last to avoid delays in loading images and
other elements.

Simply declaring it at page bottom doesn't help much. Tried a few
code snips found here and there but with lirrle success.

Pretty bog standard coding, and the requirement is for IE-6
compatibility minimum.

Any suggestions please.?

thanks

.les.
Oct 3 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Les Juby said the following on 10/2/2005 11:27 PM:
Hi

A clint has insisted we load a babbling brook sound clip to his home
page but it needs to load last to avoid delays in loading images and
other elements.
OK, then load it last, after the page has loaded, via the onload attribute.
Simply declaring it at page bottom doesn't help much. Tried a few
code snips found here and there but with lirrle success.
Did you try the resource that you were pointed to the last time you
asked this same exacty question (3 days ago no less).
Pretty bog standard coding, and the requirement is for IE-6
compatibility minimum.

Any suggestions please.?


Yes. Several:

1) Read the reply to the last time you asked this.
2) Attempt to read replies to you before reposting the same exact question.
3) Barring that, RTFM.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Oct 3 '05 #2

P: n/a
> "Les Juby" <le*****@anti-spam.iafrica.com> wrote:
news:43**************@news.telkomsa.net....

Hi

A clint has insisted we load a babbling brook sound clip to his home
page but it needs to load last to avoid delays in loading images and
other elements.

Simply declaring it at page bottom doesn't help much. Tried a few
code snips found here and there but with lirrle success.

Pretty bog standard coding, and the requirement is for IE-6
compatibility minimum.

Any suggestions please.?

thanks

.les.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Load sound after page loads</title>
<script type="text/javascript">
window.onload=function sound(){
setTimeout("document.getElementById('sound').src=' soundClip.htm'",5000);
}
</script>
</head>
<body>
<iframe src="http://www.yahoo.com" style=
"width:100%; height:600px;"></iframe><br>
<iframe src="about:blank" id="sound" height="45" width="300"
scrolling="no" frameborder="0" name="sound"></iframe>
</body>
</html>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Sound Clip</title>
<style type="text/css">
body{
margin: 0px;
padding:0px;
}
</style>
</head>
<body>
<embed src=
"http://www.mountaindragon.com/merchant/battleship/ocean2.wav"
autostart="true" loop="true" height="45" width="300">
</body>
</html>
Oct 3 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.