Click to See Complete Forum and Search --> : popup


teresa
11-11-2003, 08:09 AM
I have a popup window but it has white space around the edges and I don't know how to get rid of it.
And I can't figure out where to put the <a href> to make the popup go to a different page.

Can someone help?

Here's my header code:

<SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
<!--
<!--
var popupWindow=null;
function popup(mypage,myname,w,h,pos,infocus){

if (pos == 'random')
{LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
else
{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';popupWindow =window.open('',myname,settings);
if(infocus=='front'){popupWindow.focus();popupWindow.location=mypage;}
if(infocus=='back'){popupWindow.blur();popupWindow.location=mypage;popupWindow.blur();}

}
// -->

agminer
11-11-2003, 09:15 PM
Can't help you with the white space, but the <a href> would go around the <img> tag making the whole img the link (this assumes the img fills the whole popup).

teresa
11-12-2003, 07:26 AM
I tried putting the <a href> around the <img> tag and the popup didn't even work.

agminer
11-12-2003, 10:04 AM
Looks like it is time to see all the code. How about a link to the pages you are working with.