473,466 Members | 4,869 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

embed methods

Hi,
I am trying to use the onMouseover event to trigger the playing of a small
sound file. I know that I need to embed the file and guess that I need to
use document.embed(), but what method can I use to actually trigger the
playing of the file?

Many thanks

Phil
Jul 20 '05 #1
2 3800


Philip WATTS wrote:
Hi,
I am trying to use the onMouseover event to trigger the playing of a small
sound file. I know that I need to embed the file and guess that I need to
use document.embed(), but what method can I use to actually trigger the
playing of the file?


That depends on the plugin that is used to play the sound file

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2
"Philip WATTS" <PR*****@syringa.freeserve.co.uk> wrote in message
news:bk**********@newsg1.svr.pol.co.uk...
Hi,
I am trying to use the onMouseover event to trigger the playing of a small
sound file. I know that I need to embed the file and guess that I need to
use document.embed(), but what method can I use to actually trigger the
playing of the file?
I don't know if its kosher or optimal, and I only needed it to work in
IE, but I got it to work, a sound play function:

//----------------------------------

function soundPlay(s) {
document.all.soundID.src=s;
}

//----------------------------------

A sound embedded in the body:

<body>
<bgsound ID='soundID' src='' LOOP='1'>
..
..

And an event calling it:

<img id='pic1' src='lion.jpg'
onMouseDown="soundPlay('lion.wav');"


zin
-- http://www.zintel.com
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Anna | last post by:
Hi all. I don't have a very deep understanding of CSS and this question might sound stupid for you. Sorry for that. Can the overflow CSS property be applied to the embed tag? I have an embed...
2
by: Wezzy | last post by:
Hi, is there a tool that automatically expose an object to python? i have an instance of a C++ (or ObjC) object and i want to pass it to the embed interpreter that runs inside my program. Python...
2
by: Eric Barr | last post by:
I've found myself using XSD files for my datasets. I'm loading them up from disk right now. I was hoping there was a way to embed the file in the assembly, so I could have access to it without...
4
by: Wayne P. | last post by:
I'd like to embed some dependent assemblies in my exe as not to worry about distribution. I have come across a few examples in C# (http://weblogs.asp.net/jdennany/archive/2003/09/24/29035.aspx),...
24
by: Manuel | last post by:
Is it possible to embed an image, like a company logo in a CDOSYS generated message? If yes, I´ll apreciate some code sample. I´ve been able to format messages in html the way I like, but I...
1
by: Andrew Poulos | last post by:
With "normal" SWF HTML there's an EMBED tag nested within an OBJECT tag. How can I check which tag is actually displaying the SWF? I'm using CSS on them and the style on the OBJECT affects the...
5
by: elbin | last post by:
Hello, first to say that I am a total beginner in Javascript but I know some programming (python in particular) and am able to understand methods/parameters and so on. Here's my problem: I am...
0
by: VigneshS | last post by:
Hi, I am a newbie to Globalization and Localisation Concepts. I tried almost all the methods of the Globalization concepts. But i cannot be able to embed a text file within a Resource. ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
1
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.