|
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 |
Playing Sound on Mouse over or Mouse click effect in DreamweaverMX
Tutorials about Flash MX, Photoshop and fireworks are also provided by our website:
A tutorial to help you learn how to play sounds in Dreamweaver in few simple steps:
Follow step by step procedure given below:
- A link must be created for the sound that is to be palyed on click or rollover.
- Then make a text link by a ‘#’ symbol.
- Open Behavior window and click “+” symbol in the behavior panel to add Behavior to the link.
- Then click the ‘play sound’ link and browse to find the sound that is to be played. (You can play music on any event by taking Behavior panel and selecting another event from the events drop down menu.)
- Following are the java script 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>
-
The following code is generated by Dreamweaver to embedded the sound file in the page:
<embed name='CS1022563046202' src='sound.wav' loop=false
autostart=false MASTERSOUND hidden=true width=0 height=0>
</embed>
HTML Code
<a href="#" onClick="MM_controlSound('play','document. CS1022563046202','sound.wav')">Click
Here to Play Sound</a>
|
|
|
|
|