PHP and MySQL Code

Start typing to search for PHP and MySQL Code Snippets and Articles Search

Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
Title : Sound On and Off (Mute) using one swf (Flash) file.
Categories : Flash, HTML
Suraj Thapaliya
Date : Mar 16th 2007
Grade : 2 of 5 (graded 7 times)
Viewed : 29174
File :
Images : No Images for this code example.
Search : More code by Suraj Thapaliya
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
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
<meta http-equiv=Content-Type content="text/html;  charset=ISO-8859-1">
<TITLE>Play Sound</TITLE>
<BODY bgcolor="#FFFFFF">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
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=""></EMBED>

HTML for Sound off
<meta http-equiv=Content-Type content="text/html;  charset=ISO-8859-1">
<BODY bgcolor="#FFFFFF">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
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=""></EMBED>

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
Cool tool tip
Categories : Java Script, HTML, Web Design
Java Script Based Navigation
Categories : HTML, Java Script, Navigation
Show or Hide your Content using Javascript
Categories : Java Script, HTML, CSS, Beginner Guides
Classic guest book made with PHP and Flash
Categories : PHP, Flash, Java Script
Script to check values being submitted by POST or GET method from a form. This script may help diagnose what variables are being supplied by a browser to other php scripts.
Categories : HTML, Variables, Debugging, PHP, HTTP
Conditional Check - a script that allows a user to submit a form only if the user check a checkbox.
Categories : HTML, Java Script, Form Processing, Beginner Guides
This provides a drop down form for searching with different search engines. All the encoding/arguments are set by the program as need for each supported search engine (currently 18)
Categories : HTML, Search
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
Enchancing dd/mm/yyyy forms with unobtrusive javascript
Categories : Java Script, HTML, User Interface, Date Time
Check if Javascript is Enabled or Disabled - Works in all Browsers
Categories : Java Script, HTML, Web Browsers
How to create <SELECT> menues that change on the fly according to other <SELECT> menues on the page?
Categories : Java Script, HTML
How to make a scrolling Div
Categories : HTML, CSS
Paginator - a class that can help you to split MySQL database query result sets to pages.
Categories : MySQL, Databases, HTML, PHP
Automatic generation of HTML code for a table. OO interface. Can define colspan, rowspan, table style, cell style, and data style. Simple, but effective.
Categories : PHP, PHP Classes, HTML, HTML and PHP