文章分类 | 推荐文章 | 最新文章 | 热点文章 | 最新软件 | 精品软件 | 下载排行 | 推荐下载 | 免费看大片 | WPS | 杀毒软件
清风网络
首 页 软件下载 网络学院 数码学院
QQ 电脑入门 游戏 操作系统 图形处理 办公软件 媒体动画 精文荟萃 工具软件 网络编程 程序开发 网络技术 认证考试 网站建设 文章专栏
当前位置:清风网络学院网站建设网页特效超酷的XP风格的网页右键菜单特效代码
精品推荐
特别推荐
·常用辅助代码
·禁止网页页面刷新的特效代码
·网页星空动态星空背景特效代码
·随滚动条滚动的图片广告代码(图片还可以拖动)
·上下连续无间断滚动图像[网页特效]
热点TOP10
·不间断连续滚动的图片效果(向上滚动)
·在输入英语单词后程序会自动翻译成中文
·效果不错的图片切换特效,太平洋女性网图片特效
·一种不错的带连接的文字向上滚动的特效代码
·带关闭功能的网页漂浮广告特效代码展示
·网页特效代码:符合标准的横向弹出菜单
·网页中实用的中英文日历网页特效代码
·温度计样式的实现显示特效[网页特效]
·Showdate函数来显示各种英文日期[网页特效]
·又一种比较详细设置的倒计时[网页特效]

超酷的XP风格的网页右键菜单特效代码

日期:2008年2月13日 作者: 查看:[大字体 中字体 小字体]


{ strShow += "<tr "; strShow += "onmouseover=\"changeStyle(this, 'on');\" "; strShow += "onmouseout=\"changeStyle(this, 'out');\" "; strShow += "onclick=\""; strShow += this.cmd; strShow += "\">"; strShow += "<td class=\"ltdexit\" width=\"16\">"; if (this.icon == "") strShow += "&nbsp;"; else { strShow += "<img border=\"0\" src=\""; strShow += this.icon; strShow += "\" width=\"16\" height=\"16\" style=\"POSITION: relative\"></img>"; } strShow += "</td><td class=\"mtdexit\">"; strShow += this.text; strShow += "</td><td class=\"rtdexit\" width=\"5\">&nbsp;</td></tr>"; } else if (this.type == "separator") { strShow += "<tr><td class=\"ltdexit\">&nbsp;</td>"; strShow += "<td class=\"mtdexit\" colspan=\"2\"><hr color=\"#000000\" size=\"1\"></td></tr>"; } oDoc.write(strShow); } } function changeStyle(obj, cmd) { if(obj) try { var imgObj = obj.children(0).children(0); if(cmd == 'on') { obj.children(0).className = "ltdfocus"; obj.children(1).className = "mtdfocus"; obj.children(2).className = "rtdfocus"; if(imgObj) { if(imgObj.tagName.toUpperCase() == "IMG") { imgObj.style.left = "-1px"; imgObj.style.top = "-1px"; } } } else if(cmd == 'out') { obj.children(0).className = "ltdexit"; obj.children(1).className = "mtdexit"; obj.children(2).className = "rtdexit"; if(imgObj) { if(imgObj.tagName.toUpperCase() == "IMG") { imgObj.style.left = "0px"; imgObj.style.top = "0px"; } } } } catch (e) {} } function showMenu() { var x, y, w, h, ox, oy; x = event.clientX; y = event.clientY; var obj = document.getElementById("rightmenu"); if (obj == null) return true; ox = document.body.clientWidth; oy = document.body.clientHeight; if(x > ox y > oy) return false; w = obj.offsetWidth; h = obj.offsetHeight; if((x + w) > ox) x = x - w; if((y + h) > oy) y = y - h; obj.style.posLeft = x + document.body.scrollLeft; obj.style.posTop = y + document.body.scrollTop; obj.style.visibility = "visible"; return false; } function hideMenu() { if(event.button == 0) { var obj = document.getElementById("rightmenu"); if (obj == null) return true; obj.style.visibility = "hidden";
上一页 [1] [2] [3] [4] 下一页 




上一篇:爽!五角星菜单酷赏,网页特效

下一篇:鼠标指向提示中有图片的网页特效代码

相关文章:
·QQ空间免费换皮肤代码
·为什么iexplore.exe在打开网页时CPU使用会100%?
·qq空间皮肤背景代码:QQ空间不用Q币更换主页皮肤方法
·QQ空间最新黄钻皮肤代码
·杀毒技巧系列:杀毒、防恶意代码、脚本病毒的不完全合集
·QQ空间透明flash代码
·如何在QQ空间加入播放器代码
·极光特效 Photoshop详解制作过程
·免费领养QQ空间五级花最新技巧及代码放送
·QQ空间流星雨效果代码
相关软件:
·Dreamweaver 网页设计
·photoshop cs 超梦幻网页创意宝典
·Photoshop 7.0 梦幻特效宝典附带光盘
·东方网页王III 正式版
·网页点击专家 V2.50
·9158虚拟视频特效v4.0
·系列语言网页设计
·动态网页制作视频教程_方成32讲 asf
·Vista 主题完美风格包 V5.1
·古典网页模板

特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
[打印本页] [关闭窗口] 转载请注明来源:http://www.vipcn.net
| 帮助(?) | 版权声明 | 友情连接 | 关于我们 | 信息发布
Copyright 2007 www.vipcn.net All Rights Reserved. 鄂ICP备05000083号Powered by:viphot