Alx Tioltisan Alx Tioltisan - 1 year ago 57
CSS Question

Making a <A href> to show picture? It is possible?

How can I make a DIV to appear only when it's clicked? I have which shows an div style, but unfortunatelly it shows when someone enters on the site too, I want to be show only when someone clicks on the a href. DEMO: ( you can click Suspect folder )

<div id="info">
<img class="close-image" src="images/closeBg.png" />
<div class="arestat">
<img src="images/arestat.gif" alt="" ondragstart="return false;"/>

<script type="text/javascript">
$(function() {
$('#suspect').click(function() {
return false;

Answer Source

If you do not want the div to be visible initially, you should set its display: none

<div id="info" style="display: none;">
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download