View Full Version : pop up page
hallj999
03-11-2003, 08:46 PM
does anyone know where i can get the code for a pop up page, i want it to pop up when the home page is loaded, it wud act a s a welcome page. can anyone help me, mO
Jason
03-11-2003, 10:16 PM
<script language="JavaScript">
<!-- hide from JavaScript-challenged browsers
function welcome_script() {
//this is an example of a popup with everything
//popupWin = window.open('welcome.html', 'WELCOME', 'menubar,toolbar,location,directories,status,scrollbars,resizable,width=200,height=200')
//popup without any of the bars
popupWin = window.open('welcome.html', 'WELCOME', 'width=200,height=<?php echo $pixels; ?>,top=0,left=0')
}
// done hiding -->
</script>
javascript:editOfficeHours();
something like that should work for you where welcome.html is the page you are going to home in your webpage directory.
Jason
Keith
03-11-2003, 10:16 PM
Place this code inside your head tag:<script type="Javascript" lang="text/javascript">
<!--
function popup(){
window.open('http://www.yourdomain.com/page.html','','width=550,height=440,resizable')
}
//-->
</script> and in your body tag add:onLoad="popup()"
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.