欢迎来到天天文库
浏览记录
ID:14760745
大小:15.39 KB
页数:5页
时间:2018-07-30
《adobereader中加入书签的方法来更好的背机经》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、如何在听力机经中加入书签在AdobePDFReader中加入书签的方法1.在程序文件夹./Adobe/Reader10.0/Reader/Javascripts建立新建文本文件2.在文件夹的选项中选择工具--文件夹选项--查看--隐藏已知文件类型的扩展名的前面的勾去掉3.在新建文本文件中输入下列代码[代码来源于网络]//bookmark_page.js,ver.1.0//visit:www.pdfhacks.com/bookmark_page///edit:cjs2008-02-17//1修改为中文标签//2设置书签时可以自动获取当前的书名//3自动获取当前所在的页码与
2、总页数,方便查阅//4实现更多功能可以参看AdobeReader的SDK//usethisdelimiterforserializingourarrayvarbp_delim='%#%#';functionSaveData(data){//dataisanarrayofarraysthatneeds//tobeserializedandstoredintoapersistent//globalstringvards='';for(ii=0;ii3、4、jj!=0)ds+=bp_de5、lim;ds+=data[ii][jj];}}global.pdf_hacks_js_bookmarks=ds;global.setPersistent("pdf_hacks_js_bookmarks",true);}functionGetData(){//reverseofSaveData;returnanarrayofarraysif(global.pdf_hacks_js_bookmarks==null){returnnewArray(0);}varflat=global.pdf_hacks_js_bookmarks.split(bp_delim);vardata6、=newArray();for(ii=0;ii7、);/*s+=d.getHours()+":";s+=d.getMinutes()+":";s+=d.getSeconds();*/return(s);}functionAddBookmark(){//querytheuserforaname,andthencombineitwith//thecurrentPDFpagetocreatearecord;storethisrecordvarthisfilename=this.documentFileName;thisfilename=thisfilename.substr(0,thisfilename.lastIndexO8、f("."));varnumPlugInss=this.pageNum+1;varcurrentdate=DateNow();varlabel=app.response("书签名称,可以修改以便于记忆:","书签名称","《"+thisfilename+"》第"+numPlugInss+"页/共"+this.numPages+"页"+currentdate,false);if(label!=null){varrecord=newArray(3);record[0]=label;record[1]=this.path;record[2]=this.pageNum;data9、=GetData();data.push(record);SaveData(data);}}functionShowBookmarks(){//showapop-upmenu;thisseemstoonlyworkwhen//aPDFisalreayintheviewer;vardata=GetData();varitems='';for(ii=0;ii
3、
4、jj!=0)ds+=bp_de
5、lim;ds+=data[ii][jj];}}global.pdf_hacks_js_bookmarks=ds;global.setPersistent("pdf_hacks_js_bookmarks",true);}functionGetData(){//reverseofSaveData;returnanarrayofarraysif(global.pdf_hacks_js_bookmarks==null){returnnewArray(0);}varflat=global.pdf_hacks_js_bookmarks.split(bp_delim);vardata
6、=newArray();for(ii=0;ii7、);/*s+=d.getHours()+":";s+=d.getMinutes()+":";s+=d.getSeconds();*/return(s);}functionAddBookmark(){//querytheuserforaname,andthencombineitwith//thecurrentPDFpagetocreatearecord;storethisrecordvarthisfilename=this.documentFileName;thisfilename=thisfilename.substr(0,thisfilename.lastIndexO8、f("."));varnumPlugInss=this.pageNum+1;varcurrentdate=DateNow();varlabel=app.response("书签名称,可以修改以便于记忆:","书签名称","《"+thisfilename+"》第"+numPlugInss+"页/共"+this.numPages+"页"+currentdate,false);if(label!=null){varrecord=newArray(3);record[0]=label;record[1]=this.path;record[2]=this.pageNum;data9、=GetData();data.push(record);SaveData(data);}}functionShowBookmarks(){//showapop-upmenu;thisseemstoonlyworkwhen//aPDFisalreayintheviewer;vardata=GetData();varitems='';for(ii=0;ii
7、);/*s+=d.getHours()+":";s+=d.getMinutes()+":";s+=d.getSeconds();*/return(s);}functionAddBookmark(){//querytheuserforaname,andthencombineitwith//thecurrentPDFpagetocreatearecord;storethisrecordvarthisfilename=this.documentFileName;thisfilename=thisfilename.substr(0,thisfilename.lastIndexO
8、f("."));varnumPlugInss=this.pageNum+1;varcurrentdate=DateNow();varlabel=app.response("书签名称,可以修改以便于记忆:","书签名称","《"+thisfilename+"》第"+numPlugInss+"页/共"+this.numPages+"页"+currentdate,false);if(label!=null){varrecord=newArray(3);record[0]=label;record[1]=this.path;record[2]=this.pageNum;data
9、=GetData();data.push(record);SaveData(data);}}functionShowBookmarks(){//showapop-upmenu;thisseemstoonlyworkwhen//aPDFisalreayintheviewer;vardata=GetData();varitems='';for(ii=0;ii
此文档下载收益归作者所有