当前位置:首页教育技巧ppt技巧幻灯片ppt

ppt演示鼠标怎么变放大镜

2025-01-27 13:27:29


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;

};

2.如果在PPT中把原有图形按鼠标移动到中间并同时放大,再一次按鼠

这个效果要想完美最好使用flash做一个swf电影,只需要两帧即可,两帧都加入stop和单击鼠标时play帧命令,第一帧加入图片放大到到中间的动画,第二帧加入图片缩小到原来位置的动画,插入到PPT中。

如果只用PPT做可以用三个图片完成,第一个“原来位置”图片动作选择无动作,放在最后一层,第二个图片动作选择单击鼠标时盒状放大出现,并盖住第一图,动画播放后选择“下次单击后隐藏”,第三图使用大小和第二图相同的图片,动作选择单击鼠标时盒状消失,动画播放后选择“播放动画后隐藏”,位置同第二图。 动画顺序为第二图、第三图。

相关信息


电脑版

【免责声明】本站信息来自网友投稿及网络整理,内容仅供参考,如果有错误请反馈给我们及时更正,对文中内容的真实性和完整性本站不提供任何保证,不承但任何责任。
版权所有:学窍知识网 Copyright © 2011-2025 www.at317.com All Rights Reserved .