PDA

View Full Version : Javascript popup without menubars??



mustache_cat
03-04-2009, 05:36 PM
Hello -
this is my first post - so bare with me!
I'm also a beginner at javascript, and general coding, but I have a site with thumbnails, which when rolled over, a bigger image pops up in another frame on the same page. What I want is for this to happen, as well as when you actually "click" on the thumbnail, a detailed image pops up (as a popup window). I've got it so it works, but the menubar and scrollbars are still there, which I don't want.

example of site (http://www.emmaklingbeil.com/encaustic.html)

Here is the java script:

<script type="text/javascript">
<!--
function popup(url)
{
var width = 500;
var height = 700;
var left = (screen.width - width)/2;
var top = (screen.height - height)/2;
var params = 'width='+width+', height='+height;
params += ', top='+top+', left='+left;
params += ', directories=no';
params += ', location=no';
params += ', menubar=no';
params += ', resizable=no';
params += ', scrollbars=no';
params += ', status=no';
params += ', toolbar=no';
newwin=window.open(url,'windowname1', params);
if (window.focus) {newwin.focus()}
return false;
}
// -->
</script>


Here is the html:

<td>

<a href="javascript: void(0)" onclick="window.open('protectorbig.html','windowname1',
'width=400, height=700');
return false;" onmouseover="showImg('a_1','roll_a')" onClick="wopen('protectorbig.html', 'popup', 400, 700); return false;"><img src="images/protectorsmall.jpg" name="a_1" width="60" height="60" border="0" id="a_1" /></a></td>




thanks for any help,
and my apologies if this is a mess!

Emma

Nile
03-05-2009, 12:01 AM
Maybe this (http://www.dynamicdrive.com/style/csslibrary/item/css-image-gallery/)?
[no js required!]