<script language="javascript"> //获取域名 hostName = window.location.host; host2=document.domain; //获取页面完整地址 url = window.location.href; if(hostName=='www.utailor.com.cn'){ document.write('<ul id="loginBar_<{$widgets_id}>" style="" class="fl"><li><a href="javascript:;">123</a><a href="javascript:;">123</a></li><a class="me" href="javascript:;"></a></ul>'); }else{ document.write('<ul id="loginBar_<{$widgets_id}>" style="" class="fl"><li><a href="javascript:;">12</a><a href="javascript:;"></a></li><a class="me" href="javascript:;"></a></ul>'); } document.write("<br>host="+host) document.write("<br>host2="+host2) document.write("<br>url="+url) </script>
说明,本文章本着知识分享的态度,转载自http://www.whosmall.com