if (IsIE())
{
divobj.onmousemove = function () { mousemove(event, v_i); };
divobj.onmousedown = function () { mousedown(event, v_i); };
divobj.onmouseup = function () { mouseup(event, v_i); };
divobj.onmouseover = function () { mouseover(event, v_i); };
divobj.onmouseout = function () { mouseout(event, v_i); };
lt.onmouseover = function() { ltmouseover(event, v_i); };
lt.onmouseup = function() { ltmouseup(event, v_i); };
lt.onmousedown = function() { ltmousedown(event, v_i); };
lt.onmouseout = function() { ltmouseout(event, v_i); };
lb.onmouseover = function() { lbmouseover(event, v_i); };
lb.onmouseup = function() { lbmouseup(event, v_i); };
lb.onmousedown = function() { lbmousedown(event, v_i); };
lb.onmouseout = function() { lbmouseout(event, v_i); };
rt.onmouseover = function() { rtmouseover(event, v_i); };
rt.onmouseup = function() { rtmouseup(event, v_i); };
rt.onmousedown = function() { rtmousedown(event, v_i); };
rt.onmouseout = function() { rtmouseout(event, v_i); };
rb.onmouseover = function() { rbmouseover(event, v_i); };
rb.onmouseup = function() { rbmouseup(event, v_i); };
rb.onmousedown = function() { rbmousedown(event, v_i); };
rb.onmouseout = function() { rbmouseout(event, v_i); };
}
else
{
lt.addEventListener("mouseover", function (evnt) {ltmouseover(evnt, v_i);}, false);
lt.addEventListener("mouseup", function (evnt) {ltmouseup(evnt, v_i);}, false);
lt.addEventListener("mousedown", function (evnt) {ltmousedown(evnt, v_i);}, false);
lt.addEventListener("mouseout", function (evnt) {ltmouseout(evnt, v_i);}, false);
lb.addEventListener("mouseover", function (evnt) {lbmouseover(evnt, v_i);}, false);
lb.addEventListener("mouseup", function (evnt) {lbmouseup(evnt, v_i);}, false);
lb.addEventListener("mousedown", function (evnt) {lbmousedown(evnt, v_i);}, false);
lb.addEventListener("mouseout", function (evnt) {lbmouseout(evnt, v_i);}, false);
rt.addEventListener("mouseover", function (evnt) {rtmouseover(evnt, v_i);}, false);
rt.addEventListener("mouseup", function (evnt) {rtmouseup(evnt, v_i);}, false);
rt.addEventListener("mousedown", function (evnt) {rtmousedown(evnt, v_i);}, false);
rt.addEventListener("mouseout", function (evnt) {rtmouseout(evnt, v_i);}, false);
rb.addEventListener("mouseover", function (evnt) {rbmouseover(evnt, v_i);}, false);
rb.addEventListener("mouseup", function (evnt) {rbmouseup(evnt, v_i);}, false);
rb.addEventListener("mousedown", function (evnt) {rbmousedown(evnt, v_i);}, false);
rb.addEventListener("mouseout", function (evnt) {rbmouseout(evnt, v_i);}, false);
}
分享到:
相关推荐
- `js`文件夹:存放JavaScript代码,用于添加和处理动态效果以及与页面交互。 - `images`文件夹:可能存储了用于复古效果的图片资源。 - `README.md`:项目介绍和使用说明文档,可能详细解释了如何安装和使用...
JavaScript,简称JS,是Web开发中不可或缺的脚本语言。它主要应用于客户端,负责动态交互和增强用户体验。JavaScript允许开发者直接在用户的浏览器上编写代码,执行任务,如处理用户输入、控制网页内容、创建动画...
尽管现代Web技术已经发展到HTML5和JavaScript,但Flash照片墙依然具有其独特的魅力和应用场景,尤其是对于那些想要回味经典Web时代体验的用户。通过深入学习和掌握这个项目,不仅可以了解Flash的历史,也能提升在...
CRX文件包含HTML、CSS、JavaScript代码以及图片和其他资源,这些内容组合在一起构成了插件的全部功能。用户通常只需将此CRX文件拖放到Chrome浏览器的扩展管理页面,即可完成安装。 使用"Old Gmail chat-crx插件",...
网管教程 从入门到精通软件篇 ★一。★详细的xp修复控制台命令和用法!!! 放入xp(2000)的光盘,安装时候选R,修复! Windows XP(包括 ...JS:javascript源文件 JSP:HTML网页,其中包含有对一个Java servlet...