|
|
|
|
Like this code?
Show the author your appreciation.
|
|
| |
This example shows how a single swf file can be placed on an html document with playing sound on and off. This is a very easy method to do. most of the site's use th javascript API but i just use a single variable to solve this problem.
Please see attached file above.
HTML for Sound on
| <HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<TITLE>Play Sound</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="500" HEIGHT="200" ALIGN="">
<PARAM NAME=movie VALUE="single_swf_sound_on_off.swf?playSound=var_play"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="single_swf_sound_on_off.swf?playSound=var_play" quality=high bgcolor=#FFFFFF WIDTH="500" HEIGHT="200" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
</BODY>
</HTML> | |
HTML for Sound off
| <HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<TITLE>Sound OFF</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="500" HEIGHT="200" id="header123" ALIGN="">
<PARAM NAME=movie VALUE="single_swf_sound_on_off.swf?playSound=var_stop"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="single_swf_sound_on_off.swf?playSound=var_stop" quality=high bgcolor=#FFFFFF WIDTH="500" HEIGHT="200" NAME="header123" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
</BODY>
</HTML> | |
|
|
| Higly Customizable Javascript Calendar Script Categories : Java Script, Calendar, Date Time, HTML, CSS | | | Show or Hide your Content using Javascript Categories : Java Script, HTML, CSS, Beginner Guides | | | Allows you to parse a deliniated string and put the individual fields in a SELECT option in a form Categories : HTML, PHP, Strings | | | How to preset a text string in a textarea input field Categories : HTML, HTML and PHP, PHP, Beginner Guides | | | class formHTML build your HTML Forms from PHP Categories : PHP, PHP Classes, HTML and PHP, HTML | | | Classic guest book made with PHP and Flash Categories : PHP, Flash, Java Script | | | ANTI leech script, use this if you want that people can't
see the original URL. The files can be on your own server
or on another server. Categories : HTML, Misc, PHP | | | A simple class with some HTML output functions that would come in handy for consistent page layout etc. Categories : PHP, PHP Classes, HTML and PHP, HTML, Navigation | | | showing Help (assistance) to the user while filling html forms. Categories : HTML, Java Script, Form Processing | | | Clock at Status Bar Categories : Java Script, HTML, Date Time | | | Newbie Notes #10 - Generating drop downs Categories : PHP, MySQL, HTML, Beginner Guides, Databases | | | How to create <SELECT> menues that change on the fly according to other <SELECT> menues on the page? Categories : Java Script, HTML | | | Java Script Based Navigation Categories : HTML, Java Script, Navigation | | | Prevent Right Mouse steal your graphics Categories : HTML, Java Script, Security | | | The first step Guest Book ... ^^ Categories : MySQL, PHP, Apache, HTML, HTTP | |
|
|
|