USB数码手机 MP3MP4 | 数码相机 | 数码摄像 | 手机通讯 | 电子词典 | 学习机 | 掌上电脑 | 录音笔 | 摄像头 | 数码配件 | 移动存储
电脑知识 | IT认证 | 计算机术语 | 蓝牙技术 | 服务器 | 台式电脑 | 笔记本电脑 | 电脑配件| 办公设备 | 网络设备
数字家电 | USB小产品 | 销售维修 | 驱动下载 | IT厂商 | IT名人 | 网站地图 | 娱乐休闲| 广告信息发布区 产品交易

常用网页特效JS代码


收藏本站

<span style="CURSOR: hand" onClick="window.external.addFavorite('http://www.jc286.com,'286教程网')" title="286教程网'">收藏本站</span>
或:
<s cript Language="Javas cript">
  function bookmarkit()
  {
  window.external.addFavorite('http://你的网址','你的网站名称')
  }
  if (document.all)document.write('<a href="#" onClick="bookmarkit()">加入收藏夹</a>')
  </s cript>


通用的加入收藏夹

<s cript type="text/javas cript">
// <![CDATA[
function bookmark(){
var title=document.title
var url=document.location.href
if (window.sidebar) window.sidebar.addPanel(title, url,"");
else if( window.opera && window.print ){
var mbm = document.createElement('a');
mbm.setAttribute('rel','sidebar');
mbm.setAttribute('href',url);
mbm.setAttribute('title',title);
mbm.click();}
else if( document.all ) window.external.AddFavorite( url, title);
}
// ]]>
</s cript>

<a href="javas cript:bookmark()">加入收藏夹</a>

在IE6-7. FF2.0 OP9.0中测试通过

设为首页
<span onclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.webjx.com');" style="CURSOR: hand">设为首页</span>


返回页首
<img src="/imgs/top.gif" onClick="javas cript:document.location='#top'" style="cursor:pointer;">


在原窗口中打开
onclick="location.href='http://www.webjx.com;" style="cursor:pointer;"


在新窗口中打开
onclick="location.href='http://www.webjx.com';" style="cursor:pointer;"


前进
<INPUT name=Submit onclick=history.go(1) type=submit value=前进>


后退
<INPUT name=Submit2 onclick=history.go(-1) type=submit value=后退>


关闭当前窗口
<a href="/"onClick="javas cript:window.close();return false;">关闭窗口</a>


打印
<input name=Button onClick=document.all.WebBrowser.ExecWB(6,1) type=button value=打印><OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT>


高亮显示的行
onMouseOut="this.bgColor='';this.style.color='#000'" onMouseOver="this.bgColor='highlight';this.style.color='#fff'"

    相关文章
  
·Java与JavaScript的区别
    最新文章
  
·为什么我的V9有时对.avi格式的电影放不了
· 我的MP4最近跟电脑连不上(以前连上过),我用
·关于支持SD卡的问题 
·我的oppo手机信号差
·抽奖获得OPPO A103一部,请问如何享受售后服务?
·A103的信息问题 
·S7I和S11I哪个MP3播放的时间长?
·A103怎样当视频用 我不能安装pc 在哪里能下到
·我的手机怎么用数据线下载,怎么有的时候下载不
·OPPO手机要怎么买?
USB数码广场 | 鲁ICP备06022675号 | |