Print Page | Close Window

Show image on click

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=18301
Printed Date: 29 March 2026 at 6:28pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Show image on click
Posted By: sccs
Subject: Show image on click
Date Posted: 07 February 2006 at 12:15pm
I want to be able to show an image on our website but only when the user clicks on a button.
Basically its a contact page and the user has the option to view a map of where we are on the same page. The map needs to be hidden first. I dont want to use layers.
 
Any ideas.
 
Thanks



Replies:
Posted By: michael
Date Posted: 07 February 2006 at 2:21pm
Use Javascript, there are plenty turorials on that on script sites i.e. dynamicdrive.com Same goes for your onmouseover question...

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: ub3rl337ch3ch
Date Posted: 07 February 2006 at 11:37pm
<img style="visibility:hidden" id="theimage">
 
<button onclick="document.getElementById('theimage').style.visibility='visible'">CLICK ME!!!</button>
 
or you can use style.display, with 'none' and ... well, i just use nothing: ''



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net