Eg :
<input type=”text” name=”txt_name” value=”Name” onfocus=”if(this.value==’Name’)this.value=”;” onblur=”if(this.value==”){ this.value=’Name’;} “/>
Eg :
<input type=”text” name=”txt_name” value=”Name” onfocus=”if(this.value==’Name’)this.value=”;” onblur=”if(this.value==”){ this.value=’Name’;} “/>
<?php
$username=”tppramod”; // Your Twitter username
$limit=10;//Number of tweets
if(!is_numeric($limit)){$limit = 10;}
$xml = simplexml_load_file(‘http://search.twitter.com/search.atom?q=from%3A’.urlencode($username));?>
<table>
<?php for($i=0;$i<$limit;$i++){
if(empty($xml->entry[$i]->content)) break;
$attr = $xml->entry->link[1]->attributes();
?>
<tr> <td> <img src=”<?php echo $attr[‘href’]; ?>” /> </td> <td style=” font-size:12px;”> <?php echo $xml->entry[$i]->content; ?> </td> </tr>
<?php } ?>
</table>
Follow the below given link
eg :
var str = new Array(“First element”, “Second”, “Last”);
alert(str.length) //will return the number of elements in an array
You can compare two strings using “==” operator
eg :
var str1=”Test1″;
var str2=”Test2″;
if(str1=str2)
alert(“Message”);
You can declare an array using the constructor “Array”
var arlene1 = new Array();
var arlene2 = new Array(“First element”, “Second”, “Last”)
You can change the class name using the below given code.
document.getElementById(“idElement”).setAttribute(“class”,”className”);
Please include the following line in page.xml page to include js file from the your theme folder
<action method=”addItem”><type>skin_js</type><script>filename.js</script></action>
The path will be www.yourSiteName.com/skin/frontend/mind/extreme/js/filename.js
AJAX is Asynchronous JavaScript and XML.
AJAX is not a new programming language, but a new way to use existing standards.
AJAX is the art of exchanging data with a server, and updating parts of a web page – without reloading the whole page.