PPT加不了js,你想要的点击特效可以通过ppt自带的点击特效实现,只要不是太夸张的我相信里面有你想要的特效,
希望对你有所帮助,如果不不懂再问,望采纳
可以。打开PPT之类的应该是IEonly的吧
或者选择将PPT转换为html
打开PPT,文件-》另存为网页,就把PPT转换成HTML了,然后像正常网页一样发布就好。。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/htmlcharset=utf-8" />
<title>无标题文档</title>
<style>
*{ padding:0margin:0}
.hy-hdp { display:blockoverflow:hidden}
.hy-hdp .pic{ width:400pxheight:320pxposition:relative}
img{ position:absoluteleft:0top:0width:400pxheight:320px}
li{ list-style:nonewidth:20pxheight:20pxcolor:#FFFFFFbackground:redline-height:20pxfloat:left}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
/* var $aImg=$("#abc .pic img")
var $aLi=$("#abc .num li")
hy.Init()
hy.m($aImg,$aLi,0)
$aImg.each(function(i,ele){
$(this).click(function(){
$aLi.css("background","red")
$aLi.eq(i).css({
"background" : "green"
})
})
})
$aLi.each(function(index,ele){
$(this).click(function(){
hy.m($aImg,$aLi,index)
})
})*/
$("#abc").hy(2)
$("#bbb").hy(0)
})
(function($,undefined){
$.fn.hy = function(o){
var $obj = $(this)
return new HY($obj,o)
}
var HY = function($obj,o){
var pp = {}
pp.T = null
pp.ii = 0
pp.img = $obj.find(".pic img")
pp.li = $obj.find(".num li")
pp.index = o
m(pp)
pp.li.each(function(index,ele){
$(this).click(function(){
clearTimeout(pp.T)
pp.index = index
m(pp)
})
})
}
function m(o){
o.li.css("background","red")
o.li.eq(o.index).css("background","green")
o.img.each(function(index,ele){
if(index==o.index){
$(this).css({
"zIndex":2,
"opacity" : 0
})
}else if(index==o.ii){
$(this).css("zIndex",1)
}else{
$(this).css("zIndex",0)
}
})
o.img.eq(o.index).animate(
{
"opacity" : 1
},
1000
)
o.ii = o.index
o.index = o.index+1
o.index = o.index>=o.li.length?0:o.index
o.T = setTimeout(function(){
m(o)
},2000)
}
})(jQuery)
</script>
</head>
<body>
<!--<div id="abc" class="hy-hdp" style="float:leftmargin:0 10px">
<div class="pic">
<img src="images/1.jpg" />
<img src="images/2.jpg" />
<img src="images/3.jpg" />
<img src="images/4.jpg" />
<img src="images/5.jpg" />
<img src="images/6.jpg" />
</div>
<ul class="num">
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
</ul>
</div>-->
<div id="bbb" class="hy-hdp style="float:leftmargin:0 10px">
<div class="pic">
<img src="images/1.jpg" />
<img src="images/2.jpg" />
<img src="images/3.jpg" />
<img src="images/4.jpg" />
<img src="images/5.jpg" />
<img src="images/6.jpg" />
</div>
<ul class="num">
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
</ul>
</div>
</body>
</html>