Forum Moderators: open

Message Too Old, No Replies

exit popup

         

lineage

1:51 pm on Sep 29, 2002 (gmt 0)

10+ Year Member



can someone please point me to the direction on how to do a random exit popup?

i found a script on that from arep but it doesn't work on my server

please try to make it pretty easy since i'm pretty stupid in html :(

thx

or random backgroud popup

madcat

7:44 pm on Sep 29, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



random exit popup?

Not sure if I like the sound of that.

i found a script on that from arep but it doesn't work on my server

What? What would you like it to do exactly?

lorax

7:58 pm on Sep 29, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hello lineage,
If you're asking about how to generate a popup window when a visitor leaves a webpage you may find that some folks have...um.. strong feelings about that technique.

If this is not what you're asking for then you may want to try to explain what you need a bit more.

GB

jdMorgan

8:03 pm on Sep 29, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



OK, without being too judgemental, here is a simple popup:

Add this function in <head> section of document:

function CommitMarketingSuicide ()
{
PopUp = window.open('irritate_many_users_who_wont_come_back.html',
'Rude','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,
copyhistory=no,resizable=yes,width=480,height=360,left=10,top=10');
PopUp.focus();
}

Add "onunload" call to <body> tag of document:

<body onunload="javascript:CommitMarketingSuicide()" text="#000000" bgcolor="#FFFFFF" link="#000099" vlink="#330066" alink="#FF0000" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" rightmargin="0">

The names of the function and the popup window were carefully selected to express my thoughts on popups, but it is functioning code, so now you have an answer... ;)

Be advised that the newest browsers support built-in pop-up killers, and the days of the pop-up are numbered. We can all thank X10 for the new browser support available now in Opera and Mozilla. Typically, once a site throws an unsolicited popup at me, I never go back, so please consider this carefully.

Jim

[edited by: tedster at 11:38 pm (utc) on Sep. 29, 2002]
[edit reason] fix side scroll [/edit]

sun818

8:34 pm on Sep 29, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



One of the experimental features of the Goolge Toolbar is Browser control:

"The onUnload JavaScript event is most often used to open pop-up windows as you leave a page, which can be an annoyance. The following feature will clear the onUnload event after loading each page."

[ ] Suppress the onUnload JavaScript event

The only time I have found the exit popup useful was when I abandoned a shopping cart and it offered me a 15% discount on my total.

p.s. is the width of this specific web page wacky for anyone else?

jdMorgan

8:44 pm on Sep 29, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for the Google Toolbar tip!

I have used the onunload feature to close an opt-in popup on one of my sites when the user closes or leaves the main page. It saves the annoyance of having to close the popup manually. IMHO, popups have their place as "more information" windows, but I've never used them except in cases where the user knows a new window will pop up if he/she clicks on a link.

This page is wide because of the long unbroken line in the js function in my post above.

Jim

dingman

8:47 pm on Sep 29, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



p.s. is the width of this specific web page wacky for anyone else?

Yup. It's wide enough to fit jdMorgan's listing of all the obnoxious options you can set on a pop-up window into one line.

I *might* forgive a site that offered me a steep discount on unpurchased shopping-cart items for the popup when I bailed. If I even saw the popup. Or I might get pissed that they tried to take me for 18% more than they were willing to sell for.

jdMorgan

11:04 pm on Sep 29, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



dingman,

Actually, I think it ran wide because I gave the file to be loaded a very appropriate name. :)

Jim