摘要:
<html><body><script type="text/javascript">var r=Math.random()if (r>0.5) {document.write("<a href='http://www.ccc.com.cn'>hello!</a>")}else{document.write("<a href=... 阅读全文
摘要:
<html><head><script type="text/javascript">onerror=handleErrvar txt=""function handleErr(msg,url,l){txt="本页中存在错误。\n\n"txt+="错误:" + msg + "\n"txt+="URL: " + url + "\n"txt+="行:" + l + ... 阅读全文
摘要:
<html><body><script type="text/javascript">document.write("<p>浏览器:")document.write(navigator.appName + "</p>")document.write("<p>浏览器版本:")document.write(navigator.ap... 阅读全文
摘要:
<html><head><script type="text/javascript">function startTime(){var today=new Date()var h=today.getHours()var m=today.getMinutes()var s=today.getSeconds()// add a zero in front of nu... 阅读全文
摘要:
<html><head><script type="text/javascript">function mouseOver(){document.b1.src ="/i/eg_mouse.jpg"}function mouseOut(){document.b1.src ="/i/eg_mouse2.jpg"}</script></head>... 阅读全文
摘要:
<html><head><script type="text/javascript">function detectBrowser(){var browser=navigator.appNamevar b_version=navigator.appVersionvar version=parseFloat(b_version)if ((browser=="Net... 阅读全文
摘要:
<html> <head> <script type="text/javascript"> function myfunction(txt) { alert(txt) } </script> </head> <body> <form> <input type="button" onclick="myfunct... 阅读全文
摘要:
<html><head><script type="text/javascript">function disp_alert(){alert("再次向您问好!在这里,我们向您演示" + '\n' + "如何向警告框添加折行。")}</script></head><body><input type="button" onc... 阅读全文
摘要:
<script><!--function windowopen(){var target="http://www.hello.com"newwindow=window.open("","","scrollbars")if (document.all){newwindow.moveTo(0,0)newwindow.resizeTo(screen.width,screen.heigh... 阅读全文
摘要:
<script language="javascript">function folder(){window.external.AddFavorite('http://www.hello.com', '您好,我是收藏')}</script>onUnload=folder() 阅读全文