JavaScript 判断来源网址 dn001 2009-05-12 10:09:49 <script language="javascript">if ((parent.location .href!="http://www.mypchelp.cn/code/")){ alert("请用http://code.knowsky.com查看"); parent.location.href="http://code.knowsky.com"}</script>