JavaScript question??

liunx

Guest
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?<br />
Thanks!<!--content-->You are probably looking for something like this...<br />
<br />
<head><br />
<br />
<script language="javascript" type="text/javascript"><br />
function popup()<br />
{<br />
var url = "yourimage.jpg";<br />
var name = "popup";<br />
var windowproperties = "width=550,height=300,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,left=150,top=150";<br />
<br />
window.open(url, name, windowproperties);<br />
}<br />
</script><br />
<br />
<head><br />
<body onload="popup();">NOTE: the var windowproperties line all goes on one line...<!--content-->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!<!--content-->hey thanx that helped me out to<!--content-->Glad to hear that. :D<!--content-->
 
Back
Top