473,396 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Sound clip needs to load last

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
2 1530
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
> "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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Andrew Poulos | last post by:
As a follow on to the 'fun' I had with IE I'm now trying to play sounds using an Object tag (no Embed) in MZ. Sadly whenever 'playButton' gets clicked MZ says that "audObj.Play is not a function":...
1
by: Les Juby | last post by:
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...
4
by: jdcharbonneau | last post by:
I am working on a foreign language learning program. (C# DotNet V2) I have some written text, and a recording of a native speaker speaking that text. I would like to be able to do the following: ...
4
by: sravan_reddy001 | last post by:
i want a sound to be generated when and event occurs. especially when a message box is displayed and when an user want to close a form(i want to include this in the form closing event) thanks... ...
26
by: Jake Barnes | last post by:
I did a search on the newsgroup comp.lang.javascript. I was searching for "how to play a sound with Javascript". I'm somewhat suprised that the majority of entries are from the 1990s, and there are...
29
by: Chris Riesbeck | last post by:
I have an image with a class and the class defines a clip rectangle. In Firefox 2 and 3, and Opera 9, I can access the rectangle with document.defaultView.getComputedStyle(). But that doesn't...
1
by: Atobaz | last post by:
Hi guys, i'm new in Flash, and im using flash 8.Can anyone please help with an AS2 code that can load images from a folder on my hard drive without specifying the names of the files. These images...
8
by: chromis | last post by:
Hi, I've been struggling to get sounds to work with attachSound when the sounds are stored in a swf loaded into another swf. I came across a post on a forum which supposedly explains how to to do...
2
by: puT3 | last post by:
im trying to make sound play when a movie clip is click...the movie clip will also display a text when it is click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.