设计学院-ui163 致力于网页标准 网页设计 web标准与ui设计。

链接中的JS 特效功能代码大放送

上一篇上一篇 | 下一篇下一篇发表时间:2007-10-29 20:46:49



以下代码片段:

  <a href="#" onclick=document.execCommand("open")>打开</a><br>
  <a href="#" onclick=location.replace("view-source:"+location)>使用 记事本 编辑</a><br>
  <a href="#" onclick=document.execCommand("saveAs")>另存为</a><br>
  <a href="#" onclick=document.execCommand("print")>打印</a><br>
  <a href="#" onclick=window.close();return false)>关闭本窗口</a><br>
  <a href="#" onclick=document.execCommand("selectAll")>全选</a><br>
  <a href="#" onclick=location.reload()>刷新</a> <a href="#" onclick=history.go(0)>刷新</a><br>
  <a href="#" onclick=location.replace("view-source:"+location)>查看源文件</a> <br>
  <a href="#" onclick=window.open(document.location,"url","fullscreen")>全屏显示</a> <br>
  <a href="javascript:window.external.AddFavorite(http://homapge.yesky.com, 网页陶吧)">添加到收藏夹</a> <br>
  <a href="#" onclick=window.external.showBrowserUI("OrganizeFavorites",null)>整理收藏夹</a> <br>
  <a href="#" onclick=window.external.showBrowserUI("PrivacySettings",null)>internet选项</a> <br>
  <a href="#" onclick=history.go(1)>前进1</a> <a href="#" onclick=history.forward()>前进2</a><br>
  <a href="#" onclick=history.go(-1)>后退1</a> <a href="#" onclick=history.back()>后退2</a><br>
  <a href="#" onclick=settimeout(window.close(),3000)>3秒关闭本窗口</a><br>
[本日志由 ui163 于 2007-10-29 20:46:49 编辑]
上一篇上一篇:关于DOM事件模型的两件事
下一篇下一篇:网页自动转向代码
文章来自:设计学院
收藏到网摘: 收藏到QQ书签
Tags:

版权隐私 ┊ 免责声明  ┊ 友情链接 ┊ 网站地图  ┊ 联系我们

Copyrights©2006 UI163.com All Rights Reserved 2007

 豫ICP备07501346号