Top > Affiliate Marketing > exit pop-up scripts


Below you'll find exit pop-up scripts together with explanations of how to implement the code to create your own exit pop-ups.

script to open an exit window when someone leaves your site

Place the following script between the <HEAD> and </HEAD> tags:

<script language="javascript">
<!-- begin

var exit=true;
function exitwindow()
{
var url = 'URL/to/popup.html';
var win = 'toolbar=0,directories=0,menubar=0,scrollbars=0,
resizable=0,width=250,height=300';
if (exit)
open(url,'WindowName',win); }

// end -->
</script>

Add the following into your <BODY> tag:
onUnload="exitwindow()"

Your <BODY> tag should then look something like this:

<BODY bgcolor="#ffffff" text="#000000" onUnload="exitwindow()">

And add the following into all internal links where you DO NOT want the new window to open:

onClick="exit=false"

For example:

<A href="http://www.nowsell.com/order.html" onClick="exit=false">Order Now</A>

Although the script above is designed specifically to create an exit pop-up, you can in fact quite easily turn a standard on-entry pop-up into an exit pop-up.

How?

Simply change the onLoad command in the <BODY> tag to onUnload. You will still have to insert the onClick="exit=false" code into the links you don't want to trigger the pop-up.

script to pre-load your exit window

This code will load your exit window information into the browser at the same as the main page. This makes it appear much faster when triggered by the visitor leaving the page. Place the following below the <BODY> tag:

<iframe src="URL/to/popup.html" name="FunctionName" height="0" width="0" noresize></iframe>

For Example, using the exit pop-up above:

<BODY bgcolor="#ffffff" text="#000000" onUnload="exitwindow()">
<iframe src="http://www.NowSell.com/popup.html" name="exitwindow" height="0" width="0" noresize></iframe>

TrackBacks

Trackback's URL:
http://www.seikokaiun.com/mt3/mt-tb.cgi/4104

Post Comment

(いままで、ここでコメントしたことがないときは、コメントを表示する前にこのブログのオーナーの承認が必要になることがあります。承認されるまではコメントは表示されません。そのときはしばらく待ってください。)

Category


◆ビジネス系
ブログアフィリエイトで稼ぐ日給8万円
ブログアフィリエイトで世界一周旅行
はるちゃんのネットで得しちゃおう!
超時短!1日1万円ブログアフィリエイトで稼ぐ私 の方法
アフィリエイト情報 Rich Rich
実践!情報商材アフィリエイトで稼ぐ
+100 万円副業収入術
ブログアフィリエイトで愛でいっぱいのお金持ちに なる方法
副収入100 倍計画書
ネットで得とく副収入
小遣い倍増計画
ちょっぴりおこづかいカフェテリア
投資で自己実現
競馬投資術
株達人ドットコム
内職バイトで高収入!道楽庵
徹底比較 外為会社
本当にオートサーフ&HYIP で稼げるの?!
◆検索エンジン系
モーニングサーチ
総合検索エンジン・Discovery.Search! サーチエンジン
◆HP 製作系
ホームページ製作ドットコム
web デザイナーが作るフリーホームページ素材
ホームページ製作会社グリーンステップ
Add to Google Add to My Yahoo!
Discount sale now! 50 Things In Common Successful people