ppt总结html,以html形式显示(word,excel,ppt)总结

varnum;functionpptOpen(file)

{try{var fso = new ActiveXObject("Scripting.FileSystemObject");

}catch(ex){

alert("fso bad!!");

ppt.quit();

}try{if(!fso.FolderExists("F:\\website\\mytestwebsite\\temps"))

{

alert("folder not exists");

fso.CreateFolder("F:\\website\\mytestwebsite\\temps");

}

}catch(ex){

alert("folder bad!!");

fso.close();//ppt.quit();

}//fso.close();

try{var ppt = new ActiveXObject("PowerPoint.Application");

}catch(ex){

alert("create bad!!");

ppt.quit();

}//ppt.visible = true;

try{var pre = ppt.Presentations.open(file,false,false,false);

}catch(ex){

alert("open"+file+" bad!!");

ppt.quit();

}

num=pre.Slides.Count;//alert(num);

try{

pre.Export("F:\\website\\mytestwebsite\\temps","png");

}catch(ex){

alert("Export bad!!");

pre.close();

ppt.quit();

}

pre.close();

ppt.quit();

aa();

}functionss(){

$("

$("

$("

{

$("#xx").append($("

"+x+"号").attr({"id":"lii"+x}));

$("

$("").attr("src","temps/幻灯片"+x+".PNG").appendTo("#sheet"+x);

}//$("#tab").tabs();

functiontabit(ul,css,div){

$(div).children().hide();

$(div).each(function(){

$(this).children().eq(0).show();

});

$(ul).each(function(){

$(this).children().eq(0).addClass(css);

});

$(ul).children().hover(function(){

$(this).addClass(css).siblings().removeClass(css);var index = $(ul).children().index(this);

$(div).children().eq(index).show().siblings().hide();

});

}

tabit("#xx","active","#con");

}functionaa()

{

$("

$("上一页").attr("id","prev").appendTo("#menu");

$("下一页").attr("id","next").appendTo("#menu");

$("

{

$("

$("").attr("src","temps/幻灯片"+x+".PNG").appendTo("#sheet"+x);

}functiontabit(div){

$(div).children().hide();

$(div).each(function(){

$(this).children().eq(0).show();

});var index = 0;

$("#prev").click(function(){//var index = 0;

$(div).children().eq(--index).fadeIn().siblings().hide();//index--;

if(index==-1)

{//alert("第一张");

index=$(div).children().size()-1;

}

});

$("#next").click(function(){//var index = 0;

$(div).children().eq(++index).fadeIn().siblings().hide();//index++;

if(index==$(div).children().size()-1)

{//alert("最后一张");

index=-1;

}

});

}

tabit("#con")

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值