怎么取消鼠标放上去图片放大大图片

怎样去掉鼠标滚轮调整图片大小的功能_百度知道
怎样去掉鼠标滚轮调整图片大小的功能
本来滚动滚轮是想上下移动,所以怎样去掉鼠标滚轮会调整图片大小的功能,,在用WINDOWS图片查看器看图时,但却是放大缩小图片,
我的意思是在看图时滚动滚轮让图片上下移动,
我有更好的答案
修改〔文章内容页模板〕的无级缩放图片大小的函数,}修改为,function bbimg(o){
var zoom=parseInt(o,wheelDelta&#47,100,0) o,style,
return false,,style,
if (zoom&gt,zoom, 10),,
zoom+=event,%&#39,别点画面里面的内容,function bbimg(o){
return false,zoom=zoom+&#39,点右边那个竖条在系统后台的〔文章频道管理〕-〔模板管理〕中,12,},
其他类似问题
鼠标滚轮的相关知识
等待您来回答
您可能关注的推广
下载知道APP
随时随地咨询
出门在外也不愁看了本文的网友还看了ToopTip.js:& & 复制代码代码如下:& & function getViewportHeight() {& & if (window.innerHeight!=window.undefined) return window.innerH& & if (patMode=='CSS1Compat') return document.documentElement.clientH& & if (document.body) return document.body.clientH& & return window.& & }& & function getViewportWidth() {& & if (window.innerWidth!=window.undefined) return window.innerW& & if (patMode=='CSS1Compat') return document.documentElement.clientW& & if (document.body) return document.body.clientW& & return window.& & }& & /**& & * Gets the real scroll top& & */& & function getScrollTop() {& & if (self.pageYOffset) // all except Explorer& & {& & return self.pageYO& & }& & else if (document.documentElement && document.documentElement.scrollTop)& & // Explorer 6 Strict& & {& & return document.documentElement.scrollT& & }& & else if (document.body) // all other Explorers& & {& & return document.body.scrollT& & }& & }& & function getScrollLeft() {& & if (self.pageXOffset) // all except Explorer& & {& & return self.pageXO& & }& & else if (document.documentElement && document.documentElement.scrollLeft)& & // Explorer 6 Strict& & {& & return document.documentElement.scrollL& & }& & else if (document.body) // all other Explorers& & {& & return document.body.scrollL& & }& & }& & /*& & [html]& & 渐变的弹出图片& & 使用方法:& & 将ToolTip.js包含在网页body的结束标签后& & 调用方法:& & [code]& & & & 必须CSS样式& & 复制代码代码如下:& & .trans_msg& & {& & filter:alpha(opacity=100,enabled=1) revealTrans(duration=.2,transition=1) blendtrans(duration=.2);& & }& & */& & //--初始化变量--& & var rT=//允许图像过渡& & var bT=//允许图像淡入淡出& & var tw=150;//提示框宽度& & var endaction=//结束动画& & var ns4 = document.& & var ns6 = document.getElementById && !document.& & var ie4 = document.& & ffsetX = 10;& & ffsetY = 20;& & var toolTipSTYLE="";& & function initToolTips()& & {& & tempDiv = document.createElement("div");& & tempDiv.id = "toolTipLayer";& & tempDiv.style.position = "absolute";& & tempDiv.style.display = "none";& & document.body.appendChild(tempDiv);& & if(ns4||ns6||ie4)& & {& & if(ns4) toolTipSTYLE. = document.toolTipL& & else if(ns6) toolTipSTYLE. = document.getElementById("toolTipLayer").& & else if(ie4) toolTipSTYLE. = document.all.toolTipLayer.& & if(ns4) document.captureEvents(Event.MOUSEMOVE);& & else& & {& & toolTipSTYLE.visibility = "visible";& & toolTipSTYLE.display = "none";& & }& & document.onmousemove = moveToMouseL& & }& & }& & function toolTip(msg, fg, bg)& & {& & try {& & if(toolTip.arguments.length < 1) // hide& & {& & if(ns4)& & {& & toolTipSTYLE.visibility = "hidden";& & }& & else& & {& & //--图象过渡,淡出处理--& & if (!endaction) {toolTipSTYLE.display = "none";}& & if (rT) document.all("msg1").filters[1].Apply();& & if (bT) document.all("msg1").filters[2].Apply();& & document.all("msg1").filters[0].opacity=0;& & if (rT) document.all("msg1").filters[1].Play();& & if (bT) document.all("msg1").filters[2].Play();& & if (rT){& & if (document.all("msg1").filters[1].status==1 || document.all("msg1").filters[1].status==0){& & toolTipSTYLE.display = "none";}& & }& & if (bT){& & if (document.all("msg1").filters[2].status==1 || document.all("msg1").filters[2].status==0){& & toolTipSTYLE.display = "none";}& & }& & if (!rT && !bT) toolTipSTYLE.display = "none";& & //----------------------& & }& & }& & else // show& & {& & if(!fg) fg = "#777777";& & if(!bg) bg = "#eeeeee";& & var content =& & '' +& & '<table border="1" cellspacing="2" cellpadding="3" bgcolor="' + bg +& & '"><font face="Arial" color="' + fg +& & '" size="-2">' + msg +& & '';& & if(ns4)& & {& & toolTipSTYLE.document.write(content);& & toolTipSTYLE.document.close();& & toolTipSTYLE.visibility = "visible";& & }& & if(ns6)& & {& & document.getElementById("toolTipLayer").innerHTML =& & toolTipSTYLE.display='block'& & }& & if(ie4)& & {& & document.all("toolTipLayer").innerHTML=& & toolTipSTYLE.display='block'& & //--图象过渡,淡入处理--& & var cssopaction=document.all("msg1").filters[0].opacity& & document.all("msg1").filters[0].opacity=0;& & if (rT) document.all("msg1").filters[1].Apply();& & if (bT) document.all("msg1").filters[2].Apply();& & document.all("msg1").filters[0].opacity=& & if (rT) document.all("msg1").filters[1].Play();& & if (bT) document.all("msg1").filters[2].Play();& & //----------------------& & }& & }& & } catch(e) {}& & }& & function moveToMouseLoc(e)& & {& & var scrollTop = getScrollTop();& & var scrollLeft = getScrollLeft();& & if(ns4||ns6)& & {& & x = e.pageX + scrollL& & y = e.pageY - scrollT& & }& & else& & {& & x = event.clientX + scrollL& & y = event.clientY;& & }& & if (x-scrollLeft > getViewportWidth() / 2) {& & x = x - document.getElementById("toolTipLayer").offsetWidth - 2 * offsetX;& & }& & if ((y+document.getElementById("toolTipLayer").offsetHeight+offsetY)>getViewportHeight()) {& & y = getViewportHeight()-document.getElementById("toolTipLayer").offsetHeight-offsetY;& & }& & toolTipSTYLE.left = (x + offsetX)+'px';& & toolTipSTYLE.top = (y + offsetY + scrollTop)+'px';& && & }& & initToolTips();& & 主页面:& & 引入index.css& & 复制代码代码如下:& & & & & & & & & & & & & & & & & & & & & & & & & & 引入ToopTip.js& & 复制代码代码如下:& &
说明:该文章系网友上传分享,若未进行原创声明,则表明该文章系转载自互联网;若该文章内容涉嫌侵权,请及时向
上一篇:下一篇:
相关经验教程
的原创经验被浏览,获得 ¥0.005 收益
的原创经验被浏览,获得 ¥0.005 收益
的原创经验被浏览,获得 ¥0.001 收益
的原创经验被浏览,获得 ¥0.001 收益
的原创经验被浏览,获得 ¥0.005 收益
的原创经验被浏览,获得 ¥0.005 收益
的原创经验被浏览,获得 ¥0.005 收益
的原创经验被浏览,获得 ¥0.005 收益
的原创经验被浏览,获得 ¥0.005 收益
的原创经验被浏览,获得 ¥0.001 收益
的原创经验被浏览,获得 ¥0.005 收益
的原创经验被浏览,获得 ¥0.001 收益
的原创经验被浏览,获得 ¥0.005 收益
的原创经验被浏览,获得 ¥0.001 收益
的原创经验被浏览,获得 ¥0.005 收益
的原创经验被浏览,获得 ¥0.005 收益
的原创经验被浏览,获得 ¥0.005 收益
的原创经验被浏览,获得 ¥0.005 收益
的原创经验被浏览,获得 ¥0.001 收益
的原创经验被浏览,获得 ¥0.002 收益
的原创经验被浏览,获得 ¥0.005 收益
的原创经验被浏览,获得 ¥0.005 收益
的原创经验被浏览,获得 ¥0.005 收益
的原创经验被浏览,获得 ¥0.002 收益

我要回帖

更多关于 鼠标移到图片放大 的文章

 

随机推荐