- เพิ่มโค้ดสีแดงเข้าไปในไฟล์ C:/ProgramFiles/Longman/LDOCE5/chrome/ldoce5/skin/main_app.css
.banner-flex-bg {
/*height: 113px;*/
background-image: url('chrome://ldoce5/skin/img/tb/banner-flex-bg.png');
background-repeat: repeat-x;
}
- เพิ่มโค้ดสีแดงเข้าไปในไฟล์ C:/ProgramFiles/Longman/LDOCE5/chrome/ldoce5/content/flash/homepage/main_app.xul
<vbox class="logo-ship"id="logo-ship-panel" onclick="showLogoPanel()"/>
<vbox flex="1">
<hbox class="title-top-bg" >
<spacer flex="1" onclick="showLogoPanel();"/>
<spacer flex="1" onclick="showRightPanel();"/>
<vbox>
<hbox class="toolmenu">
.......
.......
<hboxflex="1" id="logo-title-panel"onclick="showRightPanel()">
<vbox>
<hbox class="title-bg"/>
<hbox class="title-btm-bg">
<button id="banner-title"class="banner-title-dictionary"/>
</hbox>
- เพิ่มโค้ดสีแดงนี้เข้าไปในฟังก์ชั่น prefInitในไฟล์C:/Program Files/Longman/LDOCE5/chrome/ldoce5/content/js/application.js
updateAutoPlay();
try { if(g_Pref.GetBoolPref("skpref.hideLogoPanel")) showLogoPanel(); }
catch(e) {g_Pref.SetBoolPref("skpref.hideLogoPanel", false); }
try { if(g_Pref.GetBoolPref("skpref.hideRightPanel")) showRightPanel(); }
catch(e) {g_Pref.SetBoolPref("skpref.hideRightPanel", false); }
- เพิ่มฟั่งชั่นนี้เข้าไปที่ท้ายไฟล์ application.js
// switch right panelvisibility
functionshowRightPanel( ) {
var bankPanel = win.document.getElementById("dict-right-panel");
var show = true;
if (bankPanel.collapsed)
show = false;
if (show)
{
$(bankPanel).attr("collapsed", "true");
}
else {
$(bankPanel).removeAttr("collapsed");
}
}
// switch logopanel visibility
functionshowLogoPanel( ) {
var logoShip = win.document.getElementById("logo-ship-panel");
var logoTitle= win.document.getElementById("logo-title-panel");
var show = true;
if (logoShip.collapsed)
show = false;
if (show)
{
$(logoShip).attr("collapsed", "true");
$(logoTitle).attr("collapsed","true");
}
else {
$(logoShip).removeAttr("collapsed");
$(logoTitle).removeAttr("collapsed");
}
}