0°

分享一个简单的域名展示页

2019-05-12 更新 由于新浪图床外链挂了,所以更新了下背景图的地址.

今天有米友来问我,能否分享下我目前正在使用的域名展示页,所以把这个丢到网站上,供其他朋友下载使用。

该域名展示页背景随机替换展示。

网站标题和xxx域名正在出售跟随访客浏览器网址自动变化

给一个简单的展示图

分享一个简单的域名展示页

新建一个PHP文件,然后把下方代码复制进去就可以用了。具体能改的地方我会标明

 
$c_1="domain";$c_2="@fu";$c_3="ling.org";//把你的邮箱地址切成三份
$c_4="1289";$c_5="888";$c_6="777";//把你的qq号切成三份
$c_7="4235";$c_8="46425";//把群号切成两份

$lang=substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,4);
if(preg_match("/zh-c/i",$lang)||preg_match("/zh/i",$lang)){
	$tjid='16b7d5bd1b444f04f8ccb96456956660';//中文用户时调用的百度统计ID
}else{
	$tjid='16b7d5bd1b444f04f8ccb96456956660';//非中文用户时调用的百度统计ID
}
if(!is_mobile()){//只在电脑端展示粒子动画
	$e_canvas='
 
	 
';
}
$domain=DecodePunycodeIDN($_SERVER['HTTP_HOST']);$DOMAIN=strtoupper($domain);
$a_d=array(//非卖品域名设置
	'mail.my'=>array('nfs'=>1),'mail.sg'=>array('nfs'=>1),'biz.sg'=>array('nfs'=>1),'门户.网站'=>array('nfs'=>1),'ci.ke'=>array('nfs'=>1,'title'=>'刺客'),
);
$a_bg=array(//电脑端背景图
array('//ae01.alicdn.com/kf/HTB1gRl1VbPpK1RjSZFFq6y5PpXay.jpg'),
array('//ae01.alicdn.com/kf/HTB1s20_VXzqK1RjSZFCq6zbxVXa9.jpg'),
array('//ae01.alicdn.com/kf/HTB1p0d3VhTpK1RjSZR0q6zEwXXaz.jpg'),
array('//ae01.alicdn.com/kf/HTB1kzxZVmzqK1RjSZPxq6A4tVXaG.jpg'),
array('//ae01.alicdn.com/kf/HTB1CJWqViLaK1RjSZFxq6ymPFXab.jpg'),
array('//ae01.alicdn.com/kf/HTB10CX.VgHqK1RjSZJnq6zNLpXaU.jpg'),
array('//ae01.alicdn.com/kf/HTB1A4h4VlLoK1RjSZFuq6xn0XXai.jpg'),
array('//ae01.alicdn.com/kf/HTB1rnd5VhTpK1RjSZFKq6y2wXXay.jpg'),
array('//ae01.alicdn.com/kf/HTB1BD45VhTpK1RjSZFKq6y2wXXaH.jpg'),
array('//ae01.alicdn.com/kf/HTB1d4p7VkvoK1RjSZFDq6xY3pXaO.jpg'),
array('//ae01.alicdn.com/kf/HTB1Qqq5ie3tHKVjSZSgq6x4QFXai.jpg'),
array('//ae01.alicdn.com/kf/HTB1gY0.VXzqK1RjSZFCq6zbxVXa3.jpg'),
array('//ae01.alicdn.com/kf/HTB1nECsVhnaK1RjSZFBq6AW7VXa1.jpg'),
array('//ae01.alicdn.com/kf/HTB1DPjqcfc3T1VjSZPfq6AWHXXaz.jpg'),
array('//ae01.alicdn.com/kf/HTB1zGN.Va6qK1RjSZFmq6x0PFXaA.jpg'),
array('//ae01.alicdn.com/kf/HTB15IB4VhTpK1RjSZR0q6zEwXXau.jpg'),
array('//ae01.alicdn.com/kf/HTB1_4qdVkvoK1RjSZFwq6AiCFXal.jpg'),
array('//ae01.alicdn.com/kf/HTB1M_x2VbPpK1RjSZFFq6y5PpXay.jpg'),
array('//ae01.alicdn.com/kf/HTB1i0qiVhYaK1RjSZFnq6y80pXaG.jpg'),
array('//ae01.alicdn.com/kf/HTB1M7h0VgDqK1RjSZSyq6yxEVXaR.jpg'),
array('//ae01.alicdn.com/kf/HTB1Kld0VmzqK1RjSZPxq6A4tVXa9.jpg'),
array('//ae01.alicdn.com/kf/HTB1TDR8VXzqK1RjSZFoq6zfcXXan.jpg'),
array('//ae01.alicdn.com/kf/HTB1I2l5VlLoK1RjSZFuq6xn0XXa9.jpg'),
);
$a_bg_m=array(//手机端背景图
array('//ae01.alicdn.com/kf/HTB1.Up0VmzqK1RjSZPxq6A4tVXaK.jpg'),
array('//ae01.alicdn.com/kf/HTB1C.p.VXzqK1RjSZFCq6zbxVXaN.jpg'),
array('//ae01.alicdn.com/kf/HTB16UafVcfpK1RjSZFOq6y6nFXaL.jpg'),
array('//ae01.alicdn.com/kf/HTB17D89VgHqK1RjSZFPq6AwapXad.jpg'),
array('//ae01.alicdn.com/kf/HTB1SsX1VmzqK1RjSZPxq6A4tVXaw.jpg'),
array('//ae01.alicdn.com/kf/HTB10aNZVjDpK1RjSZFrq6y78VXa1.jpg'),
array('//ae01.alicdn.com/kf/HTB14v07VirpK1RjSZFhq6xSdXXaS.jpg'),
array('//ae01.alicdn.com/kf/HTB15mm6ie3tHKVjSZSgq6x4QFXas.jpg'),
array('//ae01.alicdn.com/kf/HTB1x0N2VmzqK1RjSZFLq6An2XXaZ.jpg'),
array('//ae01.alicdn.com/kf/HTB1NAB5VhTpK1RjSZR0q6zEwXXaW.jpg'),
array('//ae01.alicdn.com/kf/HTB1R4N.VkvoK1RjSZFNq6AxMVXaW.jpg'),
array('//ae01.alicdn.com/kf/HTB1LqGfVgHqK1RjSZFkq6x.WFXaC.jpg'),
array('//ae01.alicdn.com/kf/HTB1ZuSyVhnaK1RjSZFtq6zC2VXaU.jpg'),
array('//ae01.alicdn.com/kf/HTB13X48VhTpK1RjSZFMq6zG_VXal.jpg'),
array('//ae01.alicdn.com/kf/HTB11Dp1VmzqK1RjSZPxq6A4tVXaX.jpg'),
array('//ae01.alicdn.com/kf/HTB1aEpYVmrqK1RjSZK9q6xyypXak.jpg'),
array('//ae01.alicdn.com/kf/HTB1_aSaVkPoK1RjSZKbq6x1IXXa4.jpg'),
array('//ae01.alicdn.com/kf/HTB1Vv0ZVgTqK1RjSZPhq6xfOFXav.jpg'),
array('//ae01.alicdn.com/kf/HTB1J2K6ie3tHKVjSZSgq6x4QFXay.jpg'),
array('//ae01.alicdn.com/kf/HTB1VKd7VhTpK1RjSZFKq6y2wXXaz.jpg'),
array('//ae01.alicdn.com/kf/HTB1HhJ9VXzqK1RjSZFoq6zfcXXaY.jpg'),
array('//ae01.alicdn.com/kf/HTB1Ou5aVgHqK1RjSZJnq6zNLpXao.jpg'),
array('//ae01.alicdn.com/kf/HTB14o84Vb2pK1RjSZFsq6yNlXXa4.jpg'),
array('//ae01.alicdn.com/kf/HTB1Cfx_VmzqK1RjSZFpq6ykSXXak.jpg'),
array('//ae01.alicdn.com/kf/HTB1_0x7VmzqK1RjSZFHq6z3CpXaM.jpg'),
);
$bg_n=array_rand($a_bg);$bg=$a_bg[$bg_n];
$bg_n_m=array_rand($a_bg_m);$bg_m=$a_bg_m[$bg_n_m];
if(is_mobile()){
	$joinu='mqqapi://card/show_pslcard?src_type=internal&version=1&uin=423546425&card_type=group&source=qrcode';//手机端加群代码
}else{
	$joinu='//shang.qq.com/wpa/qunwpa?idkey=2c528eed6518243b862fbdd89ac0e83bb798b7d7fc787a4b402bd519ec2f7a30';//电脑端加群代码
}
if($a_d[$domain]['nfs']){
	if($a_d[$domain]['title']){
		$TITLE=$a_d[$domain]['title'];$des='即将上线, 欢迎合作!';
	}else{
		$TITLE="{$DOMAIN} 即将上线, 敬请期待...";$des='即将上线, 欢迎合作!';
	}
}else{
	$TITLE="{$DOMAIN} is for sale! 域名出售中!";$des='iS For Sale! 域名出售中!';
}
print<<





