View Full Version : pop up window help


cute_angel10490
07-05-2003, 08:49 AM
hi, I'm making a thumbnail but I'm using a pop-up window to show the larger image, here's my code:

<script language="javascript">
//<!--
function popup()
{ window.open ("http://www.geocities.com/dreams_and_wishes4/myhandwriting.jpg","popup","width=367,height=340,location=0,menubar=0,resizabl e=0,scrollbars=0,status=0,titlebar=1,toolbar=0") }
-->
</script>

<DIV align=center><font face="Verdana" size="1" color="#D8415F">Click the image for a larger view</div>
&nbsp;
<p align="center"><a href="javascript:popup()" style="cursor:w-resize"><img src="http://www.geocities.com/dreams_and_wishes4/myhandwriting2.jpg" border=0 width="102" height="76" alt="my handwriting"></a></p>

when you click on the link, there's some white stuff on the pop-up and the part of the image got cut off, how do I fix that?

MaGiCSuN
07-05-2003, 10:40 AM
maybe this works:

http://www.codelifter.com/main/javascript/autosizeimagepopup.html

i also got an PHP one:

http://regretless.com/scripts/scripts.php#dodosnmimage

but since you use geocities.com (i guess of your code) you can't use that one.

here's some other ones:

http://forums.devshed.com/archive/1/2003/03/2/55202

http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=no+image+margin+pop-up+HTML

Love,
Mirna

cute_angel10490
07-05-2003, 10:47 AM
thanks, I'll try those!