Operations logo
HTMLz.com
Professional Website Design - PHP Programming - Discount Domain Names

<html> <head> <title> Using JavaScript to Change the Source of an Image </title> <script> function changeImage(imgName) { image = document.getElementById('imgDisp'); image.src = imgName; } </script> <style type="text/css"> body { font-family: Arial, Helvetica, sans-serif; } .clear { clear: both; } span { margin-left: 50px; text-transform: uppercase; font-size: 14px; } span:hover { text-decoration: underline; cursor: pointer; color: blue; } </style> </head> <body> <span onclick="changeImage('contact.png')">Contact</span> <span onclick="changeImage('address.png')">Address Card</span> <span onclick="changeImage('clock.png')">Clock</span> <br /> <img id="imgDisp" src="contact.png" /> </body> </html>

 

For over 19 years HTMLz.com has provided web and graphic design services to the Dallas, Area. Some of our popular pages are: Professional Website Design Services. Graphic Design and Print Graphic Design Services. PHP Programming Services. Discount Domain Names. Website Templates.

HTMLz
2009 Knollwood Lane Carrollton TX 75006
Phone: (214) 724-3038
Fax: (214) 724-3038

Cloud

author javascript rollovers span changeimage body onclick imgname imgdisp javascript-rollovers contact.png style clear title head html image script blue cursor text-decoration underline pointer color address.png img src clock clock.png hover address card

htmlz discount domain names
brightcove free video cloud hosting
© 2015 HTMLz | Site Map 19.39ms (0.019s)

HTMLz.com Professional Website Design - Graphics Design - PHP Programming - Discount Domain Names - Javascript Rollovers

Javascript Rollovers

Javascript Rollovers