PDA

View Full Version : Pop Up Code - JS


TheKman
03-21-2001, 03:38 PM
Hey Gang,

Could somebody post a real easy Javascript Pop Up code to display full size images when a thumbnail is clicked on?

Thanks

Dr. Web
03-21-2001, 04:35 PM
this example uses one javascript. Its easier to just link to the image though, as you see n the href.

<html>
<head>
<title>pop-up</title>
<script language ="javascript">
function pop_up(){
win = window.open("http://www.volcanic-design.com/volc_photo.jpg", "", "height=345,width=300", hotkeys="no", toolbar="no", copyhistory="no", resizeable="no");
}
</script>
</head>
<h3>pop-up</h3>
<body>
<form name="form1" action="" method="">
<input type="button" name="button2" value="pop-up" onclick="pop_up()">
</form>
<a href="http://www.volcanic-design.com/volc_photo.jpg" target="_blank">Full size pic</a>
</body>
</html>

TheKman
03-22-2001, 03:11 PM
Thanks Doc - I haven't had a chance to try your perscription yet. But I will soon!

TheKman
03-22-2001, 03:22 PM
With the HTML code you supplied, I know how to do that. But, what I want is a pop up window or browser that is just the size of the pic. With none of the menu options, just the title bar and the minimize, maximize, and close buttons.