Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
Now there are many in the holiday, will do an input name automatically born with a name of the personalized Blessing page, so netizens spread, wildfire ... IP can be more than 30,000 during the holidays. But after the holiday, IP quickly fell back. Inspired by this, I said this marketing to the homepage of the site, the method is very simple:
1. Create a JS file, copy the following code to save:
var lusername =location.search.split ("=") [1];
if (!lusername) {
Lusername= "active element";
}
else{
Lusername=unescape (Lusername);
}
function Check (obj) {
if (obj.stra.value.length>8) {
Alert (' too long ');
return false;
}
if (obj.stra.value.length==0) {
Alert (' not filled in name ');
return false;
}
var url = "http://" +location.host+location.pathname+ "id=" +escape (Obj.stra.value);
Window.clipboardData.setData ("Text", url);
Alert (' Your personality Thunderbolt movie URL has been generated and copied well, directly press CTRL + V paste to QQ, MSN, email to your friends to share it!\n\n your friend received a movie site containing your name, will be very surprised oh ~);
Window.location.replace (URL);
return false;
}
2. Call the above JS code at the top of the homepage and insert the following code where you want to enter the name:
<center><form name=newinfo_form onsubmit= "return check" ><font size=3><b> Welcome to your friend < Font color= #ff0000 ><script>document.write (lusername) </SCRIPT></font> 's personalized movie website! Please enter your name on the right: </b></font><input id=stra tabindex=1 maxlength=8 size=16 name=stra value= "Enter your name or nickname" Type= " Text "onfocus=" this.value= "This.focus ()" > <input type=submit value= generate its own movie network name=submit></form> </FORM></center>
Remark: text modified into its own
Remark: text modified into its own
Demo Effect: http://xunleidy.com/?id=%u6D3B%u6027%u5143%u7D20
Demo screenshot:
So when a Netizen visits your website, he sees a website with his friend's name, and he enters his name or nickname to create a website with his own name. So he/she is showing off to his friends at the same time, spread, wildfire ... Your website traffic will soon be up
Above content by the active element original, the Exchange QQ350291341 reprint please specify from the Thunder free movie Net.