we can beat any UK and Us quote and guaranty very professional design services
 

Tutorials

» Fireworks Effects Tutorials

» Flash Tutorials

» Photoshop Tutorials

» Dreamweaver Tutorials


 

Maa Graphics Services

» 2D Animation
» Architectural Rendering
» 3D Product Modeling
» 3D Exhibition Display
» Digital Illustration

» Book Illustrations
» Cartoon Drawings
» Medical Illustration

» Illustration

» Illustrations
» Portrait Illustrations
» Fashion Illustrations

» Logo Design
» Stationary Design
» Advertising Designs
» Banner Designs
» Brochures Designs

» Direct Mail Design
» Flyers Designs
» Folders Designs
» Image Clipping Paths
» News Letter Design

» Package Design
» Posters Designs
» Signage Designs
» Brochure Website
» E-Commerce Website

» Flash Website
» CMS Development
» Search Engine Optimising
» Website Content Writing
» E-mail Newsletter Design

 
Playing Sound on Mouse over or Mouse click effect in DreamweaverMX

Use Dreamweaver Behaviors to Play sound, music on Rollover, on Click or on Loading the Page

 

Sample: Click Here to Play Sound

 

Learn how to Play Sound in 2 steps

  • Create a link for the sound to be played on Rollover or on Click. You need to make a simple text link with '#' symbol.
  • Then add a behavior to the link. Open Windows/Behaviors and click on the '+' symbol in the Behaviors Panel. Click on 'Play Sound'. Browse to find the sound you need to play and click OK.

 

Note: If you need to play music on any event, go to the behaviors panel and select another event from events drop down menu e.g. to play music on Rollover then you have to choose onMouseOver

 

Javascript Code

 

<script language="JavaScript">
<!--
function MM_controlSound(x, _sndObj, sndFile) { //v3.0
var i, method = "", sndObj = eval(_sndObj);
if (sndObj != null) {
if (navigator.appName == 'Netscape') method = "play";
else {
if (window.MM_WMP == null) {
window.MM_WMP = false;
for(i in sndObj) if (i == "ActiveMovie") {
window.MM_WMP = true; break;
} }
if (window.MM_WMP) method = "play";
else if (sndObj.FileName) method = "run";
} }
if (method) eval(_sndObj+"."+method+"()");
else window.location = sndFile;
}
//-->
</script>

 

Dreamweaver generates the following code that embeds the sound file within the page

<embed name='CS1022563046202' src='sound.wav' loop=false
autostart=false MASTERSOUND hidden=true width=0 height=0>
</embed>

 

This can be included towards the end of the page.

 

HTML Code

 


<a href="#" onClick="MM_controlSound('play','document. CS1022563046202','sound.wav')">Click
Here to Play Sound</a>

 

 

 

 

 
stock illustrations

 

 
Home | Free Tutorials | Templates | Website Templates | Logo Templates | About | Website Designed Maa Graphics | Copyright © www.maagraphics.com - All rights reserved | Site map