SpeedFreak
11-10-2002, 03:03 AM
ok,
i have a javascript that generates a popup window:
<script language="javascript">
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable= 0'
win = window.open(mypage,myname,settings)
}
</script>
it is called via a link (in an imagemap):
<area shape="rect" coords="90,3,493,45" href="javascript:null()" onclick="NewWindow('loading.html','name','800','600','no');return false" target="main">
I have had some comments from people saying it is not working on their systems. What i want to know is, is there anything i can do to make this more cross-browser compatible??
Thanks
Chris Johnson
Manager - www.blueshiftdesigns.com
i have a javascript that generates a popup window:
<script language="javascript">
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable= 0'
win = window.open(mypage,myname,settings)
}
</script>
it is called via a link (in an imagemap):
<area shape="rect" coords="90,3,493,45" href="javascript:null()" onclick="NewWindow('loading.html','name','800','600','no');return false" target="main">
I have had some comments from people saying it is not working on their systems. What i want to know is, is there anything i can do to make this more cross-browser compatible??
Thanks
Chris Johnson
Manager - www.blueshiftdesigns.com