Mark Forums Read
  #1  
Old 01-10-2009, 06:48 AM
ajit22 ajit22 is offline
Member
 
Join Date: Jan 2009
Posts: 54
ajit22 is on a distinguished road
Default Play sound when mouse over

Save this in your includes folder with the js extension:
function soundOne() {
document.all.sound1.src =
"/sounds/button.au"} using sounds/button.au as the media file.

And then add
OnMouseOver="soundOne()" to your <a> tag, something like
<a class="nav" href="http://www.example.com/" title="Home" OnMouseOver="soundOne()">Home</a>

and add this to your <head> to add the JS file to your pages externally:

<script src="/includes/sounds.js"></script>
<bgsound id="sound1">

This is a script that I used inn the past for someone that wanted it.
__________________
New York Web design
Website design

Reply With Quote
 #Add to Ads's Reputation  
OldSponsored Ads
Ads AdsPromoter is online
Member
 
Join Date: LongTime
Posts: 1100
Ads is on a distinguished road
Default New Sponsored Ads



This message will go away once you are registered. Also, by registering, you will have access to all post topics, communicate privately with other members (PM), respond to polls, upload graphics, and access other special features! Registration is fast, simple and absolutely free so please Click Here to join our Web Hosting community today!
Reply With Quote
  #2  
Old 06-19-2009, 11:29 AM
gkumar gkumar is offline
Senior Member
 
Join Date: Jun 2009
Posts: 203
gkumar is on a distinguished road
Default Play sound when mouse over

In this example we can Play sound and event when mouse over


Quote:
<html>
<head>
<script Language="JavaScript">
<!--
function PlaySound(MySound) {
document.location.href=Mysound;
}
//-->
</script>
</head>
<Body>
<a href="MyLink.html" onMouseOver="PlaySound('tralala.wav')">Move your mouse over me...</a>
</body>
</html>
Reply With Quote
 #Add to Ads's Reputation  
OldSponsored Ads
Ads AdsPromoter is online
Member
 
Join Date: LongTime
Posts: 1100
Ads is on a distinguished road
Default New Sponsored Ads



This message will go away once you are registered. Also, by registering, you will have access to all post topics, communicate privately with other members (PM), respond to polls, upload graphics, and access other special features! Registration is fast, simple and absolutely free so please Click Here to join our Web Hosting community today!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 04:29 PM.


Powered by vBulletin Version 3.6.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 2.4.0