Monday, November 28, 2011

Jquery Popup Model Box

Example Code

<script type="text/javascript" src="popup.js"></script>

<div id="modal" style="border:3px solid black; background-color:#9999ff; padding:25px; font-size:150%; text-align:center; display:none;">
This is a modal popup!<br><br>
<input type="button" value="OK" onClick="Popup.hide('modal')">
</div>

<a href="#" onclick="Popup.showModal('modal');return false;">Show Modal Popup</a>
<br>
<a href="#" onclick="Popup.showModal('modal',null,null,{'screenColor':'#99ff99','screenOpacity':.6});return false;">Show Modal Popup With A Custom Screen</a>

This is the popup.js



Downlod popup.js file
Popup.js

The PHP Switch Statement

Use the switch statement to select one of many blocks of code to be executed.

Example





switch ($x)
{
case 1:
echo "Number 1";
break;
case 2:
echo "Number 2";
break;
case 3:
echo "Number 3";
break;
default:
echo "No number between 1 and 3";
}
?>






What is the meaning of PHP ?

PHP - PHP: Hypertext Preprocessor. PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module.PHP scripts are executed on the server.PHP files can contain text, HTML tags and scripts.PHP files have a file extension of ".php", ".php3", or ".phtml".