Return to Snippet

Revision: 3218
at June 19, 2007 13:44 by pierre


Initial Code
<!-- script rollover de imagens -->
<script>
	var imgPath = 'http://static.gazzag.com/img/';
	function switchImg(img, src) {img.src = imgPath + src;}
</script>

<img src="http://static.gazzag.com/img/<gazzag:i18nDir />/addfriend.gif" alt="<gazzag:i18n key="addfriend" />" onmouseover="switchImg(this, '<gazzag:i18nDir />/addfriend_hover.gif');" onmouseout="switchImg(this,  '<gazzag:i18nDir />/addfriend.gif');" />

Initial URL

                                

Initial Description

                                

Initial Title
Replace image with JS and DOM

Initial Tags

                                

Initial Language
JavaScript