Jamesking56 Posted February 11, 2007 Share Posted February 11, 2007 how do i add my own advert pop-ups on my website???? Link to comment Share on other sites More sharing options...
Lepper Posted February 13, 2007 Share Posted February 13, 2007 do you mean a different way of showing alerts boxes? (alerts like this? --> alert("My alert!") Link to comment Share on other sites More sharing options...
pulpfiction Posted February 13, 2007 Share Posted February 13, 2007 Window.open is used to create a popup page....sample belowhttp://msdn.microsoft.com/library/default....hods/open_0.asphttp://www.javascript-coder.com/window-pop...ndow-open.phtml Link to comment Share on other sites More sharing options...
MrAdam Posted February 14, 2007 Share Posted February 14, 2007 you'll probably be wanting them to popup when the page loads, so you'd want to use something like: <script type="text/javascript">onload = function() { var pop1 = window.open('advert1.gif','add1','..features..'); var pop2 = window.open('advert2.gif','add2','..features..');}</script> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now