Click to See Complete Forum and Search --> : JavaScript question??
stargal98
02-11-2003, 08:58 AM
I have a .jpg "advertisement" that I want to show the customers who come onto our site. I want it to pop up when the home page loads. I have it sized the way I want it, but I just don't like working with the pop-up maker utilities or anything like that. Can I make a javascript for it? Is there any way I can manually do it so I can actually see how it is done?
Thanks!
You are probably looking for something like this...
<head>
<script language="javascript" type="text/javascript">
function popup()
{
var url = "yourimage.jpg";
var name = "popup";
var windowproperties = "width=550,height=300,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,left=150,top=150";
window.open(url, name, windowproperties);
}
</script>
<head>
<body onload="popup();">NOTE: the var windowproperties line all goes on one line...
stargal98
02-11-2003, 09:59 AM
Yes that was exactly what I was looking for. I looked on w3cschools, and a few other sites, but couldn't find exactly what I needed. Thank you!
z_mirza
02-13-2003, 09:23 PM
hey thanx that helped me out to