1
friction
xcgal mod help
  • 2003/11/12 0:07

  • friction

  • Just popping in

  • Posts: 9

  • Since: 2003/11/10


hi, i have the following javascript to create a popup box in a normal html environment:

<SCRIPT LANGUAGE="JavaScript">
<!--

function 
PopImg(pic)
{  

imgwidth = 640;
imgheight = 480;

var 
pics =

"<HTML><CENTER></HTML>" +
"<BODY leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>" +
"<a href='javascript:self.close()'><IMG SRC='Untitled-"+ pic +".jpg' border=0>";

var 
xloc = ((Math.floor(window.screen.availWidth /2)) - (imgwidth/2));
var 
yloc = ((Math.floor(window.screen.availHeight /2)) - (imgheight/2));
var 
wo = window.open("", "_blank", "menubar=no,resizable=no,scrollbars=no,width=" + imgwidth + ",height=" + imgheight + ",top=" + yloc + ",left=" + xloc);
wo.focus();
wo.document.write(pics);
wo.document.close();

}

//-->
    
</script>

with the following code for the link...

<a href=javascript:PopImg('1')><IMG SRC='thumbnails/Untitled-1.jpg' border=0 width="110" height="82"></a>

i wish to include it in the thumbnails page, so that the link does not point to the intermediate image, but instead pops up this box with the image in it, if you understand the question.

Anyone able to tell me how i'd go about doing this?

2
friction
Re: xcgal mod help
  • 2003/11/12 16:42

  • friction

  • Just popping in

  • Posts: 9

  • Since: 2003/11/10


anybody?