<span class="hljs-subst">{$TITLE}</span>







{$DOMAIN}
{$des}
	
Email: 
QQ: 
{$joinu}" target="_blank">创意/非主流域名群: 



var bg_n=<span class="hljs-subst">{$bg_n}</span>,bg_n_m=<span class="hljs-subst">{$bg_n_m}</span>;var c_1="<span class="hljs-subst">{$c_1}</span>",c_2="<span class="hljs-subst">{$c_2}</span>",c_3="<span class="hljs-subst">{$c_3}</span>",c_5="<span class="hljs-subst">{$c_5}</span>",c_6="<span class="hljs-subst">{$c_6}</span>",c_4="<span class="hljs-subst">{$c_4}</span>",c_7="<span class="hljs-subst">{$c_7}</span>",c_8="<span class="hljs-subst">{$c_8}</span>";
window.onload=window.onresize=function(){var w=document.body.clientWidth;if(w>600){vary('<span class="hljs-subst">{$bg[0]}</span>')}else{vary('<span class="hljs-subst">{$bg_m[0]}</span>')}};
function getid(id){return !id?null:document.getElementById(id)}
getid('c_e').innerHTML='<a href="mailto:'+c_1+c_2+c_3+'">'+c_1+c_2+c_3+'</a>';getid('c_q').innerHTML=c_4+c_5+c_6;getid('c_g').innerHTML=c_7+c_8;
function vary(a){var nav=getid('nav');nav.style.marginTop='18%';var img=new Image();img.src=a;img.onload=function(){document.body.style.backgroundImage='url("'+a+'")'}}
var _hmt=_hmt||[];(function(){var hm=document.createElement("script");hm.src="//hm.baidu.com/hm.js?<span class="hljs-subst">{$tjid}</span>";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm,s)})();

