crf121359
06-23-2010, 04:53 PM
Hi guys,
I am trying to make a pop-up window for my site's homepage.
I am not sure what to do to be honest.
I tried puting this code:
onload="win('http://www.beholdhecomes.net','','750','500','0','0','1','width=750,height=500')">
<script type="text/javascript">
<!--//
function win(u,n,w,h,l,t,c,f) {
var x=((screen.width-w)/2);if(c==1){l=x;t=(screen.height-h)/2;}if(c==2){l=x}
f+=',top='+t+',left='+l;LvlWin=window.open(u,n,f);LvlWin.focus();
}
//-->
</script>
in the index.php file of my site but nothing happened!!!:confused:
I have attached the index.php codes to this message as well so you can view it if needed.
Could someone please tell me what I am doing wrong or where I should place the pop-up code ?
Thank you.
Kind Regards
I am trying to make a pop-up window for my site's homepage.
I am not sure what to do to be honest.
I tried puting this code:
onload="win('http://www.beholdhecomes.net','','750','500','0','0','1','width=750,height=500')">
<script type="text/javascript">
<!--//
function win(u,n,w,h,l,t,c,f) {
var x=((screen.width-w)/2);if(c==1){l=x;t=(screen.height-h)/2;}if(c==2){l=x}
f+=',top='+t+',left='+l;LvlWin=window.open(u,n,f);LvlWin.focus();
}
//-->
</script>
in the index.php file of my site but nothing happened!!!:confused:
I have attached the index.php codes to this message as well so you can view it if needed.
Could someone please tell me what I am doing wrong or where I should place the pop-up code ?
Thank you.
Kind Regards