[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Is a onmouseover image swap and sound effect possible at same time?

Posted on 1999-12-13
2
Medium Priority
?
303 Views
Last Modified: 2008-02-01
Is a onmouseover image swap and sound effect possible at same time?  I was wondering, if it were possible to have 3 different images swap out and have 3 different sound effects for the images?  If possible, HOW is it done?
Thanks
DAHAK
0
Comment
Question by:DAHAK
2 Comments
 
LVL 1

Accepted Solution

by:
someu earned 200 total points
ID: 2278013
The html code is:

<embed name="clik" src="sonido.wav" hidden autostart=false loop=false mastersound>
<script>
var1=new Image()
var1.src="image2.gif"
</script>
<a href="javascript:void(0)" onMouseOver=document.clik.play(false);document.images["image1"].src=var1.src>
<img src="new.gif" name="image1"></a>
0
 

Author Comment

by:DAHAK
ID: 2278107
Great answer.  I almost have what I need.  I neglected to state in my question that I would need to have the image change back to the original image so that if the mouse were moved over the image again the 2nd image and sound file would be activated again.  
Thanks for your help.
DAHAK
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

591 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question