Posts

JavaScript tabifier, tabbed change on button click

Image
Automatically create an HTML tab interface using JavaScript. In this code you will change the data dynamically in tabbing. Simply copy this code and paste on your html page. <script language="javascript"> function firstblock() {     var ele = document.getElementById("1stblock");             document.getElementById("firsttab").style.backgroundColor="red";         document.getElementById("secondtab").style.backgroundColor="black";         document.getElementById("thirdtab").style.backgroundColor="black";         document.getElementById("2ndblock").style.display="none";         document.getElementById("3rdblock").style.display="none";         document.getElementById("1stblock").style.display="block";         } function secondblock() {     var ele = document.getElementById("2ndblock");     if(ele.style.display

How to make CSS Rounded Corners?

How to make CSS Rounded Corners? Here is a simple solution to make rounded corner... <div style="width:200px;color:#111111;border:2px solid #CCCCCC;padding:5px;-moz-border-radius: 15px;border-radius: 15px;">sagar</div> Note=> this code will not work in Internet Explorer

Upload an image into a folder

For upload an image into a folder from antother folder you have to simply copy this code and paste this code on your new pahe of php. and run the page on browser.. <?php $target="images/"; $target= $target.basename($_FILES['file']['name']); $img_name=basename($_FILES['file']['name']); if(move_uploaded_file($_FILES['file']['tmp_name'],$target)) { echo "the file name ".basename($_FILES['file']['name'])."has been uploaded"; } else { echo " downloaded error"; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form

make database connection in php

To make database connection in php make a new php file and copy that code there <?php $con = mysql_connect("hostname","username","password"); if (!$con)   {   die('Could not connect: ' . mysql_error());   } ?>  

What is PHP?

PHP stands for P HP: H ypertext P reprocessor PHP is a server-side scripting language, like ASP PHP scripts are executed on the server PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.) PHP is an open source software PHP is free to download and use

Toggling Default Value of Textbox on Focus

When you click on the textbox, it becomes blank but as the focus loses, the default value again appends to the text box. It’s very simle Just copy and paste this code on your page: <div class="signin_right" ><input type="text" name="emailid" id="emailid" style="color:#8B8B8B" value="Your Official Email Id" onfocus="if(this.value == 'Your Official Email Id'){this.value=''; this.style.color='#000000';}" onblur="if(this.value==''){ this.value='Your Official Email Id'; this.style.color='#8B8B8B';}"/></div>

What is php?

PHP is a powerful tool for making dynamic and interactive Web pages. and the full for of php is Hypertext Preprocessor.