欢迎访问抖客教程网!

抖客教程网

您现在的位置是:主页 > 办公课堂 > PPT教程 > 全民学PPT >

全民学PPT

PowerPoint幻灯片如何让鼠标划过图片就放大

发布时间:2023-12-05 18:40:01全民学PPT评论
1.PPT如何让鼠标划过图片就放大 //以下代码需要jquery.js $.fn.floatWith = function(obj,idx){ idx = typeof(idx)!='number' || !idx ? 0 : idx; var elem = $(obj),offset = elem.offset(),_top = offset.top,_left =offset.left,width

1.PPT如何鼠标划过图片放大

//以下代码需要jquery.js $.fn.floatWith = function(obj,idx){ idx = typeof(idx)!='number' || !idx ? 0 : idx; var elem = $(obj),offset = elem.offset(),_top = offset.top,_left =offset.left,width = elem.outerWidth(),height=elem.outerHeight(); var floatWidth = this.outerWidth(), floatHeight = this.outerHeight(), cssPos = null; switch(idx){ case 0: cssPos = {top:_top+height,left:_left}; break; case 1: cssPos = {top:_top+height,left:_left+width}; break; case 2: cssPos = {top:_top,left:_left+width}; break; case 3: cssPos = {top:_top-floatHeight,left:_left+width}; break; case 4: cssPos = {top:_top-floatHeight,left:_left}; break; case 5: cssPos = {top:_top-floatHeight,left:_left-floatWidth}; break; case 6: cssPos = {top:_top,left:_left-floatWidth}; break; case 7: cssPos = {top:_top+height,left:_left-floatWidth}; break; default:cssPos = {top:_top+height,left:_left}; break; } this.eq(0).css({'position':'absolute'}).css(cssPos).hide().show(200); return this; };。

抖客教程网

热心评论

评论列表