PDA

View Full Version : Auto Pop up



WebMazta
12-10-2010, 03:08 AM
I wanted to put Automatic Pop up add on my site, after the index page has been loaded the add will pop up after.

I tried this to put on the header.

<script language="javascript">
timer=setTimeout("window.open('www.anothersite.com','','width=500,he ight=500')"8000)
</script>

but it keeps popping up when I go to Categories and other pages.

And the URL of the pop up window is www.mysite.com/www.anothersite.com

it says Error 404 not found

Need help.

WebMazta
12-10-2010, 09:51 PM
I wanted it to pop up only once, and why is the link not working? Please help.

Admin
18-10-2010, 01:34 PM
What is your website url?

WebMazta
20-10-2010, 11:07 PM
www.skippysporn.com

The popup window should direct to a different website.

and want it to pop up once, at the first page only.

Thanks.

WebMazta
22-10-2010, 09:08 AM
I uploaded this on the header but it pops up in all pages.

I want it to pop up only once at the index page.

how can I do that?

<script language="javascript">

setTimeout("window.open('http://myad.com','','toolbar=no,location=no,directories=n o,status=no,menubar=no,scrollbars=yes,resizable=ye s,width=700,height=450,top=50,left=50')",8000);

</script>

Admin
22-10-2010, 07:36 PM
You will require customization for that as the header and footer files are loaded by all pages, so if you added it to those it will show on all pages.

You can try adding it to index.tpl