|
|
|
|
|
|
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> | |
|
|
| Real simple example of removing HTML tags from text then changing \n (new line) to <br>. Could be used in a forum for instance. Categories : HTML, PHP, HTML and PHP, Beginner Guides | | | BBCode Formatting String Categories : PHP, HTML, Regexps, Arrays | | | Bookmarklets are simple tools that extend the surf and
search capabilities of Netscape and Explorer web browsers. Categories : Java Script, HTML, General | | | GonxTabs : Create elegant HTML tabs based interface Categories : Navigation, HTML, HTML and PHP, PHP | | | Classic guest book made with PHP and Flash Categories : PHP, Flash, Java Script | | | How to know which input button of type image was pressed in a form with
multiple image buttons (_x and _y) in PHP? Categories : PHP, Variables, HTML | | | class formHTML build your HTML Forms from PHP Categories : PHP, PHP Classes, HTML and PHP, HTML | | | CachedFastTemplate class, extends CDI's FastTemplate to allow page caching Categories : HTML and PHP, HTML, PHP Classes | | | 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 | | | How to make a scrolling Div Categories : HTML, CSS | | | CSS Container BOX , with cool CSS Design Categories : CSS, HTML, Web Design | | | How to use regular expressions to get the list of links from an HTML page Categories : PHP, Regexps, HTML, HTML and PHP | | | CSS Buttons Styles Categories : CSS, HTML, Beginner Guides | | | How to get the Focus (Cursor) into a Form-Element. Categories : HTML, Java Script | | | Browser Detecor Class Categories : PHP Classes, PHP, HTML | |
| |
| |
|