Here i am going to post a simple code that will help you to change the IMAGE SRC[SOURCE] ie, the script will change the displayed image dynamically in to another by clicking the hyperlink.
Grab the code here
<html>
<head><title>Change image SRC</title>
<script type="text/javascript">
function replaceImage(e) {
var image = document.getElementById('image');
image.src = 'http://www.mistonline.in/images/my-logo.png';
return false;
}
</script>
</head>
<body>
<a href='#' onClick='replaceImage();' title='Reload image'>Reload Image</a>
<img id="image" src='http://www.mistonline.in/images/another_my-logo.png'/>
</body>
</html>
You will also be interested in ,
- Javascript Title Bar Message Changer
- Change webpage background color using javascript
- Simple page flip effect using Jquery, css and simple html
- Javascript Popup Chromeless Window
- Finding The Size Of Images Using Javascript
- Add to favorites or bookmarking using javascript in firefox and internet explore [IE]
- Javascript setTimeout() Tricks
- Scrolling title bar in browser using javascript
- Disable submit button on form submit
- Alert a message before leaving a web page using javascript


