Top > Affiliate Marketing > pop-up scripts


Below you'll find several cut and paste pop-up scripts, together with instructions on how to put the javascript on your site and modify the pop-up code.

pop-up script to open a window when your page loads

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

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

function popup(Site)
{
window.open(Site,'PopupName','toolbar=no,statusbar=no,
location=no,scrollbars=yes,resizable=yes,width=275,height=200')
}

// end -->
</script>

onLoad="popup('URL/to/popup.html')"

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

<BODY bgcolor="#ffffff" text="#000000"
onLoad="popup('http://NowSell.com/popup.html')">

as you prefer (or omit them), and set the width and height to the size you require.

second on entry pop-up script example

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

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

function popup(){
window.open('URL/to/popup.html','PopupName','toolbar=0,location=0,
status=0,menubar=0,scrollbars=0,resizable=0,width=345,height=400');
}
// end -->
</script>

Add the following code into your <BODY> tag:

onLoad="popup()"

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

<BODY onload="popup()" bgcolor="#ffffff" text"#000000">

 

third on entry pop-up script example

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

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

function popup() {
var page = "URL/to/popup.html";
var windowprops = "width=380,height=500,location=no,menubar=no,
toolbar=no,scrollbars=no,resizable=no";
newWindow = window.open(page,'PopupName',windowprops);
}

// end -->
</script>

Add the following code into your <BODY> tag:

onLoad="popup()"

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

<BODY onload="popup()" bgcolor="#ffffff" text"#000000">

code to close pop-up after a certain time
Add the following code to your pop-up script, and adjust the time (in seconds) to your requirements:

setTimeout ('self.close' ()', 1200);

 

code to open your pop-up with a link

Place the following code where you want the link to appear:

<a href="javascript:popup()">Click here for pop-up</a>

code to open your pop-up with a button

Place the following code where you want the button to appear:

<FORM>
<input type="button" value="Click Me" onClick="javascript:popup()">
</FORM>


code to create a "close window" button

Place the following code where you want the buton to appear:

<FORM>
<input type="button" value="Close Window" onClick="window.close();">
</FORM>


TrackBacks

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

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