popcop
07-06-2004, 09:52 AM
im using this code for a popups...
<script language="JavaScript">
<!--
function open_read(inUrl)
{
winLeft = (screen.availWidth-320)/2;
winTop = (screen.availHeight-400)/2;
if (navigator.appName == "Microsoft Internet Explorer") {
strWindow = "toolbar=no,location=no,status=no,directories=no,menubar=no,scrollbars=yes,resizable=no,width=320,hei ght=400,left="+winLeft+",top="+winTop
} else {
strWindow = "toolbar=no,location=no,status=no,directories=no,menubar=no,scrollbars=yes,resizable=no,width=320,hei ght=400,screenX="+winLeft+",screenY="+winTop
}
window.open(inUrl, "read", strWindow);
}
//-->
</script>
when i click on the link and the pop up opens the page jumps up...
you can see what i mean here... www.m8magazine.com/newsite
just click the top link in the news
<script language="JavaScript">
<!--
function open_read(inUrl)
{
winLeft = (screen.availWidth-320)/2;
winTop = (screen.availHeight-400)/2;
if (navigator.appName == "Microsoft Internet Explorer") {
strWindow = "toolbar=no,location=no,status=no,directories=no,menubar=no,scrollbars=yes,resizable=no,width=320,hei ght=400,left="+winLeft+",top="+winTop
} else {
strWindow = "toolbar=no,location=no,status=no,directories=no,menubar=no,scrollbars=yes,resizable=no,width=320,hei ght=400,screenX="+winLeft+",screenY="+winTop
}
window.open(inUrl, "read", strWindow);
}
//-->
</script>
when i click on the link and the pop up opens the page jumps up...
you can see what i mean here... www.m8magazine.com/newsite
just click the top link in the news