📄 function.php
字号:
<?php //$ads = array("type"=>"image","linkurl"=>"http://www.phpcms.cn","imageurl"=>"http://www.phpcms.cn/ad/phpcms30banner.gif","width"=>535,"height"=>60,"alt"=>"banner");//echo ad_content($ads);function ads_content($ads){ if(!is_array($ads)) return ""; @extract($ads); switch($type) { case 'image': $content = ads_image($adsid,$linkurl,$imageurl,$width,$height,$alt); break; case 'flash': $content = ads_flash($adsid,$flashurl,$width,$height,$wmode='transparent'); break; case 'text': $content = ads_text($adsid,$text); break; case 'code': $content = ads_code($adsid,$code); break; } $content = str_replace('"','\\"',$content); $content = str_replace("\n","",$content); $content = "document.write(\"".ereg_replace("\n|\r|\r\n|\n|\r","",$content)."\");"; return $content;}function ads_image($id,$linkurl,$imageurl,$width,$height,$alt=''){ global $rootpath; return "<a href='".$rootpath."ads/clickads.php?id=".$id."&url=".$linkurl."' target='_blank'><img src='".$imageurl."' border='0' width='".$width."' height='".$height."' alt='".$alt."'></a>";}function ads_flash($id,$flashurl,$width,$height,$wmode='transparent'){ return "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='".$width."' height='".$height."'><param name='movie' value='".$flashurl."' /><param name='quality' value='high' />".($wmode ? "<param name='wmode' value='transparent' />" : "" )."<embed src='".$flashurl."' width='".$width."' height='".$height."' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed></object>";}function ads_text($id,$text){ return $text;}function ads_code($id,$code){ return $code;}?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -