有一个变量aphp判断当前url是否包含“jiaocheng”字符如果包含则a为“<ahref="www.baidu.com">baidu</a>”如果不包含a为“<ahref="www.google.com">google</a>”答案:<?phpif(strpos($_SERVER['REQUEST_URI'],'jiaocheng')!==false)$a='<ahref="www.baidu.com">baidu</a>';else$a='<ahref="www.google.com">google</a>';echo$a;?>感谢http://topic.csdn.net/u/20120727/15/6af30d3f-3dc8-4145-9174-4e7b38c9bccc.html
<!--通用flash动画开始--><divclass="pp"><scripttype="text/javascript">varswf_width=932varswf_height=200varfiles='/hd/hd1.jpg|/hd/hd2.jpg|/hd/hd3.jpg|/hd/hd4.jpg|/hd/hd5.jpg&AutoPlayTime=7'varlinks='/jm/|/400js/|/zf/|/zf/|/dxkh/'vartexts='|||||'document.write('<objectclassid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"width="'+swf_width+'"height="'+swf_height+'">');document.write('<paramname="allowScriptAccess"value="sameDomain"><paramname="movie"value="/hd/bcastr.swf"><paramname="quality"value="high"><paramname="bgcolor"value="#E5E5EB">');document.write('<paramname="menu"value="false"><paramname=wmodevalue="opaque">');document.write('<paramname="FlashVars"value="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'">');document.write('<embedsrc="/swf/bcastr31.swf"wmode="opaque"FlashVars="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'&menu="false"quality="high"width="'+swf_width+'"height="'+swf_height+'"type="application/x-shockwave-flash"pluginspage="http://www.macromedia.com/go/getflashplayer"/>');document.write('</object>');</script></div><!--通用flash动画结束-->经常制作网站,要用到这个平常的不能再平常的代码,记录下来方便使用。