{$e_canvas}



e;
function is_mobile(){
	$user_agent=$_SERVER['HTTP_USER_AGENT'];
	$mobile_agents=Array("240x320","acer","acoon","acs-","abacho","ahong","airness","alcatel","amoi","android","anywhereyougo.com","applewebkit/525","applewebkit/532","asus","audio","au-mic","avantogo","becker","benq","bilbo","bird","blackberry","blazer","bleu","cdm-","compal","coolpad","danger","dbtel","dopod","elaine","eric","etouch","fly ","fly_","fly-","go.web","goodaccess","gradiente","grundig","haier","hedy","hitachi","htc","huawei","hutchison","inno","ipad","ipaq","ipod","jbrowser","kddi","kgt","kwc","lenovo","lg ","lg2","lg3","lg4","lg5","lg7","lg8","lg9","lg-","lge-","lge9","longcos","maemo","mercator","meridian","micromax","midp","mini","mitsu","mmm","mmp","mobi","mot-","moto","nec-","netfront","newgen","nexian","nf-browser","nintendo","nitro","nokia","nook","novarra","obigo","palm","panasonic","pantech","philips","phone","pg-","playstation","pocket","pt-","qc-","qtek","rover","sagem","sama","samu","sanyo","samsung","sch-","scooter","sec-","sendo","sgh-","sharp","siemens","sie-","softbank","sony","spice","sprint","spv","symbian","tablet","talkabout","tcl-","teleca","telit","tianyu","tim-","toshiba","tsm","up.browser","utec","utstar","verykool","virgin","vk-","voda","voxtel","vx","wap","wellco","wig browser","wii","windows ce","wireless","xda","xde","zte");
	$is_mobile=false;foreach($mobile_agents as $device){if(stristr($user_agent,$device)){$is_mobile=true;break;}}
	return $is_mobile;
}
function DecodePunycodeIDN($value){
    if(function_exists('idn_to_utf8')){return idn_to_utf8($value);}$sub_domain=explode('.',$value);if(count($sub_domain)>1){$sub_result='';foreach($sub_domain as $sub_value){$sub_result.='.'.DecodePunycodeIDN($sub_value);}return substr($sub_result,1);}if(substr($value,0,4)!='xn--'){return $value;}else{$bad_input=$value;$value=substr($value,4);}$n=0x80;$i=0;$bias=72;$output=array();$d=strrpos($value,'-');if($d>0){for($j=0;$j<$d;++$j){$c=$value[$j];$output[]=$c;if($c>0x7F){return $bad_input;}}++$d;}else{$d=0;}while($d1;for($k=36;;$k+=36){if($d==strlen($value)){return $bad_input;}$c=$value[$d++];$c=ord($c);$digit=($c-48<10)?$c-22:(($c-65<26)?$c-65:(($c-97<26)?$c-97:36));if($digit>(0x10FFFF-$i)/$w){return $bad_input;}$i+=$digit*$w;if($k<=$bias){$t=1;}elseif($k>=$bias+26){$t=26;}else{$t=$k-$bias;}if($digit<$t){break;}$w*=36-$t;}$delta=$i-$old_i;$delta=($old_i==0)?$delta/700:$delta>>1;$count_output_plus_one=count($output)+1;$delta+=intval($delta/$count_output_plus_one);$k2=0;while($delta>455){$delta/=35;$k2+=36;}$bias=intval($k2+36*$delta/($delta+38));if($i/$count_output_plus_one>0x10FFFF-$n){return $bad_input;}$n+=intval($i/$count_output_plus_one);$i%=$count_output_plus_one;array_splice($output,$i,0,html_entity_decode('&#'.$n.';',ENT_NOQUOTES,'UTF-8'));++$i;}return implode('',$output);
}


 

支持多域名访问同时统计访问量,只需要替换下代码中的百度统计ID

如果你懒。就直接下载我目前自己在用的模板吧

简单的域名停放页面

提取码:;解压码:

下载
「点点赞赏,手留余香」

    还没有人赞赏,快来当第一个赞赏的人吧!
0 条回复 A 作者 M 管理员
    所有的伟大,都源于一个勇敢的开始!
欢迎您,新朋友,感谢参与互动!欢迎您 {{author}},您在本站有{{commentsCount}}条评论