So you just take the source of that page as given:
Code:
<div id="appear_demo" style="display:none; width:80px; height:80px; background:#c2defb; border:1px solid #333;"></div>
<ul>
<li><a href="#" onclick="$('appear_demo').appear(); return false;">Click here for a demo!</a></li>
<li><a href="#" onclick="$('appear_demo').hide(); return false;">Reset</a></li>
</ul>
And just put the JS on the dive where you want the image to appear.
example:
Code:
<html>
<head>
<title appearing images</title>
</head>
<body>
<div>
<ul>
<li><a href="#" onclick="$('appear_demo').appear(); return false;">Click here for a demo!</a></li>
<li><a href="#" onclick="$('appear_demo').hide(); return false;">Reset</a></li>
</ul>
</div>
<div><p>This is some other dive where nothing but this text appears. Nothing special about it here.</p></div>
<div id="appear_demo" style="display:none; width:80px; height:80px; background:#c2defb; border:1px solid #333;"><p>The Image will appear down here!</p></div>
</body>
</html>
Bookmarks