Magento themes
3/13/2010
Show or hide an image by javascript
It is very easy to hide or show an image according to client's click.
simply call a js function in onclick event handler for example:-
Write this script into your header Tag
<script type="text/javascript">function showblock(){ var img=document.getElementById('image');img.style.display="block"; } function hideblock() { var img=document.getElementById('image') img.style.display="none"; } </script>
Write these code in to your body tag
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment