11/28/10

Roll Overs in HTML

Below is a code which helps u create a roll over. for that u need to have a folder (in which the images will be there).


Roll overs are like slide show of images (or anything u want), in which u press a button and the image gets changed. The code below will help u make a roll over just like that u have in Facebook. so now if u want u can shoe others that u have a roll over made by you and which is same as FB.



****************##********************


JS Roll Over Script:(without < & >)



<body>


<a href="next.html" 
onMouseOver="document.arrow.src='images/arrow_on.gif'" 
onMouseOut="document.arrow.src='images/arrow_off.gif'">


<img src="images/arrow_off.gif" width="147"  
height="82" name="arrow" alt="arrow" />


</a>


</body>


SHARE THIS POST:

Related Posts:

  • Detecting a Cookie Here is a piece of code that can help people detect cookies. Cookies play an important part in the website. *****************#####***************** JS Code: window.onload = showCookies; function showCookies() {  &nb… Read More
  • Working with DOM , nodes and Objects (part 2) : Deleting Nodes As my last post of DOM was on Adding nodes here is a post that will help you in deleting the last entered node. ie DELETING Nodes. *----------------------*----------------------*---------------------* HTML CODE: … Read More
  • Working with DOM,nodes and Objects : Inserting Nodes (part 3) This Post is a continuation of my previous posts ie Adding Nodes and Deleting Nodes. IN this post i am tell how you can add nodes between any two nodes. *----------------------*----------------------*----------------… Read More
  • Javascript Smarter Links Here is a piece of code which when you use will make your link in the website SMARTER. This piece of code i used it during my internship and it was well appreciated by the company as it made the user know that the content… Read More
  • Handling Keyboard Events in Javascript Guys if u have seen the moving of pictures on pressing a key in FB , FLICKR etc. Can also be done by you all now. The code for Handling the keyboard button press etc is shown below **********************##**************… Read More

0 comments:

Post a Comment