Dynamically change an image with javascript

June 5, 2011 - 06:42

Images displayed in an HTML webpage can be changed with javascript. First use the code below to add an image to your webpage and assign it an ID such as "theimage".

Hide and display a div element using javascript

June 5, 2011 - 05:27

You may wish to hide or display a certain area of your website when the user clicks on a mouse. To do this first you need to create your area which will be hidden to begin with, and then later displayed using the javascript.

  • 1



© 2011 simplevb.net