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")
}
280

被折叠的 条评论
为什么被折叠?



