ปรับปรุง Longman Dictionary of Contemporary English 2009 ทำให้หน้าต่างขยายใหญ่สุด(3)
longman 1การแก้ไขลองแมนตอนนี้และตอนต่อๆไปได้มาจากเว็บบล็อกของชาวจีนท่านหนึ่งสามารถเข้าไปดูได้ที่
//blog.sina.com.cn/s/blog_538a1d910100fasq.html~type=v5_one&label=rela_nextarticle
ไฟล์ที่ได้รับการแก้ไขแล้วสามารถดาว์นโหลดได้ที่ //orchidflower.ys168.com ขอขอบคุณเจ้าของบล็อกที่อนุญาติให้นำมาเผยแพร่ต่อ
ตอนนี้จะเป็นการแก้ไขทำให้หน้าต่างของลองแมนขยายใหญ่ที่สุดเมื่อเปิดโปรแกรมขึ้นมา (Maximize)
วิธีทำ
- ต้องแก้ไขไฟล์ C:/ProgramFiles/Longman/LDOCE5/chrome/plugs.jarไฟล์นี้จริงๆแล้วเป็นไฟล์zipข้างในจะมีโครงสร้างไดเร็กทอรี่และไฟล์ย่อยๆซ่อนอยู่ให้หาโปรแกรมบีบอัดไฟล์มาเปิดWinzip ก็ได้ Winrar ก็ได้ แต่แนะนำ 7zipเพราะฟรี โหลดได้ที่นี่ www.7-zip.org/download.html
- ให้เพิ่มโค้ดสีแดงนี้เข้าไปใน plugscontentjsresizer.js ที่อยู่ในไฟล์ plugs.jar โดยตัดไปปะต่อจากบรรทัดที่ 33
Resizer.prototype.changeSize = function(id){ var objSize= this.getDefaultSizeArray(id); if(!objSize)return; if(this.currentObjectSize){ this.currentObjectSize.currentWidth =this.currentObjectSize.win.outerWidth; this.currentObjectSize.currentHeight =this.currentObjectSize.win.outerHeight; this.removeEvent(this.currentObjectSize); } this.currentObjectSize = objSize; if(id=="dict") { var win =this.currentObjectSize.win; win.maximize(); return; } this.currentObjectSize.win.outerWidth =(this.currentObjectSize.currentWidth!=null)?this.currentObjectSize.currentWidth:this.currentObjectSize.defaultWidth; this.currentObjectSize.win.outerHeight =(this.currentObjectSize.currentHeight
Create Date : 15 กันยายน 2552 |
|
0 comments |
Last Update : 15 กันยายน 2552 20:47:32 น. |
Counter : 474 Pageviews. |
|
|
|