Here is a simple javascript to estimate the number of seconds and days left before new year. <SCRIPT LANGUAGE=”JavaScript”> function days_between(date1, date2) { var ONE_DAY = 1000 * 60 * 60 * 24 var date1_ms = date1.getTime() var date2_ms =... (Continue reading)
The code below will teach u how to remove child nodes using javascript <script language=”javascript” type=”text/javascript”>function remove(parent,child){var p = document.getElementById(parent);var c = document.getElementById(child); p.removeChild(c); } </script> <input name=”balu1″ name=”ada1″ value=”To Remove” onclick=”remove(‘torque’,'show’)” type=”button” /> <div id=”torque”> <div id=”show”><img src=”urimage.jpg” /></div>... (Continue reading)
If you know some javascript and some HTML then you can go forward….Those who need explanations plz feel free to mail me to balumohanv@gmail.com<script language=”JavaScript”>function getImgSize(imgSrc){var newImg = new Image();newImg.src = imgSrc;var height = newImg.height;var width = newImg.width;alert (‘The image... (Continue reading)
DOM elements Dynamically using our JAVASCRIPT JAVASCRIPT function AddItem() { // Create an Option object var opt = document.createElement(‘option’); // Add an Option object to Drop Down/List Box document.getElementById(“DropDownList”).options.add(opt); var Text =prompt(“Enter Your Name”); var Value =’addingsongs.php’ var Name =... (Continue reading)
Hi guys i am back with yet another tutorial on javascript First of all create an html page say TIME.HTML open it with your favourite text editor , PASTE THE FOLLOWING CODE <SCRIPT LANGUAGE=“JavaScript”> <!– function showFilled(Value) { if(Value>9) {... (Continue reading)