What's Here?
Members: 307,158
Replies: 841,930
Topics: 140,707
Snippets: 4,468
Tutorials: 1,165
Total Online: 1,526
Members: 94
Guests: 1,432
Loading. Please Wait...
How the popups menu is work?
How the popups menu is work?
LadyMiaka86
26 Sep, 2007 - 05:46 PM
New D.I.C Head
Joined: 30 Jul, 2007
Posts: 12
My Contributions
Hi.. I need some help and I would like to ask how my popups menu will working because when I running the script, it doesn't work and the menu isn't appear... Here the code..
menu.php
CODE
<html> <head> <script type="text/javascript"> <!-- if(window.event + "" == "undefined") event = null; function HM_f_PopUp(){return false}; function HM_f_PopDown(){return false}; // --> </script> </head> <body> <script type="text/javascript"> <!-- HM_ConfigFiles="hmcentral.js,popups.js"; // --> </script> <table width="973" border="0"> <tr> <<td width="136"> <a href="index.php"><img src="Images/lamanUtama.jpg" alt="" width="143" height="26" border="0"></a></td> <td width="107"> <a onmouseover="HM_f_PopUp('afats_16',event)" onmouseout="HM_f_PopDown('afats_16')"> <img src="Images/afats16.jpg" width="107" height="26" alt="" id="afats_16"></a></td> <td width="107"> <a onmouseover="HM_f_PopUp('daftar',event)" onmouseout="HM_f_PopDown('daftar')"> <img src="Images/daftar.jpg" width="107" height="26" alt="" id="daftar"></a></td> <td width="94"> <img src="Images/berita.jpg" width="107" height="26" alt=""></td> <td width="120"> <a onmouseover="HM_f_PopUp('aktiviti',event)" onmouseout="HM_f_PopDown('aktiviti')"> <img src="Images/aktiviti.jpg" width="107" height="26"></a></td> <td width="118"> <a onmouseover="HM_f_PopUp('galeri',event)" onmouseout="HM_f_PopDown('galeri')"> <img src="Images/galeri.jpg" width="118" height="26" alt="" id="galeri"></a></td> <td width="107"> <a onmouseover="HM_f_PopUp('link',event)" onmouseout="HM_f_PopDown('link')"> <img src="Images/link.jpg" width="107" height="26" alt="" id="link"></a></td> <td width="107"> <a onmouseover="HM_f_PopUp('akhbar',event)" onmouseout="HM_f_PopDown('akhbar')"> <img src="Images/akhbar.jpg" width="107" height="26" alt="" id="akhbar"></a></td> <td width="94"> <img src="Images/forum.jpg" width="107" height="26" alt=""></td> <td width="150"> <img src="Images/hubungiKami.jpg" width="155" height="26" alt=""></td> </tr> </table> <script type="text/javascript" language="JavaScript1.2" src="Images/HM_Loader.js"> </script><script src="Images/HM_ScriptDOM.js" type="text/javascript"> </script> <script src="Images/hmcentral.js" type="text/javascript"> </script> <script src="Images/popups.js" type="text/javascript"> </script> </body> </html>
hmcentral.js
CODE
function HM_fc_LL(menuname,linkname,on) { var theLink=(document.getElementById)?document.getElementById(linkname): (document.all)?document.all(linkname):null; if(theLink) theLink.style.color=(on)?"#FFFF66":""; if(window.HM_b_CallToggle) HM_f_ToggleElementList(!on,['select'],'tag'); } function HM_f_DoNothing() {return;} if(typeof(HM_f_UpdateDefaults)=="undefined") { HM_f_UpdateDefaults=HM_f_DoNothing; HM_f_SetMenuTemplate=HM_f_DoNothing; HM_f_SetMenus=HM_f_DoNothing; HM_f_SetItems=HM_f_DoNothing; HM_NS4=HM_IE4=HM_IE55=false; } HM_NB=(HM_NS4||HM_IE4); HM_f_UpdateDefaults({ MenuWidth:150, ClickKill:0, MilliSecondsVisible:300, ScrollEnabled:1, ScrollOver:1, ScrollBothBars:1, ScrollInterval:20, FontWeight:"normal", FontColor:"blue", FontColorOver:"blue", BGColor:"#dddddd", BGColorOver:"#ffcccc", BorderColor:"black", SeparatorSize:2, SeparatorColor:"#d0ff00", KeepHilite:1, ShowLinkCursor:1, CreateOnLoad:false, NSFontOver:1 }); HM_f_SetMenuTemplate({ MenuPaddingTop:2, MenuPaddingLeft:2, MenuPaddingBottom:2, MenuPaddingRight:2, MenuBGColor:"#999689", SeparatorColor:"black", FontWeight:"bold", FontColor:"white", FontColorOver:"white", FontColorSelected:(HM_NB)?"#FFFF66":"white", BGColor:"#999689", BGColorOver:(HM_NB)?"#663300":"#999689", BGColorSelected:(HM_NB)?"#663300":"#999689", ItemPadding:(HM_NB)?2:0, ButtonClass:"mbc1", ButtonClassOver:"mbc2", ButtonClassSelected:"mbc3", MenuOpacity:.9, FontFamily:"Verdana, Helvetica, sans-serif", FontSize:"12px", IEFilters:"progid:DXImageTransform.Microsoft.DropShadow(color='#66999999')", VariableWidthMinimum:150, MenuWidth:250, IsVariableWidth:1, ImageHorizSpace:3, StatusDisplayBuild:0, SeparatorSize:(HM_NB)?1:0 }); HM_f_SetMenus( {MenuID:"hm_m_latest",TopMenuY:"HM_f_GetElementXY('hm_l_latest','y')", TopMenuX:150,MenuWidth:150,CreateOnLoad:(window.HM_IE55)?1:0, ButtonClass:"mbc4",ButtonClassOver:"mbc5",ButtonClassSelected:"mbc6", TopUponDisplay:"HM_fc_LL('hm_m_latest','hm_l_latest',true)", TopUponHide:"HM_fc_LL('hm_m_latest','hm_l_latest',false)"}, {MenuID:"hm_m_about",TopMenuY:"HM_f_GetElementXY('hm_l_about','y')", TopMenuX:150,MenuWidth:150, ButtonClass:"mbc4",ButtonClassOver:"mbc5",ButtonClassSelected:"mbc6", TopUponDisplay:"HM_fc_LL('hm_m_about','hm_l_about',true)", TopUponHide:"HM_fc_LL('hm_m_about','hm_l_about',false)"}, {MenuID:"hm_m_faq",TopMenuY:"HM_f_GetElementXY('hm_l_faq','y')", TopMenuX:150,MenuWidth:150, ButtonClass:"mbc4",ButtonClassOver:"mbc5",ButtonClassSelected:"mbc6", TopUponDisplay:"HM_fc_LL('hm_m_faq','hm_l_faq',true)", TopUponHide:"HM_fc_LL('hm_m_faq','hm_l_faq',false)"}, {MenuID:"hm_m_issues",TopMenuY:"HM_f_GetElementXY('hm_l_issues','y')", TopMenuX:150,MenuWidth:150, ButtonClass:"mbc4",ButtonClassOver:"mbc5",ButtonClassSelected:"mbc6", TopUponDisplay:"HM_fc_LL('hm_m_issues','hm_l_issues',true)", TopUponHide:"HM_fc_LL('hm_m_issues','hm_l_issues',false)"}, {MenuID:"hm_m_bulletins",TopMenuY:"HM_f_GetElementXY('hm_l_bulletins','y')", TopMenuX:150, TopUponDisplay:"HM_fc_LL('hm_m_bulletins','hm_l_bulletins',true)", TopUponHide:"HM_fc_LL('hm_m_bulletins','hm_l_bulletins',false)"}, {MenuID:"hm_m_docs",TopMenuY:"HM_f_GetElementXY('hm_l_docs','y')", TopMenuX:150,BaseURL:"/documentation/", TopUponDisplay:"HM_fc_LL('hm_m_docs','hm_l_docs',true)", TopUponHide:"HM_fc_LL('hm_m_docs','hm_l_docs',false)"}, {MenuID:"hm_m_samples",TopMenuY:"HM_f_GetElementXY('hm_l_samples','y')", TopMenuX:150,BaseURL:"/samples/", TopUponDisplay:"HM_fc_LL('hm_m_samples','hm_l_samples',true)", TopUponHide:"HM_fc_LL('hm_m_samples','hm_l_samples',false)"} ); HM_f_SetItems( {MenuID:"hm_m_latest",TextAlign:"center",DisplayText:"Basic information pertaining to the latest release of HierMenus",IsPermHilite:1,IsRollover:0,LinkURL:"/latest/"}, {MenuID:"hm_m_about",TextAlign:"center",DisplayText:"Contact information, features and benefits of the HierMenus script",IsPermHilite:1,IsRollover:0,LinkURL:"/about/"}, {MenuID:"hm_m_faq",TextAlign:"center",DisplayText:"Got a question?<br />Our Frequently Asked Questions list is the place to start",IsPermHilite:1,IsRollover:0,LinkURL:"/faq/"}, {MenuID:"hm_m_issues",TextAlign:"center",DisplayText:"Having a problem?<br />Check out this browser-by-browser list of known HierMenus issues",IsPermHilite:1,IsRollover:0,LinkURL:"/issues/"} ); HM_f_SetItems( {MenuID:"hm_m_bulletins",DisplayText:"Release Notes",ChildID:"hm_m_rnotes"}, {MenuID:"hm_m_bulletins",DisplayText:"Tutorials",ChildID:"hm_m_tutorials"} ); HM_f_SetMenus( {MenuID:"hm_m_archive",BaseURL:"/documentation/archive/"}, {MenuID:"hm_m_ref",BaseURL:"/documentation/reference/", ButtonClass:"mbc4",ButtonClassOver:"mbc5",ButtonClassSelected:"mbc6"}, {MenuID:"hm_m_setup",BaseURL:"/documentation/setup/", ButtonClass:"mbc4",ButtonClassOver:"mbc5",ButtonClassSelected:"mbc6"}, {MenuID:"hm_m_rnotes",BaseURL:"/bulletins/"}, {MenuID:"hm_m_tutorials",BaseURL:"/bulletins/"} ); HM_f_SetItems( {MenuID:"hm_m_rnotes",DisplayText:"HierMenus 6.0.2",LinkURL:"16/"}, {MenuID:"hm_m_rnotes",DisplayText:"HierMenus 6.0.1",LinkURL:"15/"}, {MenuID:"hm_m_rnotes",DisplayText:"HierMenus 6.0",LinkURL:"14/"}, {MenuID:"hm_m_rnotes",DisplayText:"HierMenus 5.3.1",LinkURL:"10/"}, {MenuID:"hm_m_rnotes",DisplayText:"HierMenus 5.3",LinkURL:"9/"}, {MenuID:"hm_m_rnotes",DisplayText:"HierMenus 5.2.1",LinkURL:"8/"}, {MenuID:"hm_m_rnotes",DisplayText:"HierMenus 5.2",LinkURL:"7/"}, {MenuID:"hm_m_rnotes",DisplayText:"HierMenus 5.1",LinkURL:"5/"}, {MenuID:"hm_m_rnotes",DisplayText:"HierMenus 5.0.1",LinkURL:"3/"}, {MenuID:"hm_m_rnotes",DisplayText:"HierMenus 5.0",LinkURL:"2/"} ); HM_f_SetItems( {MenuID:"hm_m_tutorials",DisplayText:"Version 6 Preview",LinkURL:"13/"}, {MenuID:"hm_m_tutorials",DisplayText:"Synchronized Rollovers",LinkURL:"12/"}, {MenuID:"hm_m_tutorials",DisplayText:"When TLC Isn't Enough",LinkURL:"11/"}, {MenuID:"hm_m_tutorials",DisplayText:"Hiding Page Elements",LinkURL:"6/"}, {MenuID:"hm_m_tutorials",DisplayText:"Conditional Parameters",LinkURL:"4/"}, {MenuID:"hm_m_tutorials",DisplayText:"Adding Opera (HM5)",LinkURL:"1/"} ); HM_f_SetItems( {MenuID:"hm_m_docs",DisplayText:"Setting Up",LinkURL:"setup/",ChildID:"hm_m_setup"}, {MenuID:"hm_m_docs",DisplayText:"Reference",LinkURL:"reference/",ChildID:"hm_m_ref"}, {MenuID:"hm_m_docs",DisplayText:"Archive",LinkURL:"archive/",ChildID:"hm_m_archive"}, {MenuID:"hm_m_docs",DisplayText:"Upgrading",LinkURL:"upgrade/"}, {MenuID:"hm_m_docs",DisplayText:"Compatibility",LinkURL:"compatibility/"} ); HM_f_SetItems( {MenuID:"hm_m_archive",DisplayText:"HM Version 4",LinkURL:"v4/"}, {MenuID:"hm_m_archive",DisplayText:"HM Version 5",LinkURL:"v5/"} ); HM_f_SetItems( {MenuID:"hm_m_ref",TextAlign:"center",DisplayText:"Parameter Reference",IsPermHilite:1,IsRollover:0}, {MenuID:"hm_m_ref",DisplayText:"By Topic",LinkURL:"index.html#topical"}, {MenuID:"hm_m_ref",DisplayText:"Alphabetically",LinkURL:"index.html#alpha"}, {MenuID:"hm_m_ref",TextAlign:"center",DisplayText:"Mini-Tutorials",IsPermHilite:1,IsRollover:0}, {MenuID:"hm_m_ref",DisplayText:"Menu Positioning",LinkURL:"menupositioning.html"}, {MenuID:"hm_m_ref",DisplayText:"Using Classes",LinkURL:"usingclasses.html"}, {MenuID:"hm_m_ref",DisplayText:"Custom Transitions",LinkURL:"customtransitions.html"}, {MenuID:"hm_m_ref",DisplayText:"Menu Event Hooks",LinkURL:"menueventhooks.html"} ); HM_f_SetItems( {MenuID:"hm_m_setup",DisplayText:"Installing the Scripts",LinkURL:"installing.html"}, {MenuID:"hm_m_setup",DisplayText:"Creating a Configuration File",LinkURL:"configuring.html"}, {MenuID:"hm_m_setup",DisplayText:"Applying HM to Pages",LinkURL:"applying.html"}, {MenuID:"hm_m_setup",TextAlign:"center",DisplayText:"Advanced Topics",IsPermHilite:1,IsRollover:0}, {MenuID:"hm_m_setup",DisplayText:"Custom Code",LinkURL:"customcode.html"}, {MenuID:"hm_m_setup",DisplayText:"HM and Databases",LinkURL:"database.html"}, {MenuID:"hm_m_setup",DisplayText:"Disabling a Browser",LinkURL:"disabling.html"}, {MenuID:"hm_m_setup",DisplayText:"Using v4/5 Arrays",LinkURL:"usingarrays.html"}, {MenuID:"hm_m_setup",DisplayText:"Page Specific Variables",LinkURL:"pagespecific.html"}, {MenuID:"hm_m_setup",DisplayText:"Earlier Image Preloading",LinkURL:"pagepreload.html"}, {MenuID:"hm_m_setup",DisplayText:"The Space Optimized Code Set:<br />Developer's Considerations",LinkURL:"spaceoptimized.html#developer"} ); HM_f_SetItems( {MenuID:"hm_m_samples",DisplayText:"Popup Menus",LinkURL:"popups.html"}, {MenuID:"hm_m_samples",DisplayText:"Permanent Menus",LinkURL:"permmenus.html"}, {MenuID:"hm_m_samples",DisplayText:"Cross Frames",LinkURL:"crossframes.html"}, {MenuID:"hm_m_samples",DisplayText:"Transitions and Filters",LinkURL:"transfilters.html"}, {MenuID:"hm_m_samples",DisplayText:"Image Rollovers",LinkURL:"imagerollovers.html"}, {MenuID:"hm_m_samples",DisplayText:"Background Images",LinkURL:"bgimages.html"}, {MenuID:"hm_m_samples",DisplayText:"Buttons",LinkURL:"buttons.html"}, {MenuID:"hm_m_samples",DisplayText:"Fixed Position /<br />Reposition On Scroll",LinkURL:"fixedscroll.html"}, {MenuID:"hm_m_samples",DisplayText:"Sliding Menus",LinkURL:"sliding.html"}, {MenuID:"hm_m_samples",DisplayText:"IFRAME Masking",LinkURL:"iframe.html"}, {MenuID:"hm_m_samples",DisplayText:"Featured Sites",BaseURL:"",LinkURL:"/sites/"} );
popups.js
CODE
function HM_f_DoNothing() {return;} if(typeof(HM_f_UpdateDefaults)=="undefined") { HM_f_UpdateDefaults=HM_f_DoNothing; HM_f_SetMenuTemplate=HM_f_DoNothing; HM_f_SetMenus=HM_f_DoNothing; HM_f_SetItems=HM_f_DoNothing; HM_NS4=HM_IE4=false; } HM_f_SetMenuTemplate({ SeparatorColor:"black", FontWeight:"bold", FontColor:"white", FontColorOver:"white", FontColorSelected:"#FFFF66", BGColor:"#999689", BGColorOver:"#FF9900", BGColorSelected:"#663300", ItemPadding:2, FontFamily:"Verdana, Helvetica, sans-serif", FontSize:"12px", MilliSecondsVisible:500, SeparatorSize:1 }); HM_f_SetMenus( {MenuID:"afats_16"}, (MenuID:"afats_menu"}, {MenuID:"daftar"}, {MenuID:"aktiviti"}, {MenuID:"aktiviti_menu"} {MenuID:"galeri"}, {MenuID:"galeri_menu"}, (MenuID:"link"}, (MenuID:"akhbar"}, {MenuID:"new"}, {MenuID:"hm_m_main2",ClickStart:1}, {MenuID:"hm_m_bulletins1"}, {MenuID:"hm_m_docs1"}, {MenuID:"hm_m_docs2",ClickStart:1}, {MenuID:"hm_m_samples1"}, {MenuID:"hm_m_samples2",ClickStart:1, TopKeepInWindowX:0,TopKeepInWindowY:0, TopMenuX:"HM_f_GetElementXY('hm_l_samples2','x')+20", TopMenuY:"HM_f_GetElementXY('hm_l_samples2','y')+4"} ); HM_f_SetMenus({ MenuID:"afats_16", IsPermanent:false, TopMenuX:"HM_f_GetElementXY('afats_16','x')", TopMenuY:"HM_f_GetElementXY('afats_16','y')+32", ChildOffset:10, ChildOverlap:20 }); HM_f_SetMenus({ MenuID:"afats_menu", IsPermanent:false, TopMenuX:"HM_f_GetElementXY('afats_menu','x')", TopMenuY:"HM_f_GetElementXY('afats_menu','y')+32", ChildOffset:10, ChildOverlap:20 }); HM_f_SetMenus({ MenuID:"daftar", IsPermanent:false, TopMenuX:"HM_f_GetElementXY('daftar','x')", TopMenuY:"HM_f_GetElementXY('daftar','y')+32", ChildOffset:10, ChildOverlap:20 }); HM_f_SetMenus({ MenuID:"aktiviti", IsPermanent:false, TopMenuX:"HM_f_GetElementXY('aktiviti','x')", TopMenuY:"HM_f_GetElementXY('aktiviti','y')+32", ChildOffset:10, ChildOverlap:20 }); HM_f_SetMenus({ MenuID:"aktiviti_menu", IsPermanent:false, TopMenuX:"HM_f_GetElementXY('aktiviti_menu','x')", TopMenuY:"HM_f_GetElementXY('aktiviti_menu','y')+32", ChildOffset:10, ChildOverlap:20 }); HM_f_SetMenus({ MenuID:"galeri", IsPermanent:false, TopMenuX:"HM_f_GetElementXY('galeri','x')", TopMenuY:"HM_f_GetElementXY('galeri','y')+32", ChildOffset:10, ChildOverlap:20 }); HM_f_SetMenus({ MenuID:"galeri_menu", IsPermanent:false, TopMenuX:"HM_f_GetElementXY('galeri_menu','x')", TopMenuY:"HM_f_GetElementXY('galeri_menu','y')+32", ChildOffset:10, ChildOverlap:20 }); HM_f_SetMenus({ MenuID:"link", IsPermanent:false, TopMenuX:"HM_f_GetElementXY('link','x')", TopMenuY:"HM_f_GetElementXY('link','y')+32", ChildOffset:10, ChildOverlap:20 }); HM_f_SetMenus({ MenuID:"akhbar", IsPermanent:false, TopMenuX:"HM_f_GetElementXY('akhbar','x')", TopMenuY:"HM_f_GetElementXY('akhbar','y')+32", ChildOffset:10, ChildOverlap:20 }); HM_f_SetItems( {MenuID:"afats_16",DisplayText:"Piagam AFATS",LinkURL:"piagam.php"}, {MenuID:"afats_16",DisplayText:"Sejarah Penubuhan AFATS",LinkURL:"sejarah.php"}, {MenuID:"afats_16",DisplayText:"Cogan Kata",LinkURL:"cogankata.php"}, {MenuID:"afats_16",DisplayText:"Matlamat Seorang Perantis",LinkURL:"matlamat.php"}, {MenuID:"afats_16",DisplayText:"Kata-kata Kenangan",LinkURL:"kata.php"}, {MenuID:"afats_16",DisplayText:"Logo",LinkURL:"logo.php"}, {MenuID:"afats_16",DisplayText:"Organisasi",LinkURL:"organisasi.php"}, (MenuID:"afats_16",DisplayText:"Rakan AFATS Yang Lain",LinkURL:""ChildID:"afats_menu"}, ); HM_f_SetItems( {MenuID:"afats_menu",DisplayText:"X-AFATS Intake 3",LinkURL:"http://maxpages.com/afats3rdintake/"}, {MenuID:"afats_menu",DisplayText:"X-AFATS Intake 7",LinkURL:"http://zainalpc3.fotopages.com"}, {MenuID:"afats_menu",DisplayText:"X-AFATS Intake 9",LinkURL:"http://www.afats9.blogspot.com/"}, {MenuID:"afats_menu",DisplayText:"X-AFATS Intake 15",LinkURL:"http://afats15.tripod.com/"}, {MenuID:"afats_menu",DisplayText:"X-AFATS Intake 23",LinkURL:"http://www.x-afats23.blogspot.com/"} ); HM_f_SetItems( {MenuID:"daftar",DisplayText:"Pendaftaran",LinkURL:"pendaftaran.php"}, {MenuID:"daftar",DisplayText:"Senarai Ahli",LinkURL:"ahli.php"}, ); HM_f_SetItems( {MenuID:"aktiviti",DisplayText:"Aktiviti Terbaru",LinkURL:""ChildID:"aktiviti_menu"}, {MenuID:"aktiviti",DisplayText:"Aktiviti Akan Datang",LinkURL:""ChilID:"aktiviti_menu"}, ); HM_f_SetItems( {MenuID:"aktiviti_menu",DisplayText:"Negeri",LinkURL:"aktiviti.php?year=2007"}, (MenuID:"aktiviti_menu",DisplayText:"Afats",LinkURL:""}, ); HM_f_SetItems( {MenuID:"galeri",DisplayText:"Kenangan Terindah",LinkURL:"gambarLama.php"}, {MenuID:"galeri",DisplayText:"Gambar Baru",LinkURL:""ChildID:"galeri_menu"}, {MenuID:"galeri",DisplayText:"Video",LinkURL:""ChildID:"galeri_menu"}, ); HM_f_SetItems( {MenuID:"galeri_menu",DisplayText:"Negeri",LinkURL:"galeri.php?year=2007"}, (MenuID:"galeri_menu",DisplayText:"Afats",LinkURL:""}, ); HM_f_SetItems( {MenuID:"link",DisplayText:"Angkata Tentera Malaysia",LinkURL:"http://maf.mod.gov.my/"}, {MenuID:"link",DisplayText:"Tentera Darat Malaysia",LinkURL:"http://army.mod.gov.my/"}, {MenuID:"link",DisplayText:"Tentera Laut Diraja Malaysia",LinkURL:"http://navy.mod.gov.my/"}, {MenuID:"link",DisplayText:"Perbadanan Hal Ehwal Bekas Angkatan Tentera (PERHEBAT)",LinkURL:"http://www.perhebat.net.my/"}, {MenuID:"link",DisplayText:"Pertahanan Angkatan Tentera (MPAT)",LinkURL:"http://mpat.mod.gov.my/"}, {MenuID:"link",DisplayText:"Akademi Angkatan Tentera Malaysia (ATMA)",LinkURL:"http://www.atma.gov.my/"}, {MenuID:"link",DisplayText:"Maktab Tentera Diraja (MTD)",LinkURL:"http://www.rmc.edu.my/mtd/"}, {MenuID:"link",DisplayText:"Institut latihan Kesihatan (INSAN)",LinkURL:"http://maf.mod.gov.my/institut_latihan/INSAN/utama.htm"}, {MenuID:"link",DisplayText:"Pusat Latihan Pengaman Malaysia (PLPM)",LinkURL:"http://maf.mod.gov.my/plpm/index.html"}, {MenuID:"link",DisplayText:"Kor Agama Angkatan Tentera (KAGAT)",LinkURL:"http://maf.mod.gov.my/kagat/index.html"} ); HM_f_SetItems( {MenuID:"akhbar",DisplayText:"Utusan Malaysia",LinkURL:"http://www.utusan.com.my"}, {MenuID:"akhbar",DisplayText:"Berita Harian",LinkURL:"http://www.bharian.com.my"}, {MenuID:"akhbar",DisplayText:"Harian Metro",LinkURL:"http://www.hmetro.com.my"}, {MenuID:"akhbar",DisplayText:"The Star",LinkURL:"http://www.thestar.com.my"}, {MenuID:"akhbar",DisplayText:"New Straits Times",LinkURL:"http://www.nstp.com.my"}, {MenuID:"akhbar",DisplayText:"The Malay Mail",LinkURL:"http://www.mmail.com.my"} );
HM_Loader.js
CODE
/* HM_Loader.js * HierMenus Version 6 * Copyright 2004 Jupitermedia Corporation */ HM_UserAgent = navigator.userAgent; HM_DOM = (document.getElementById) ? true : false; HM_NS4 = (document.layers) ? true : false; HM_IE = (document.all) ? true : false; HM_IE4 = HM_IE && !HM_DOM; HM_Mac = (navigator.appVersion.indexOf("Mac") != -1); HM_IE4M = HM_IE4 && HM_Mac; HM_IsSafari = ((HM_DOM)&& (parseInt(navigator.productSub)>=20020000)&& (navigator.vendor.indexOf("Apple Computer")!=-1)); if(HM_IsSafari) { HM_BrowserPattern = /Safari\/(\d+)/; HM_Matches = HM_UserAgent.match(HM_BrowserPattern); if (HM_Matches&&HM_Matches[1]) HM_BrowserVersion = (HM_Matches[1]-0); else HM_BrowserVersion = 0; } HM_Opera = (window.opera) ? true : false; if(HM_IsSafari||HM_Opera) { HM_IE=HM_NS4=HM_IE4=HM_IE4M=false; if(HM_IsSafari) HM_Mac=true; } HM_IE5M = (HM_IE&&HM_Mac&&HM_DOM); if(HM_Opera) { HM_BrowserPattern = /Opera(\/| )(\d+.*)/; HM_VersionSupported = 7; } HM_Konqueror = (HM_UserAgent.indexOf("Konqueror")!=-1); if(HM_Konqueror) { HM_BrowserPattern = /(Konqueror\/)(\d+.*)/; HM_VersionSupported = 3.2; } if(HM_Opera || HM_Konqueror) { if (HM_UserAgent.match) { HM_Matches = HM_UserAgent.match(HM_BrowserPattern); if (HM_Matches&&HM_Matches[2]) { HM_BrowserVersion = parseFloat(HM_Matches[2]); } else HM_BrowserVersion = 0; HM_IsMenu = (HM_BrowserVersion >= HM_VersionSupported); } else { HM_BrowserVersion = 0; HM_IsMenu = false; } } else { HM_BrowserVersion = 0; HM_IsMenu = !HM_IE4M && !HM_IE5M && (HM_DOM || HM_NS4 || HM_IE4 ); } if(window.event + "" == "undefined") event = null; // function HM_f_PopUp(){return false}; // function HM_f_PopDown(){return false}; popUp = HM_f_PopUp; popDown = HM_f_PopDown; // Configuration block. The following 6 variables should be configured // to match your default preferences. You can then override the settings // on a page by page basis by providing values for the variables in any // JavaScript segment that is loaded BEFORE this one. These variables // are the ONLY variables you should alter in this file. if(typeof(window.HM_ScriptDir)=="undefined") HM_ScriptDir = "/_hm/scripts/v602/"; if(typeof(window.HM_ImageDir)=="undefined") HM_ImageDir = "images/"; if(typeof(window.HM_ConfigDir)=="undefined") HM_ConfigDir = "/_hm/configs/"; if(typeof(window.HM_ConfigFiles)=="undefined") HM_ConfigFiles = "hmcentral.js"; if(typeof(window.HM_ConfigType)=="undefined") HM_ConfigType = "default"; if(typeof(window.HM_FramesEnabled)!="boolean") HM_FramesEnabled = false; // Custom functions. We recommend that you delete any of these // that you have no use for, to reduce the overall download times // of the scripts. (Be sure to save yourself a copy, in case // you decide you want to use them in the future!) // The following function is included to illustrate the JS // expression handling of the MenuX and MenuY parameters. // It returns a centered horizontal position for the menu. function HW(kx){var b=0;var c=Hms[kx];var d=HM_DOM?parseInt(c.mh.style.width)+((Hjt||Hju)?0:c.sz+c.sx):HM_IE4?c.mh.style.pixelWidth:c.mh.clip.width; var gh=HM_IE?(HM_DOM?Hh.clientWidth:Hg.document.body.clientWidth):(Hg.document.body&&Hg.document.body.clientWidth)?Hg.document.body.clientWidth:Hg.innerWidth;return Math.max(parseInt((gh-d)/2),b);} HM_f_CenterMenu=HW; // The following three functions can be used in combination to // produce "sliding" menus; menus that slide in and out to their // desired locations. The "SetSlide" and "KillSlide" functions // are the required interface functions for HierMenus, and the // SlideMoveTo function does the actual work. To activate these // routines on a menu, you would add (as an example) // "ScrollEnabled:1,setTrans:HM_f_SetSlide,killTrans:HM_f_KillSlide,SlideInFrom:'left'" // to the menu definitions, in addition to the SlideIn/SlideOutInterval, // and SlideIn/SlideOutPercent variables (all of which will assume // defaults if not set). Note that for these particular transitions // to work, ScrollEnabled must be true on the menu. Hvq=(HM_DOM&&((navigator.productSub&&(navigator.productSub<20021130))||((/^Netscape/.test(navigator.vendor))&&(navigator.vendorSub==7.02))||(navigator.vendor=="Camino"&&(navigator.vendorSub<=.7)))); function HM_f_SetSlide(on){this.HYD();if(Hvq||(on&&!this.vm)||(!on&&!this.vn)){this.HYF(on);return;}else{var ve=(on?this.vm:this.vn);var vb script:void(0)";this.rt.frameBorder=0;this.rt.style.position="absolute";this.rt.style.visibility="hidden"; this.rt.style.left=(HXN())?"0px":"-500px";this.rt.style.top="-2000px";this.rt.style.width="100px";this.rt.style.height="100px";this.rt.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=0)";this.rt.allowTransparency=false; if(this.UseInsert)Hg.document.body.insertBefore(this.rt,Hg.document.body.firstChild);else Hg.document.body.appendChild(this.rt);}} // End custom functions HM_IsMenu=(HM_Konqueror&&HM_FramesEnabled)?false:HM_IsMenu; if(HM_IsMenu) { HM_BrowserString = HM_NS4 ? "NS4" : HM_Opera ? "OPR" : HM_DOM ? "DOM" : "IE4"; HM_aConfigs = HM_ConfigFiles.split(','); HM_WriteString = '<scr'+'ipt src="' + HM_ScriptDir + 'HM_Script' + HM_BrowserString + '.js" type="text/javascript">'+"\n"+'<\/scr'+'ipt>'+"\n"; document.write(HM_WriteString); for(var i=0; i<HM_aConfigs.length; i++) { HM_WriteString = '<scr'+'ipt src="' + HM_ConfigDir + HM_aConfigs[i] + '" type="text/javascript">'+"\n"+'<\/scr'+'ipt>'+"\n"; if(HM_aConfigs[i]) document.write(HM_WriteString); } if(HM_ConfigType=="arrays") { HM_WriteString = '<scr'+'ipt src="' + HM_ScriptDir + 'HM_ConvertArrays.js" type="text/javascript">'+"\n"+'<\/scr'+'ipt>'+"\n" document.write(HM_WriteString); } }
HM_ScriptDOM.js
CODE
/*HM_ScriptDOM.js * HierMenus Version 6 * Copyright 2004 Jupitermedia Corporation. All Rights Reserved. * Originally published and documented at http://www.hiermenuscentral.com/ * Available solely from Jupitermedia Corporation under exclusive license. * Contact hiermenus1@jupitermedia.com for more information. */ Hi="6.02";HM_IsSafari=((parseInt(navigator.productSub)>=20020000)&& (navigator.vendor.indexOf("Apple Computer")!=-1)); if(HM_IsSafari){HM_BrowserPattern=/Safari\/(\d+)/;HM_Matches=HM_UserAgent.match(HM_BrowserPattern);if(HM_Matches&&HM_Matches[1])HM_BrowserVersion=(HM_Matches[1]-0);else HM_BrowserVersion=0;} HM_NS6=((navigator.product=="Gecko")||(HM_IsSafari)); if(HM_NS6)HM_IE=HM_Konqueror=false;else if(HM_Konqueror)HM_IE=HM_NS6=HM_IsSafari=false;HM_IE5W=HM_IE&&!HM_Mac;HM_IE50W=(HM_IE5W&&/MSIE\s*5(\.0|\s+)/i.test(HM_UserAgent))?true:false;HM_IE55=(HM_IE5W&&!HM_IE50W); HM_IEpos=!HM_NS6||(parseInt(navigator.productSub)>=20010710);Hjf=(parseInt(navigator.productSub)<20010726);Hju=false;Hld=(parseInt(navigator.productSub)>=20020823); if(HM_IsSafari&&(HM_BrowserVersion<100))Hld=false;Hl3="HM_Img";Hl2=new RegExp("^("+Hl3+"\\d+).*$");HM_BackgroundSupport=!HM_NS6||(parseInt(navigator.productSub)>20010726); function HXN(){var jp=Hg.document.body;while(!jp.dir&&jp.parentNode)jp=jp.parentNode;return((typeof(jp.dir)=="string")&&(/^rtl$/i.test(jp.dir)))?true:false;} Hh=null;Hat=false;Hjh=false;Hg=window;Hji=false;Hav=["permission","access","security","unsafe"];Hjj=true;Hjk=null;Hay=false;Hjm=false;Hax=true;Hjn=[];Hk3=false;Hsk=null;Hsl=0;Hsm=0; function HWR(el){Hjn[Hjn.length]=el;} function HWS(){Hkb=Hkc=Hkd=Hke=Hkf=Hkg=null;Hbg=null;Hku=null;var jo=Hjn.length;for(var i=jo-1;i>=0;i--){var jp=Hjn[i];if(jp){var mf=(jp.mg)?jp.mg:(jp.mh)?jp.mh:null;if(mf){mf.onmouseenter=null;mf.onmouseleave=null;mf.onmouseover=null;mf.onmouseout=null; mf.onclick=null;mf.onmousedown=null;mf.onselectstart=null;mf.onmousewheel=null;mf.mi=null;mf.mj=null;mf.sp=null;mf=null;}jp.rt=null;if(jp.uv){jp.uv.onmouseover=null;jp.uv.onmouseout=null;jp.uv=null;}jp.er=null;jp.kk=null;jp.nu=null;jp.mk=null; jp.siblingBelow=null;jp.mm=null;jp.cs=null;jp.Fs=null;jp.Ft=null;jp.lv=null;jp.mi=null;jp.mh=null;jp.mj=null;jp.mg=null;jp=null;}Hjn[i]=null;}Hjn=[];Hsk=null;} function HW4(){HWS();Hbi=false;Hbj=false;Hbd=null;Hbk=5000;Hbl=null;} HW4(); function HW5(){if(typeof(window.HM_o_PageDefaults)=="object")HM_f_UpdateDefaults(HM_o_PageDefaults);if(HM_FramesEnabled){if((parent==self)||(!Hmr.qp)){HM_FramesEnabled=false;}}Hay=true;HW4();Hbi=HW8();Hax=false;Hat=true;Hjj=false;Hay=false;return Hbi;} function HXD(){return true;} function HXC(){HWt();return true;} function HXS(jp,mo,mp,mq){if(jp.attachEvent)jp.attachEvent("on"+mo,mp);else if(jp.addEventListener)jp.addEventListener(mo,mp,mq);else jp["on"+mo]=mp;} function HXT(jp,mo,mp,mq){if(jp.detachEvent)jp.detachEvent("on"+mo,mp);else if(jp.removeEventListener)jp.removeEventListener(mo,mp,mq);else jp["on"+mo]=null;} function HWT(){if((typeof(Hg.document.body)=="undefined")||(Hg.document.body==null))return false;Hjr=(HM_IE&&Hg.document.compatMode)?Hg.document.compatMode=="CSS1Compat":false; Hjs=(HM_IE&&Hg.document.doctype)?Hg.document.doctype.name.indexOf(".dtd")!=-1:Hjr;Hjt=(HM_IE)&&!Hjs;Hlu=(HM_NS6&&!HM_IsSafari&&(parseInt(navigator.productSub)<20030312)&&HXN());Hjh=(typeof(Hg.document.body.onmouseenter)!="undefined"); if(HM_IE||HM_Konqueror)Hh=Hjr?Hg.document.documentElement:Hg.document.body;if(Hk3)HXS(Hg.document,"mousedown",HXC,false);var iu=Hg;if(HM_Konqueror)HXS(document,"resize",HWN,false);else HXS(iu,"resize",HWN,false);if(HM_FramesEnabled)HXS(iu,"unload", HWO,false);Hg.Hlc=true;Hg.HM_MainUnloadHandler=HWO;if(Hmr.R===null)Hmr.R=HXN();return true;} function HW8(){var gb=false;if(HM_FramesEnabled){var bs=parent.frames[Hmr.qq];if(typeof bs=="undefined"){HM_FramesEnabled=false;var k9=HXF();}else{Hg=bs;var k9=HXF();if(!Hjm){if(Hld){var jv=parent.document.getElementsByName(Hmr.qq)[0]; if(HM_IsSafari)jv.onload=HW5;else HXS(jv,"load",HW5,false);Hji=true;}else if(parent.HM_UseFrameLoad&&!HM_IsSafari){Hji=true;parent.HM_f_LoadMenus=HW5;}Hjm=true;if(k9){var iu=Hg;HXT(iu,"unload",Hg.HM_MainUnloadHandler,false);HXS(iu,"unload",HWO, false);Hg.location.replace(Hg.location.href);return false;}}}}else{var k9=HXF();}try{var jy=typeof(Hg.document);}catch(e){gb=HX2(e);}if(gb)return false;else gb=false;if(HM_IE){if(typeof(Hg.document)=="unknown")return false; if(Hg.document.readyState!="complete")return false;}try{var Initialized=k9?false:HWT();}catch(e){gb=HX2(e);}if(gb||!Initialized)return false;HY5();return true;} function HW9(ix){if(!HWU())return null;if(Hms[ix])return Hms[ix];else return null;} function HWU(){var jw=false;var jx=null;try{var jy=typeof(Hg.document);if((HM_IE)&&(typeof(Hg.document)=="unknown"))return false;if((HM_IE||HM_IsSafari)&&(Hg.document.readyState!="complete"))return false;jx=((Hg)&&(Hg.document))?Hg.document:null; var jz=Hg.document.getElementById('HM_dummy_menu');if(jx)jw=false;}catch(e){jw=HX2(e);}return(!jw);} function HM_f_SetKeyWords(fixed){var et=(HM_IE||HM_IsSafari||HM_Konqueror)?0:Hmr.qr;HM_window_left_edge=(fixed)?0:(HM_IE)?Hh.scrollLeft:Hg.pageXOffset;HM_window_top_edge=(fixed)?0:(HM_IE)?Hh.scrollTop:Hg.pageYOffset; var ew=(HM_IE)?Hh.clientWidth:Hg.innerWidth;var ex=(HM_IE)?Hh.clientHeight:Hg.innerHeight;if(HM_IE&&!HM_IE50W&&HXN())HM_window_left_edge-=(Hh.scrollWidth-ew);HM_window_right_edge=(HM_window_left_edge+ew)-et;HM_window_bottom_edge=(HM_window_top_edge+ex)-et; HM_mouse_x_position=HM_default_x_position=0;HM_mouse_y_position=HM_default_y_pos ition=0;} function HM_f_PopUp(eg,e,navpos,lp,eX,eY,ePX,ePY){if(!Hat)return;if(Hax||!HWU())return;if(!e)e=window.event;var qw=(lp)?false:true;if(!lp){lp=e.type;eX=(HM_NS6)?e.pageX:e.clientX;eY=(HM_NS6)?e.pageY:e.clientY;ePX=(HM_NS6)?window.pageXOffset:0; ePY=(HM_NS6)?window.pageYOffset:0;if(!HM_FramesEnabled)Hmr.qp="";}if(!navpos)navpos=Hmr.qp;if(!Hay&&!Hbi){if(Hji)return;if(!HW5())return;}var sb=eg;if(HM_ConfigType=="arrays")eg=eg.replace("elMenu","HM_Menu");var eh=Hms[eg];if(!eh)return; if(!eh.mh){if(Hay||!Hbi)return;HY3(eh);}if(!eh.G||!qw)HWe(e,eg,navpos,lp,eX,eY,ePX,ePY);else if(!eh.mw){var ei=(e.currentTarget)?e.currentTarget:(e.srcElement)?e.srcElement:null;if(HM_IE){var sc=new RegExp(sb); while(ei.parentNode&&(!ei.onmouseover||!sc.test(ei.onmouseover.toString())))ei=ei.parentNode;}var ej="return HWe(event,'"+eg+"');";var mv=new Function("event",ej);if(HM_IsSafari||Hjf)ei.onclick=mv;else HXS(ei,"click",mv,false);eh.mw=true;}} function HWe(e,eg,navpos,lp,eX,eY,ePX,ePY){if(!Hat||!Hbi)return true;if(Hax||!HWU())return true;var eh=Hms[eg];if(!eh||!eh.mh)return true;Hbg=eh;if(!e)e=window.event;if(!lp){lp=e.type;eX=(HM_NS6)?e.pageX:e.clientX;eY=(HM_NS6)?e.pageY:e.clientY; ePX=(HM_NS6)?window.pageXOffset:0;ePY=(HM_NS6)?window.pageYOffset:0;}if(navpos)Hmr.qp=navpos;if(Hbg.G&&lp!="click")return true;clearTimeout(Hbg.ng);Hbg.ng=null;if(!Hbg.er&&(Hbg.mh.style.visibility=="visible")){Hbg.nd=true;if(Hbg.nl)Hbg.HXh(null,1); if(e.preventDefault)e.preventDefault();return false;}else HWn();if(Hbg.HYD)Hbg.HYD();HM_f_SetKeyWords(Hbg.mh.style.position=="fixed");Hbg.er=null;Hbg.kk=null;Hbg.nu=null;if(Hbg.nc){Hbg.mh.style.height=Hbg.hm;Hbg.HXl(); }if(!HM_FramesEnabled&&!Hmr.qp){HM_default_x_position=(HM_NS6)?eX:(eX+Hh.scrollLeft);HM_default_y_position=(HM_NS6)?eY:(eY+Hh.scrollTop);if(HM_IE&&!HM_IE50W&&HXN())HM_default_x_position-=(Hh.scrollWidth-Hh.clientWidth); }else{switch(Hmr.qp){case "top":HM_default_x_position=((HM_NS6)?(eX-ePX):eX)+HM_window_left_edge;HM_default_y_position=HM_window_top_edge;break;case "bottom":var pu=((Hjt)?0:(Hbg.sw+Hbg.sy))+parseInt(Hbg.mh.style.height); HM_default_x_position=((HM_NS6)?(eX-ePX):eX)+HM_window_left_edge;HM_default_y_position=HM_window_bottom_edge-pu;break;case "right":var pu=((Hjt)?0:(Hbg.sz+Hbg.sx))+parseInt(Hbg.mh.style.width);HM_default_x_position=HM_window_right_edge-pu; HM_default_y_position=((HM_NS6)?(eY-ePY):eY)+HM_window_top_edge;break;case "left":default:HM_default_x_position=HM_window_left_edge;HM_default_y_position=((HM_NS6)?(eY-ePY):eY)+HM_window_top_edge;break; }}HM_mouse_x_position=Hbg.mouseX=HM_default_x_position;HM_mouse_y_position=Hbg.mouseY=HM_default_y_position;Hbg.ir=Hbg.xPos=(Hbg.mx!=null)?eval(Hbg.mx):HM_default_x_position;Hbg.is=Hbg.yPos=(Hbg.rv!=null)?eval(Hbg.rv):HM_default_y_position;Hbg.HXc(); Hbg.moveTo(Hbg.xPos,Hbg.yPos);Hbg.nd=true;if(HM_NS6){var en="if(HWU()){var Hkc=Hms['"+Hbg.ne+"'];";en+="if(Hkc&&Hkc.nd&&Hkc.HXb)Hkc.HXb(true);}";setTimeout(en,10);}else{Hbg.HXb(true);}if(e.preventDefault)e.preventDefault();return false;} function HXU(e,nf,Menu){var jp=null;try{jp=(e.relatedTarget)?e.relatedTarget:(nf)?(e.fromElement)?e.FromElement:null:(e.toElement)?e.toElement:null;if(jp){if(Menu)while((!jp.mi)&&(jp.parentNode))jp=jp.parentNode; else while((!jp.mj)&&(jp.parentNode))jp=jp.parentNode;}}catch(eObj){jp=null;}return jp;} function HWf(e){if(Hax||!HWU())return;if(!e)e=Hg.event;var jp=HXU(e,1,1);if(jp==this)return;var mi=this.mi;mi.nd=true;if(mi.HYO)mi.HYO(mi.mh);if(!mi.er)HWn(mi);Hbj=true;Hbg=mi;if(mi.V&&(Hbg!=Hku))mi.HYi();if(mi.ng)clearTimeout(mi.ng);mi.ng=null; if(mi.F||Hjf){if(mi.er){var er=mi.er;if(er.nu&&er.nu.nh)er.nu.HXP(0,0,1);var kk=mi.kk;if(mi.F&&kk.nh)kk.HXP(1,0,1);er.nu=kk;}}} function HXV(){var nj=this.ni;var ek=nj.length;var el;for(var i=0;i<ek;i++){el=nj[i];clearTimeout(el.nk);el.nk=null;}} function HWg(e){if(Hax||!HWU())return;if(!e)e=Hg.event;var jp=HXU(e,0,1);if(jp==this)return;var mi=this.mi;mi.nd=false;if(mi.HYP)mi.HYP(mi.mh);Hbj=false;Hbg=mi;if(mi.O)window.status="";mi.HY7();if(Hjf&&mi.nu){if(mi.nu.nh)mi.nu.HXP(0,0,1); mi.nu=null;}if(mi.nl&&(mi.nm.mh==jp))return;if(!mi.k3){clearTimeout(Hbd);Hbd=null;var en="var Hem=HW9('"+mi.ne+"');if(Hem&&Hem.mh&&Hem.HXd)Hem.HXd()";Hbd=setTimeout(en,mi.nn);}} function HWX(){if(this.mk.HYD)this.mk.HYD();if(this.mk.nc){this.mk.mh.style.height=this.mk.hm;}this.oL=parseInt(this.mi.mh.style.left)+this.mi.sz+parseInt(this.mg.style.left);this.oT=parseInt(this.mi.mh.style.top)+this.mi.sw+parseInt(this.mg.style.top); if(this.mi.V){this.oT+=this.mi.cs.top;if(this.mi.qm&&this.mi.ns)this.oT+=(this.mi.k2-this.mi.sw);}var K=(isNaN(parseFloat(this.K)))?null:parseFloat(this.K)/100;if(!this.nr){this.dw=parseInt(this.mg.style.width); if(!Hjt)this.dw+=(parseInt(this.mg.style.paddingLeft)+parseInt(this.mg.style.paddingRight))+((this.mi.np&&!this.nq)?this.w:0);if(!this.mi.np)this.dw+=this.mi.sx+this.mi.ub;this.dx=(!this.mi.np)?(this.mi.sz+this.mi.ud):this.w; this.I=(parseInt((K!=null)?(K*this.dw):this.I));this.nr=true;}if(this.R){this.mk.xPos=((this.oL-this.dx)+this.I)-this.mk.mh.offsetWidth;}else{this.mk.xPos=(this.oL+this.dw)-this.I;}this.mk.yPos=this.oT+this.J; if((this.nt=="above")||(this.nt=="below")){this.mk.xPos=this.oL-(this.mk.sz+this.mk.ud);if((this.mi.cz||this.mk.cz||this.mk.np)&&this.R)this.mk.xPos-=((this.mk.ni[0].mg.offsetWidth-this.mg.offsetWidth)+(this.nq?0:this.w)); if(this.nt=="below")this.mk.yPos=parseInt(this.mi.mh.style.top)+this.mi.mh.offsetHeight-this.sy;else this.mk.yPos=parseInt(this.mi.mh.style.top)-this.mk.mh.offsetHeight+this.sw; }if(this.mi.mh.style.position=="fixed"){this.mk.xPos+=(HM_IE)?Hh.scrollLeft:Hg.pageXOffset;this.mk.yPos+=(HM_IE)?Hh.scrollTop:Hg.pageYOffset;}HM_f_SetKeyWords(this.mk.mh.style.position=="fixed"); HM_default_x_position=HM_mouse_x_position=this.mk.xPos;HM_default_y_position=HM_mouse_y_position=this.mk.yPos;this.mk.ir=this.mk.xPos=(this.mk.mz!=null)?eval(this.mk.mz):HM_default_x_position; this.mk.is=this.mk.yPos=(this.mk.na!=null)?eval(this.mk.na):HM_default_y_position;this.mk.HXc();this.mk.moveTo(this.mk.xPos,this.mk.yPos);} function HWZ(){if(Hay||Hax||!HWU())return;if(!this.mk){var eh=Hms[this.ml];if(!eh)return;if(!eh.mh)HY3(eh);this.mk=eh;}if(this.mi.mh.style.visibility=="hidden")return;this.mk.er=this.mi;this.mk.kk=this;this.HXr(); if(HM_NS6){var en="if(HWU()){var Hkf=Hms['"+this.ne+"'];Hkf=(Hkf.ni&&Hkf.ni["+this.index+"])?Hkf.ni["+this.index+"]:null;";en+="if(Hkf&&Hkf.HXt)Hkf.HXt();}";setTimeout(en,10);}else this.HXt();} function HX(){if((this.mi.nu==this)&&(this.mi.nd)){this.mi.nl=true;this.mi.nm=this.mk;this.mk.HXb(true);if(this.nh)this.HXP(1,0,1);}}
asadarnell
RE: How The Popups Menu Is Work? 27 Sep, 2007 - 04:24 AM
D.I.C Head
Joined: 30 Aug, 2007
Posts: 108
My Contributions
QUOTE(LadyMiaka86 @ 26 Sep, 2007 - 06:46 PM)
Hi.. I need some help and I would like to ask how my popups menu will working because when I running the script, it doesn't work and the menu isn't appear... Here the code..
menu.php
CODE
<html> <head> <script type="text/javascript"> <!-- if(window.event + "" == "undefined") event = null; function HM_f_PopUp(){return false}; function HM_f_PopDown(){return false}; // --> </script> </head> <body> <script type="text/javascript"> <!-- HM_ConfigFiles="hmcentral.js,popups.js"; // --> </script> <table width="973" border="0"> <tr> <<td width="136"> <a href="index.php"><img src="Images/lamanUtama.jpg" alt="" width="143" height="26" border="0"></a></td> <td width="107"> <a onmouseover="HM_f_PopUp('afats_16',event)" onmouseout="HM_f_PopDown('afats_16')"> <img src="Images/afats16.jpg" width="107" height="26" alt="" id="afats_16"></a></td> <td width="107"> <a onmouseover="HM_f_PopUp('daftar',event)" onmouseout="HM_f_PopDown('daftar')"> <img src="Images/daftar.jpg" width="107" height="26" alt="" id="daftar"></a></td> <td width="94"> <img src="Images/berita.jpg" width="107" height="26" alt=""></td> <td width="120"> <a onmouseover="HM_f_PopUp('aktiviti',event)" onmouseout="HM_f_PopDown('aktiviti')"> <img src="Images/aktiviti.jpg" width="107" height="26"></a></td> <td width="118"> <a onmouseover="HM_f_PopUp('galeri',event)" onmouseout="HM_f_PopDown('galeri')"> <img src="Images/galeri.jpg" width="118" height="26" alt="" id="galeri"></a></td> <td width="107"> <a onmouseover="HM_f_PopUp('link',event)" onmouseout="HM_f_PopDown('link')"> <img src="Images/link.jpg" width="107" height="26" alt="" id="link"></a></td> <td width="107"> <a onmouseover="HM_f_PopUp('akhbar',event)" onmouseout="HM_f_PopDown('akhbar')"> <img src="Images/akhbar.jpg" width="107" height="26" alt="" id="akhbar"></a></td> <td width="94"> <img src="Images/forum.jpg" width="107" height="26" alt=""></td> <td width="150"> <img src="Images/hubungiKami.jpg" width="155" height="26" alt=""></td> </tr> </table> <script type="text/javascript" language="JavaScript1.2" src="Images/HM_Loader.js"> </script><script src="Images/HM_ScriptDOM.js" type="text/javascript"> </script> <script src="Images/hmcentral.js" type="text/javascript"> </script> <script src="Images/popups.js" type="text/javascript"> </script> </body> </html>
hmcentral.js
CODE
function HM_fc_LL(menuname,linkname,on) { var theLink=(document.getElementById)?document.getElementById(linkname): (document.all)?document.all(linkname):null; if(theLink) theLink.style.color=(on)?"#FFFF66":""; if(window.HM_b_CallToggle) HM_f_ToggleElementList(!on,['select'],'tag'); } function HM_f_DoNothing() {return;} if(typeof(HM_f_UpdateDefaults)=="undefined") { HM_f_UpdateDefaults=HM_f_DoNothing; HM_f_SetMenuTemplate=HM_f_DoNothing; HM_f_SetMenus=HM_f_DoNothing; HM_f_SetItems=HM_f_DoNothing; HM_NS4=HM_IE4=HM_IE55=false; } HM_NB=(HM_NS4||HM_IE4); HM_f_UpdateDefaults({ MenuWidth:150, ClickKill:0, MilliSecondsVisible:300, ScrollEnabled:1, ScrollOver:1, ScrollBothBars:1, ScrollInterval:20, FontWeight:"normal", FontColor:"blue", FontColorOver:"blue", BGColor:"#dddddd", BGColorOver:"#ffcccc", BorderColor:"black", SeparatorSize:2, SeparatorColor:"#d0ff00", KeepHilite:1, ShowLinkCursor:1, CreateOnLoad:false, NSFontOver:1 }); HM_f_SetMenuTemplate({ MenuPaddingTop:2, MenuPaddingLeft:2, MenuPaddingBottom:2, MenuPaddingRight:2, MenuBGColor:"#999689", SeparatorColor:"black", FontWeight:"bold", FontColor:"white", FontColorOver:"white", FontColorSelected:(HM_NB)?"#FFFF66":"white", BGColor:"#999689", BGColorOver:(HM_NB)?"#663300":"#999689", BGColorSelected:(HM_NB)?"#663300":"#999689", ItemPadding:(HM_NB)?2:0, ButtonClass:"mbc1", ButtonClassOver:"mbc2", ButtonClassSelected:"mbc3", MenuOpacity:.9, FontFamily:"Verdana, Helvetica, sans-serif", FontSize:"12px", IEFilters:"progid:DXImageTransform.Microsoft.DropShadow(color='#66999999')", VariableWidthMinimum:150, MenuWidth:250, IsVariableWidth:1, ImageHorizSpace:3, StatusDisplayBuild:0, SeparatorSize:(HM_NB)?1:0 }); HM_f_SetMenus( {MenuID:"hm_m_latest",TopMenuY:"HM_f_GetElementXY('hm_l_latest','y')", TopMenuX:150,MenuWidth:150,CreateOnLoad:(window.HM_IE55)?1:0, ButtonClass:"mbc4",ButtonClassOver:"mbc5",ButtonClassSelected:"mbc6", TopUponDisplay:"HM_fc_LL('hm_m_latest','hm_l_latest',true)", TopUponHide:"HM_fc_LL('hm_m_latest','hm_l_latest',false)"}, {MenuID:"hm_m_about",TopMenuY:"HM_f_GetElementXY('hm_l_about','y')", TopMenuX:150,MenuWidth:150, ButtonClass:"mbc4",ButtonClassOver:"mbc5",ButtonClassSelected:"mbc6", TopUponDisplay:"HM_fc_LL('hm_m_about','hm_l_about',true)", TopUponHide:"HM_fc_LL('hm_m_about','hm_l_about',false)"}, {MenuID:"hm_m_faq",TopMenuY:"HM_f_GetElementXY('hm_l_faq','y')", TopMenuX:150,MenuWidth:150, ButtonClass:"mbc4",ButtonClassOver:"mbc5",ButtonClassSelected:"mbc6", TopUponDisplay:"HM_fc_LL('hm_m_faq','hm_l_faq',true)", TopUponHide:"HM_fc_LL('hm_m_faq','hm_l_faq',false)"}, {MenuID:"hm_m_issues",TopMenuY:"HM_f_GetElementXY('hm_l_issues','y')", TopMenuX:150,MenuWidth:150, ButtonClass:"mbc4",ButtonClassOver:"mbc5",ButtonClassSelected:"mbc6", TopUponDisplay:"HM_fc_LL('hm_m_issues','hm_l_issues',true)", TopUponHide:"HM_fc_LL('hm_m_issues','hm_l_issues',false)"}, {MenuID:"hm_m_bulletins",TopMenuY:"HM_f_GetElementXY('hm_l_bulletins','y')", TopMenuX:150, TopUponDisplay:"HM_fc_LL('hm_m_bulletins','hm_l_bulletins',true)", TopUponHide:"HM_fc_LL('hm_m_bulletins','hm_l_bulletins',false)"}, {MenuID:"hm_m_docs",TopMenuY:"HM_f_GetElementXY('hm_l_docs','y')", TopMenuX:150,BaseURL:"/documentation/", TopUponDisplay:"HM_fc_LL('hm_m_docs','hm_l_docs',true)", TopUponHide:"HM_fc_LL('hm_m_docs','hm_l_docs',false)"}, {MenuID:"hm_m_samples",TopMenuY:"HM_f_GetElementXY('hm_l_samples','y')", TopMenuX:150,BaseURL:"/samples/", TopUponDisplay:"HM_fc_LL('hm_m_samples','hm_l_samples',true)", TopUponHide:"HM_fc_LL('hm_m_samples','hm_l_samples',false)"} ); HM_f_SetItems( {MenuID:"hm_m_latest",TextAlign:"center",DisplayText:"Basic information pertaining to the latest release of HierMenus",IsPermHilite:1,IsRollover:0,LinkURL:"/latest/"}, {MenuID:"hm_m_about",TextAlign:"center",DisplayText:"Contact information, features and benefits of the HierMenus script",IsPermHilite:1,IsRollover:0,LinkURL:"/about/"}, {MenuID:"hm_m_faq",TextAlign:"center",DisplayText:"Got a question?<br />Our Frequently Asked Questions list is the place to start",IsPermHilite:1,IsRollover:0,LinkURL:"/faq/"}, {MenuID:"hm_m_issues",TextAlign:"center",DisplayText:"Having a problem?<br />Check out this browser-by-browser list of known HierMenus issues",IsPermHilite:1,IsRollover:0,LinkURL:"/issues/"} ); HM_f_SetItems( {MenuID:"hm_m_bulletins",DisplayText:"Release Notes",ChildID:"hm_m_rnotes"}, {MenuID:"hm_m_bulletins",DisplayText:"Tutorials",ChildID:"hm_m_tutorials"} ); HM_f_SetMenus( {MenuID:"hm_m_archive",BaseURL:"/documentation/archive/"}, {MenuID:"hm_m_ref",BaseURL:"/documentation/reference/", ButtonClass:"mbc4",ButtonClassOver:"mbc5",ButtonClassSelected:"mbc6"}, {MenuID:"hm_m_setup",BaseURL:"/documentation/setup/", ButtonClass:"mbc4",ButtonClassOver:"mbc5",ButtonClassSelected:"mbc6"}, {MenuID:"hm_m_rnotes",BaseURL:"/bulletins/"}, {MenuID:"hm_m_tutorials",BaseURL:"/bulletins/"} ); HM_f_SetItems( {MenuID:"hm_m_rnotes",DisplayText:"HierMenus 6.0.2",LinkURL:"16/"}, {MenuID:"hm_m_rnotes",DisplayText:"HierMenus 6.0.1",LinkURL:"15/"}, {MenuID:"hm_m_rnotes",DisplayText:"HierMenus 6.0",LinkURL:"14/"}, {MenuID:"hm_m_rnotes",DisplayText:"HierMenus 5.3.1",LinkURL:"10/"}, {MenuID:"hm_m_rnotes",DisplayText:"HierMenus 5.3",LinkURL:"9/"}, {MenuID:"hm_m_rnotes",DisplayText:"HierMenus 5.2.1",LinkURL:"8/"}, {MenuID:"hm_m_rnotes",DisplayText:"HierMenus 5.2",LinkURL:"7/"}, {MenuID:"hm_m_rnotes",DisplayText:"HierMenus 5.1",LinkURL:"5/"}, {MenuID:"hm_m_rnotes",DisplayText:"HierMenus 5.0.1",LinkURL:"3/"}, {MenuID:"hm_m_rnotes",DisplayText:"HierMenus 5.0",LinkURL:"2/"} ); HM_f_SetItems( {MenuID:"hm_m_tutorials",DisplayText:"Version 6 Preview",LinkURL:"13/"}, {MenuID:"hm_m_tutorials",DisplayText:"Synchronized Rollovers",LinkURL:"12/"}, {MenuID:"hm_m_tutorials",DisplayText:"When TLC Isn't Enough",LinkURL:"11/"}, {MenuID:"hm_m_tutorials",DisplayText:"Hiding Page Elements",LinkURL:"6/"}, {MenuID:"hm_m_tutorials",DisplayText:"Conditional Parameters",LinkURL:"4/"}, {MenuID:"hm_m_tutorials",DisplayText:"Adding Opera (HM5)",LinkURL:"1/"} ); HM_f_SetItems( {MenuID:"hm_m_docs",DisplayText:"Setting Up",LinkURL:"setup/",ChildID:"hm_m_setup"}, {MenuID:"hm_m_docs",DisplayText:"Reference",LinkURL:"reference/",ChildID:"hm_m_ref"}, {MenuID:"hm_m_docs",DisplayText:"Archive",LinkURL:"archive/",ChildID:"hm_m_archive"}, {MenuID:"hm_m_docs",DisplayText:"Upgrading",LinkURL:"upgrade/"}, {MenuID:"hm_m_docs",DisplayText:"Compatibility",LinkURL:"compatibility/"} ); HM_f_SetItems( {MenuID:"hm_m_archive",DisplayText:"HM Version 4",LinkURL:"v4/"}, {MenuID:"hm_m_archive",DisplayText:"HM Version 5",LinkURL:"v5/"} ); HM_f_SetItems( {MenuID:"hm_m_ref",TextAlign:"center",DisplayText:"Parameter Reference",IsPermHilite:1,IsRollover:0}, {MenuID:"hm_m_ref",DisplayText:"By Topic",LinkURL:"index.html#topical"}, {MenuID:"hm_m_ref",DisplayText:"Alphabetically",LinkURL:"index.html#alpha"}, {MenuID:"hm_m_ref",TextAlign:"center",DisplayText:"Mini-Tutorials",IsPermHilite:1,IsRollover:0}, {MenuID:"hm_m_ref",DisplayText:"Menu Positioning",LinkURL:"menupositioning.html"}, {MenuID:"hm_m_ref",DisplayText:"Using Classes",LinkURL:"usingclasses.html"}, {MenuID:"hm_m_ref",DisplayText:"Custom Transitions",LinkURL:"customtransitions.html"}, {MenuID:"hm_m_ref",DisplayText:"Menu Event Hooks",LinkURL:"menueventhooks.html"} ); HM_f_SetItems( {MenuID:"hm_m_setup",DisplayText:"Installing the Scripts",LinkURL:"installing.html"}, {MenuID:"hm_m_setup",DisplayText:"Creating a Configuration File",LinkURL:"configuring.html"}, {MenuID:"hm_m_setup",DisplayText:"Applying HM to Pages",LinkURL:"applying.html"}, {MenuID:"hm_m_setup",TextAlign:"center",DisplayText:"Advanced Topics",IsPermHilite:1,IsRollover:0}, {MenuID:"hm_m_setup",DisplayText:"Custom Code",LinkURL:"customcode.html"}, {MenuID:"hm_m_setup",DisplayText:"HM and Databases",LinkURL:"database.html"}, {MenuID:"hm_m_setup",DisplayText:"Disabling a Browser",LinkURL:"disabling.html"}, {MenuID:"hm_m_setup",DisplayText:"Using v4/5 Arrays",LinkURL:"usingarrays.html"}, {MenuID:"hm_m_setup",DisplayText:"Page Specific Variables",LinkURL:"pagespecific.html"}, {MenuID:"hm_m_setup",DisplayText:"Earlier Image Preloading",LinkURL:"pagepreload.html"}, {MenuID:"hm_m_setup",DisplayText:"The Space Optimized Code Set:<br />Developer's Considerations",LinkURL:"spaceoptimized.html#developer"} ); HM_f_SetItems( {MenuID:"hm_m_samples",DisplayText:"Popup Menus",LinkURL:"popups.html"}, {MenuID:"hm_m_samples",DisplayText:"Permanent Menus",LinkURL:"permmenus.html"}, {MenuID:"hm_m_samples",DisplayText:"Cross Frames",LinkURL:"crossframes.html"}, {MenuID:"hm_m_samples",DisplayText:"Transitions and Filters",LinkURL:"transfilters.html"}, {MenuID:"hm_m_samples",DisplayText:"Image Rollovers",LinkURL:"imagerollovers.html"}, {MenuID:"hm_m_samples",DisplayText:"Background Images",LinkURL:"bgimages.html"}, {MenuID:"hm_m_samples",DisplayText:"Buttons",LinkURL:"buttons.html"}, {MenuID:"hm_m_samples",DisplayText:"Fixed Position /<br />Reposition On Scroll",LinkURL:"fixedscroll.html"}, {MenuID:"hm_m_samples",DisplayText:"Sliding Menus",LinkURL:"sliding.html"}, {MenuID:"hm_m_samples",DisplayText:"IFRAME Masking",LinkURL:"iframe.html"}, {MenuID:"hm_m_samples",DisplayText:"Featured Sites",BaseURL:"",LinkURL:"/sites/"} );
popups.js
CODE
function HM_f_DoNothing() {return;} if(typeof(HM_f_UpdateDefaults)=="undefined") { HM_f_UpdateDefaults=HM_f_DoNothing; HM_f_SetMenuTemplate=HM_f_DoNothing; HM_f_SetMenus=HM_f_DoNothing; HM_f_SetItems=HM_f_DoNothing; HM_NS4=HM_IE4=false; } HM_f_SetMenuTemplate({ SeparatorColor:"black", FontWeight:"bold", FontColor:"white", FontColorOver:"white", FontColorSelected:"#FFFF66", BGColor:"#999689", BGColorOver:"#FF9900", BGColorSelected:"#663300", ItemPadding:2, FontFamily:"Verdana, Helvetica, sans-serif", FontSize:"12px", MilliSecondsVisible:500, SeparatorSize:1 }); HM_f_SetMenus( {MenuID:"afats_16"}, (MenuID:"afats_menu"}, {MenuID:"daftar"}, {MenuID:"aktiviti"}, {MenuID:"aktiviti_menu"} {MenuID:"galeri"}, {MenuID:"galeri_menu"}, (MenuID:"link"}, (MenuID:"akhbar"}, {MenuID:"new"}, {MenuID:"hm_m_main2",ClickStart:1}, {MenuID:"hm_m_bulletins1"}, {MenuID:"hm_m_docs1"}, {MenuID:"hm_m_docs2",ClickStart:1}, {MenuID:"hm_m_samples1"}, {MenuID:"hm_m_samples2",ClickStart:1, TopKeepInWindowX:0,TopKeepInWindowY:0, TopMenuX:"HM_f_GetElementXY('hm_l_samples2','x')+20", TopMenuY:"HM_f_GetElementXY('hm_l_samples2','y')+4"} ); HM_f_SetMenus({ MenuID:"afats_16", IsPermanent:false, TopMenuX:"HM_f_GetElementXY('afats_16','x')", TopMenuY:"HM_f_GetElementXY('afats_16','y')+32", ChildOffset:10, ChildOverlap:20 }); HM_f_SetMenus({ MenuID:"afats_menu", IsPermanent:false, TopMenuX:"HM_f_GetElementXY('afats_menu','x')", TopMenuY:"HM_f_GetElementXY('afats_menu','y')+32", ChildOffset:10, ChildOverlap:20 }); HM_f_SetMenus({ MenuID:"daftar", IsPermanent:false, TopMenuX:"HM_f_GetElementXY('daftar','x')", TopMenuY:"HM_f_GetElementXY('daftar','y')+32", ChildOffset:10, ChildOverlap:20 }); HM_f_SetMenus({ MenuID:"aktiviti", IsPermanent:false, TopMenuX:"HM_f_GetElementXY('aktiviti','x')", TopMenuY:"HM_f_GetElementXY('aktiviti','y')+32", ChildOffset:10, ChildOverlap:20 }); HM_f_SetMenus({ MenuID:"aktiviti_menu", IsPermanent:false, TopMenuX:"HM_f_GetElementXY('aktiviti_menu','x')", TopMenuY:"HM_f_GetElementXY('aktiviti_menu','y')+32", ChildOffset:10, ChildOverlap:20 }); HM_f_SetMenus({ MenuID:"galeri", IsPermanent:false, TopMenuX:"HM_f_GetElementXY('galeri','x')", TopMenuY:"HM_f_GetElementXY('galeri','y')+32", ChildOffset:10, ChildOverlap:20 }); HM_f_SetMenus({ MenuID:"galeri_menu", IsPermanent:false, TopMenuX:"HM_f_GetElementXY('galeri_menu','x')", TopMenuY:"HM_f_GetElementXY('galeri_menu','y')+32", ChildOffset:10, ChildOverlap:20 }); HM_f_SetMenus({ MenuID:"link", IsPermanent:false, TopMenuX:"HM_f_GetElementXY('link','x')", TopMenuY:"HM_f_GetElementXY('link','y')+32", ChildOffset:10, ChildOverlap:20 }); HM_f_SetMenus({ MenuID:"akhbar", IsPermanent:false, TopMenuX:"HM_f_GetElementXY('akhbar','x')", TopMenuY:"HM_f_GetElementXY('akhbar','y')+32", ChildOffset:10, ChildOverlap:20 }); HM_f_SetItems( {MenuID:"afats_16",DisplayText:"Piagam AFATS",LinkURL:"piagam.php"}, {MenuID:"afats_16",DisplayText:"Sejarah Penubuhan AFATS",LinkURL:"sejarah.php"}, {MenuID:"afats_16",DisplayText:"Cogan Kata",LinkURL:"cogankata.php"}, {MenuID:"afats_16",DisplayText:"Matlamat Seorang Perantis",LinkURL:"matlamat.php"}, {MenuID:"afats_16",DisplayText:"Kata-kata Kenangan",LinkURL:"kata.php"}, {MenuID:"afats_16",DisplayText:"Logo",LinkURL:"logo.php"}, {MenuID:"afats_16",DisplayText:"Organisasi",LinkURL:"organisasi.php"}, (MenuID:"afats_16",DisplayText:"Rakan AFATS Yang Lain",LinkURL:""ChildID:"afats_menu"}, ); HM_f_SetItems( {MenuID:"afats_menu",DisplayText:"X-AFATS Intake 3",LinkURL:"http://maxpages.com/afats3rdintake/"}, {MenuID:"afats_menu",DisplayText:"X-AFATS Intake 7",LinkURL:"http://zainalpc3.fotopages.com"}, {MenuID:"afats_menu",DisplayText:"X-AFATS Intake 9",LinkURL:"http://www.afats9.blogspot.com/"}, {MenuID:"afats_menu",DisplayText:"X-AFATS Intake 15",LinkURL:"http://afats15.tripod.com/"}, {MenuID:"afats_menu",DisplayText:"X-AFATS Intake 23",LinkURL:"http://www.x-afats23.blogspot.com/"} ); HM_f_SetItems( {MenuID:"daftar",DisplayText:"Pendaftaran",LinkURL:"pendaftaran.php"}, {MenuID:"daftar",DisplayText:"Senarai Ahli",LinkURL:"ahli.php"}, ); HM_f_SetItems( {MenuID:"aktiviti",DisplayText:"Aktiviti Terbaru",LinkURL:""ChildID:"aktiviti_menu"}, {MenuID:"aktiviti",DisplayText:"Aktiviti Akan Datang",LinkURL:""ChilID:"aktiviti_menu"}, ); HM_f_SetItems( {MenuID:"aktiviti_menu",DisplayText:"Negeri",LinkURL:"aktiviti.php?year=2007"}, (MenuID:"aktiviti_menu",DisplayText:"Afats",LinkURL:""}, ); HM_f_SetItems( {MenuID:"galeri",DisplayText:"Kenangan Terindah",LinkURL:"gambarLama.php"}, {MenuID:"galeri",DisplayText:"Gambar Baru",LinkURL:""ChildID:"galeri_menu"}, {MenuID:"galeri",DisplayText:"Video",LinkURL:""ChildID:"galeri_menu"}, ); HM_f_SetItems( {MenuID:"galeri_menu",DisplayText:"Negeri",LinkURL:"galeri.php?year=2007"}, (MenuID:"galeri_menu",DisplayText:"Afats",LinkURL:""}, ); HM_f_SetItems( {MenuID:"link",DisplayText:"Angkata Tentera Malaysia",LinkURL:"http://maf.mod.gov.my/"}, {MenuID:"link",DisplayText:"Tentera Darat Malaysia",LinkURL:"http://army.mod.gov.my/"}, {MenuID:"link",DisplayText:"Tentera Laut Diraja Malaysia",LinkURL:"http://navy.mod.gov.my/"}, {MenuID:"link",DisplayText:"Perbadanan Hal Ehwal Bekas Angkatan Tentera (PERHEBAT)",LinkURL:"http://www.perhebat.net.my/"}, {MenuID:"link",DisplayText:"Pertahanan Angkatan Tentera (MPAT)",LinkURL:"http://mpat.mod.gov.my/"}, {MenuID:"link",DisplayText:"Akademi Angkatan Tentera Malaysia (ATMA)",LinkURL:"http://www.atma.gov.my/"}, {MenuID:"link",DisplayText:"Maktab Tentera Diraja (MTD)",LinkURL:"http://www.rmc.edu.my/mtd/"}, {MenuID:"link",DisplayText:"Institut latihan Kesihatan (INSAN)",LinkURL:"http://maf.mod.gov.my/institut_latihan/INSAN/utama.htm"}, {MenuID:"link",DisplayText:"Pusat Latihan Pengaman Malaysia (PLPM)",LinkURL:"http://maf.mod.gov.my/plpm/index.html"}, {MenuID:"link",DisplayText:"Kor Agama Angkatan Tentera (KAGAT)",LinkURL:"http://maf.mod.gov.my/kagat/index.html"} ); HM_f_SetItems( {MenuID:"akhbar",DisplayText:"Utusan Malaysia",LinkURL:"http://www.utusan.com.my"}, {MenuID:"akhbar",DisplayText:"Berita Harian",LinkURL:"http://www.bharian.com.my"}, {MenuID:"akhbar",DisplayText:"Harian Metro",LinkURL:"http://www.hmetro.com.my"}, {MenuID:"akhbar",DisplayText:"The Star",LinkURL:"http://www.thestar.com.my"}, {MenuID:"akhbar",DisplayText:"New Straits Times",LinkURL:"http://www.nstp.com.my"}, {MenuID:"akhbar",DisplayText:"The Malay Mail",LinkURL:"http://www.mmail.com.my"} );
HM_Loader.js
CODE
/* HM_Loader.js * HierMenus Version 6 * Copyright 2004 Jupitermedia Corporation */ HM_UserAgent = navigator.userAgent; HM_DOM = (document.getElementById) ? true : false; HM_NS4 = (document.layers) ? true : false; HM_IE = (document.all) ? true : false; HM_IE4 = HM_IE && !HM_DOM; HM_Mac = (navigator.appVersion.indexOf("Mac") != -1); HM_IE4M = HM_IE4 && HM_Mac; HM_IsSafari = ((HM_DOM)&& (parseInt(navigator.productSub)>=20020000)&& (navigator.vendor.indexOf("Apple Computer")!=-1)); if(HM_IsSafari) { HM_BrowserPattern = /Safari\/(\d+)/; HM_Matches = HM_UserAgent.match(HM_BrowserPattern); if (HM_Matches&&HM_Matches[1]) HM_BrowserVersion = (HM_Matches[1]-0); else HM_BrowserVersion = 0; } HM_Opera = (window.opera) ? true : false; if(HM_IsSafari||HM_Opera) { HM_IE=HM_NS4=HM_IE4=HM_IE4M=false; if(HM_IsSafari) HM_Mac=true; } HM_IE5M = (HM_IE&&HM_Mac&&HM_DOM); if(HM_Opera) { HM_BrowserPattern = /Opera(\/| )(\d+.*)/; HM_VersionSupported = 7; } HM_Konqueror = (HM_UserAgent.indexOf("Konqueror")!=-1); if(HM_Konqueror) { HM_BrowserPattern = /(Konqueror\/)(\d+.*)/; HM_VersionSupported = 3.2; } if(HM_Opera || HM_Konqueror) { if (HM_UserAgent.match) { HM_Matches = HM_UserAgent.match(HM_BrowserPattern); if (HM_Matches&&HM_Matches[2]) { HM_BrowserVersion = parseFloat(HM_Matches[2]); } else HM_BrowserVersion = 0; HM_IsMenu = (HM_BrowserVersion >= HM_VersionSupported); } else { HM_BrowserVersion = 0; HM_IsMenu = false; } } else { HM_BrowserVersion = 0; HM_IsMenu = !HM_IE4M && !HM_IE5M && (HM_DOM || HM_NS4 || HM_IE4 ); } if(window.event + "" == "undefined") event = null; // function HM_f_PopUp(){return false}; // function HM_f_PopDown(){return false}; popUp = HM_f_PopUp; popDown = HM_f_PopDown; // Configuration block. The following 6 variables should be configured // to match your default preferences. You can then override the settings // on a page by page basis by providing values for the variables in any // JavaScript segment that is loaded BEFORE this one. These variables // are the ONLY variables you should alter in this file. if(typeof(window.HM_ScriptDir)=="undefined") HM_ScriptDir = "/_hm/scripts/v602/"; if(typeof(window.HM_ImageDir)=="undefined") HM_ImageDir = "images/"; if(typeof(window.HM_ConfigDir)=="undefined") HM_ConfigDir = "/_hm/configs/"; if(typeof(window.HM_ConfigFiles)=="undefined") HM_ConfigFiles = "hmcentral.js"; if(typeof(window.HM_ConfigType)=="undefined") HM_ConfigType = "default"; if(typeof(window.HM_FramesEnabled)!="boolean") HM_FramesEnabled = false; // Custom functions. We recommend that you delete any of these // that you have no use for, to reduce the overall download times // of the scripts. (Be sure to save yourself a copy, in case // you decide you want to use them in the future!) // The following function is included to illustrate the JS // expression handling of the MenuX and MenuY parameters. // It returns a centered horizontal position for the menu. function HW(kx){var b=0;var c=Hms[kx];var d=HM_DOM?parseInt(c.mh.style.width)+((Hjt||Hju)?0:c.sz+c.sx):HM_IE4?c.mh.style.pixelWidth:c.mh.clip.width; var gh=HM_IE?(HM_DOM?Hh.clientWidth:Hg.document.body.clientWidth):(Hg.document.body&&Hg.document.body.clientWidth)?Hg.document.body.clientWidth:Hg.innerWidth;return Math.max(parseInt((gh-d)/2),b);} HM_f_CenterMenu=HW; // The following three functions can be used in combination to // produce "sliding" menus; menus that slide in and out to their // desired locations. The "SetSlide" and "KillSlide" functions // are the required interface functions for HierMenus, and the // SlideMoveTo function does the actual work. To activate these // routines on a menu, you would add (as an example) // "ScrollEnabled:1,setTrans:HM_f_SetSlide,killTrans:HM_f_KillSlide,SlideInFrom:'left'" // to the menu definitions, in addition to the SlideIn/SlideOutInterval, // and SlideIn/SlideOutPercent variables (all of which will assume // defaults if not set). Note that for these particular transitions // to work, ScrollEnabled must be true on the menu. Hvq=(HM_DOM&&((navigator.productSub&&(navigator.productSub<20021130))||((/^Netscape/.test(navigator.vendor))&&(navigator.vendorSub==7.02))||(navigator.vendor=="Camino"&&(navigator.vendorSub<=.7)))); function HM_f_SetSlide(on){this.HYD();if(Hvq||(on&&!this.vm)||(!on&&!this.vn)){this.HYF(on);return;}else{var ve=(on?this.vm:this.vn);var vb script:void(0)";this.rt.frameBorder=0;this.rt.style.position="absolute";this.rt.style.visibility="hidden"; this.rt.style.left=(HXN())?"0px":"-500px";this.rt.style.top="-2000px";this.rt.style.width="100px";this.rt.style.height="100px";this.rt.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=0)";this.rt.allowTransparency=false; if(this.UseInsert)Hg.document.body.insertBefore(this.rt,Hg.document.body.firstChild);else Hg.document.body.appendChild(this.rt);}} // End custom functions HM_IsMenu=(HM_Konqueror&&HM_FramesEnabled)?false:HM_IsMenu; if(HM_IsMenu) { HM_BrowserString = HM_NS4 ? "NS4" : HM_Opera ? "OPR" : HM_DOM ? "DOM" : "IE4"; HM_aConfigs = HM_ConfigFiles.split(','); HM_WriteString = '<scr'+'ipt src="' + HM_ScriptDir + 'HM_Script' + HM_BrowserString + '.js" type="text/javascript">'+"\n"+'<\/scr'+'ipt>'+"\n"; document.write(HM_WriteString); for(var i=0; i<HM_aConfigs.length; i++) { HM_WriteString = '<scr'+'ipt src="' + HM_ConfigDir + HM_aConfigs[i] + '" type="text/javascript">'+"\n"+'<\/scr'+'ipt>'+"\n"; if(HM_aConfigs[i]) document.write(HM_WriteString); } if(HM_ConfigType=="arrays") { HM_WriteString = '<scr'+'ipt src="' + HM_ScriptDir + 'HM_ConvertArrays.js" type="text/javascript">'+"\n"+'<\/scr'+'ipt>'+"\n" document.write(HM_WriteString); } }
HM_ScriptDOM.js
CODE
/*HM_ScriptDOM.js * HierMenus Version 6 * Copyright 2004 Jupitermedia Corporation. All Rights Reserved. * Originally published and documented at [url=http://www.hiermenuscentral.com/]http://www.hiermenuscentral.com/[/url] * Available solely from Jupitermedia Corporation under exclusive license. * Contact hiermenus1@jupitermedia.com for more information. */ Hi="6.02";HM_IsSafari=((parseInt(navigator.productSub)>=20020000)&& (navigator.vendor.indexOf("Apple Computer")!=-1)); if(HM_IsSafari){HM_BrowserPattern=/Safari\/(\d+)/;HM_Matches=HM_UserAgent.match(HM_BrowserPattern);if(HM_Matches&&HM_Matches[1])HM_BrowserVersion=(HM_Matches[1]-0);else HM_BrowserVersion=0;} HM_NS6=((navigator.product=="Gecko")||(HM_IsSafari)); if(HM_NS6)HM_IE=HM_Konqueror=false;else if(HM_Konqueror)HM_IE=HM_NS6=HM_IsSafari=false;HM_IE5W=HM_IE&&!HM_Mac;HM_IE50W=(HM_IE5W&&/MSIE\s*5(\.0|\s+)/i.test(HM_UserAgent))?true:false;HM_IE55=(HM_IE5W&&!HM_IE50W); HM_IEpos=!HM_NS6||(parseInt(navigator.productSub)>=20010710);Hjf=(parseInt(navigator.productSub)<20010726);Hju=false;Hld=(parseInt(navigator.productSub)>=20020823); if(HM_IsSafari&&(HM_BrowserVersion<100))Hld=false;Hl3="HM_Img";Hl2=new RegExp("^("+Hl3+"\\d+).*$");HM_BackgroundSupport=!HM_NS6||(parseInt(navigator.productSub)>20010726); function HXN(){var jp=Hg.document.body;while(!jp.dir&&jp.parentNode)jp=jp.parentNode;return((typeof(jp.dir)=="string")&&(/^rtl$/i.test(jp.dir)))?true:false;} Hh=null;Hat=false;Hjh=false;Hg=window;Hji=false;Hav=["permission","access","security","unsafe"];Hjj=true;Hjk=null;Hay=false;Hjm=false;Hax=true;Hjn=[];Hk3=false;Hsk=null;Hsl=0;Hsm=0; function HWR(el){Hjn[Hjn.length]=el;} function HWS(){Hkb=Hkc=Hkd=Hke=Hkf=Hkg=null;Hbg=null;Hku=null;var jo=Hjn.length;for(var i=jo-1;i>=0;i--){var jp=Hjn[i];if(jp){var mf=(jp.mg)?jp.mg:(jp.mh)?jp.mh:null;if(mf){mf.onmouseenter=null;mf.onmouseleave=null;mf.onmouseover=null;mf.onmouseout=null; mf.onclick=null;mf.onmousedown=null;mf.onselectstart=null;mf.onmousewheel=null;mf.mi=null;mf.mj=null;mf.sp=null;mf=null;}jp.rt=null;if(jp.uv){jp.uv.onmouseover=null;jp.uv.onmouseout=null;jp.uv=null;}jp.er=null;jp.kk=null;jp.nu=null;jp.mk=null; jp.siblingBelow=null;jp.mm=null;jp.cs=null;jp.Fs=null;jp.Ft=null;jp.lv=null;jp.mi=null;jp.mh=null;jp.mj=null;jp.mg=null;jp=null;}Hjn[i]=null;}Hjn=[];Hsk=null;} function HW4(){HWS();Hbi=false;Hbj=false;Hbd=null;Hbk=5000;Hbl=null;} HW4(); function HW5(){if(typeof(window.HM_o_PageDefaults)=="object")HM_f_UpdateDefaults(HM_o_PageDefaults);if(HM_FramesEnabled){if((parent==self)||(!Hmr.qp)){HM_FramesEnabled=false;}}Hay=true;HW4();Hbi=HW8();Hax=false;Hat=true;Hjj=false;Hay=false;return Hbi;} function HXD(){return true;} function HXC(){HWt();return true;} function HXS(jp,mo,mp,mq){if(jp.attachEvent)jp.attachEvent("on"+mo,mp);else if(jp.addEventListener)jp.addEventListener(mo,mp,mq);else jp["on"+mo]=mp;} function HXT(jp,mo,mp,mq){if(jp.detachEvent)jp.detachEvent("on"+mo,mp);else if(jp.removeEventListener)jp.removeEventListener(mo,mp,mq);else jp["on"+mo]=null;} function HWT(){if((typeof(Hg.document.body)=="undefined")||(Hg.document.body==null))return false;Hjr=(HM_IE&&Hg.document.compatMode)?Hg.document.compatMode=="CSS1Compat":false; Hjs=(HM_IE&&Hg.document.doctype)?Hg.document.doctype.name.indexOf(".dtd")!=-1:Hjr;Hjt=(HM_IE)&&!Hjs;Hlu=(HM_NS6&&!HM_IsSafari&&(parseInt(navigator.productSub)<20030312)&&HXN());Hjh=(typeof(Hg.document.body.onmouseenter)!="undefined"); if(HM_IE||HM_Konqueror)Hh=Hjr?Hg.document.documentElement:Hg.document.body;if(Hk3)HXS(Hg.document,"mousedown",HXC,false);var iu=Hg;if(HM_Konqueror)HXS(document,"resize",HWN,false);else HXS(iu,"resize",HWN,false);if(HM_FramesEnabled)HXS(iu,"unload", HWO,false);Hg.Hlc=true;Hg.HM_MainUnloadHandler=HWO;if(Hmr.R===null)Hmr.R=HXN();return true;} function HW8(){var gb=false;if(HM_FramesEnabled){var bs=parent.frames[Hmr.qq];if(typeof bs=="undefined"){HM_FramesEnabled=false;var k9=HXF();}else{Hg=bs;var k9=HXF();if(!Hjm){if(Hld){var jv=parent.document.getElementsByName(Hmr.qq)[0]; if(HM_IsSafari)jv.onload=HW5;else HXS(jv,"load",HW5,false);Hji=true;}else if(parent.HM_UseFrameLoad&&!HM_IsSafari){Hji=true;parent.HM_f_LoadMenus=HW5;}Hjm=true;if(k9){var iu=Hg;HXT(iu,"unload",Hg.HM_MainUnloadHandler,false);HXS(iu,"unload",HWO, false);Hg.location.replace(Hg.location.href);return false;}}}}else{var k9=HXF();}try{var jy=typeof(Hg.document);}catch(e){gb=HX2(e);}if(gb)return false;else gb=false;if(HM_IE){if(typeof(Hg.document)=="unknown")return false; if(Hg.document.readyState!="complete")return false;}try{var Initialized=k9?false:HWT();}catch(e){gb=HX2(e);}if(gb||!Initialized)return false;HY5();return true;} function HW9(ix){if(!HWU())return null;if(Hms[ix])return Hms[ix];else return null;} function HWU(){var jw=false;var jx=null;try{var jy=typeof(Hg.document);if((HM_IE)&&(typeof(Hg.document)=="unknown"))return false;if((HM_IE||HM_IsSafari)&&(Hg.document.readyState!="complete"))return false;jx=((Hg)&&(Hg.document))?Hg.document:null; var jz=Hg.document.getElementById('HM_dummy_menu');if(jx)jw=false;}catch(e){jw=HX2(e);}return(!jw);} function HM_f_SetKeyWords(fixed){var et=(HM_IE||HM_IsSafari||HM_Konqueror)?0:Hmr.qr;HM_window_left_edge=(fixed)?0:(HM_IE)?Hh.scrollLeft:Hg.pageXOffset;HM_window_top_edge=(fixed)?0:(HM_IE)?Hh.scrollTop:Hg.pageYOffset; var ew=(HM_IE)?Hh.clientWidth:Hg.innerWidth;var ex=(HM_IE)?Hh.clientHeight:Hg.innerHeight;if(HM_IE&&!HM_IE50W&&HXN())HM_window_left_edge-=(Hh.scrollWidth-ew);HM_window_right_edge=(HM_window_left_edge+ew)-et;HM_window_bottom_edge=(HM_window_top_edge+ex)-et; HM_mouse_x_position=HM_default_x_position=0;HM_mouse_y_position=HM_default_y_pos ition=0;} function HM_f_PopUp(eg,e,navpos,lp,eX,eY,ePX,ePY){if(!Hat)return;if(Hax||!HWU())return;if(!e)e=window.event;var qw=(lp)?false:true;if(!lp){lp=e.type;eX=(HM_NS6)?e.pageX:e.clientX;eY=(HM_NS6)?e.pageY:e.clientY;ePX=(HM_NS6)?window.pageXOffset:0; ePY=(HM_NS6)?window.pageYOffset:0;if(!HM_FramesEnabled)Hmr.qp="";}if(!navpos)navpos=Hmr.qp;if(!Hay&&!Hbi){if(Hji)return;if(!HW5())return;}var sb=eg;if(HM_ConfigType=="arrays")eg=eg.replace("elMenu","HM_Menu");var eh=Hms[eg];if(!eh)return; if(!eh.mh){if(Hay||!Hbi)return;HY3(eh);}if(!eh.G||!qw)HWe(e,eg,navpos,lp,eX,eY,ePX,ePY);else if(!eh.mw){var ei=(e.currentTarget)?e.currentTarget:(e.srcElement)?e.srcElement:null;if(HM_IE){var sc=new RegExp(sb); while(ei.parentNode&&(!ei.onmouseover||!sc.test(ei.onmouseover.toString())))ei=ei.parentNode;}var ej="return HWe(event,'"+eg+"');";var mv=new Function("event",ej);if(HM_IsSafari||Hjf)ei.onclick=mv;else HXS(ei,"click",mv,false);eh.mw=true;}} function HWe(e,eg,navpos,lp,eX,eY,ePX,ePY){if(!Hat||!Hbi)return true;if(Hax||!HWU())return true;var eh=Hms[eg];if(!eh||!eh.mh)return true;Hbg=eh;if(!e)e=window.event;if(!lp){lp=e.type;eX=(HM_NS6)?e.pageX:e.clientX;eY=(HM_NS6)?e.pageY:e.clientY; ePX=(HM_NS6)?window.pageXOffset:0;ePY=(HM_NS6)?window.pageYOffset:0;}if(navpos)Hmr.qp=navpos;if(Hbg.G&&lp!="click")return true;clearTimeout(Hbg.ng);Hbg.ng=null;if(!Hbg.er&&(Hbg.mh.style.visibility=="visible")){Hbg.nd=true;if(Hbg.nl)Hbg.HXh(null,1); if(e.preventDefault)e.preventDefault();return false;}else HWn();if(Hbg.HYD)Hbg.HYD();HM_f_SetKeyWords(Hbg.mh.style.position=="fixed");Hbg.er=null;Hbg.kk=null;Hbg.nu=null;if(Hbg.nc){Hbg.mh.style.height=Hbg.hm;Hbg.HXl(); }if(!HM_FramesEnabled&&!Hmr.qp){HM_default_x_position=(HM_NS6)?eX:(eX+Hh.scrollLeft);HM_default_y_position=(HM_NS6)?eY:(eY+Hh.scrollTop);if(HM_IE&&!HM_IE50W&&HXN())HM_default_x_position-=(Hh.scrollWidth-Hh.clientWidth); }else{switch(Hmr.qp){case "top":HM_default_x_position=((HM_NS6)?(eX-ePX):eX)+HM_window_left_edge;HM_default_y_position=HM_window_top_edge;break;case "bottom":var pu=((Hjt)?0:(Hbg.sw+Hbg.sy))+parseInt(Hbg.mh.style.height); HM_default_x_position=((HM_NS6)?(eX-ePX):eX)+HM_window_left_edge;HM_default_y_position=HM_window_bottom_edge-pu;break;case "right":var pu=((Hjt)?0:(Hbg.sz+Hbg.sx))+parseInt(Hbg.mh.style.width);HM_default_x_position=HM_window_right_edge-pu; HM_default_y_position=((HM_NS6)?(eY-ePY):eY)+HM_window_top_edge;break;case "left":default:HM_default_x_position=HM_window_left_edge;HM_default_y_position=((HM_NS6)?(eY-ePY):eY)+HM_window_top_edge;break; }}HM_mouse_x_position=Hbg.mouseX=HM_default_x_position;HM_mouse_y_position=Hbg.mouseY=HM_default_y_position;Hbg.ir=Hbg.xPos=(Hbg.mx!=null)?eval(Hbg.mx):HM_default_x_position;Hbg.is=Hbg.yPos=(Hbg.rv!=null)?eval(Hbg.rv):HM_default_y_position;Hbg.HXc(); Hbg.moveTo(Hbg.xPos,Hbg.yPos);Hbg.nd=true;if(HM_NS6){var en="if(HWU()){var Hkc=Hms['"+Hbg.ne+"'];";en+="if(Hkc&&Hkc.nd&&Hkc.HXb)Hkc.HXb(true);}";setTimeout(en,10);}else{Hbg.HXb(true);}if(e.preventDefault)e.preventDefault();return false;} function HXU(e,nf,Menu){var jp=null;try{jp=(e.relatedTarget)?e.relatedTarget:(nf)?(e.fromElement)?e.FromElement:null:(e.toElement)?e.toElement:null;if(jp){if(Menu)while((!jp.mi)&&(jp.parentNode))jp=jp.parentNode; else while((!jp.mj)&&(jp.parentNode))jp=jp.parentNode;}}catch(eObj){jp=null;}return jp;} function HWf(e){if(Hax||!HWU())return;if(!e)e=Hg.event;var jp=HXU(e,1,1);if(jp==this)return;var mi=this.mi;mi.nd=true;if(mi.HYO)mi.HYO(mi.mh);if(!mi.er)HWn(mi);Hbj=true;Hbg=mi;if(mi.V&&(Hbg!=Hku))mi.HYi();if(mi.ng)clearTimeout(mi.ng);mi.ng=null; if(mi.F||Hjf){if(mi.er){var er=mi.er;if(er.nu&&er.nu.nh)er.nu.HXP(0,0,1);var kk=mi.kk;if(mi.F&&kk.nh)kk.HXP(1,0,1);er.nu=kk;}}} function HXV(){var nj=this.ni;var ek=nj.length;var el;for(var i=0;i<ek;i++){el=nj[i];clearTimeout(el.nk);el.nk=null;}} function HWg(e){if(Hax||!HWU())return;if(!e)e=Hg.event;var jp=HXU(e,0,1);if(jp==this)return;var mi=this.mi;mi.nd=false;if(mi.HYP)mi.HYP(mi.mh);Hbj=false;Hbg=mi;if(mi.O)window.status="";mi.HY7();if(Hjf&&mi.nu){if(mi.nu.nh)mi.nu.HXP(0,0,1); mi.nu=null;}if(mi.nl&&(mi.nm.mh==jp))return;if(!mi.k3){clearTimeout(Hbd);Hbd=null;var en="var Hem=HW9('"+mi.ne+"');if(Hem&&Hem.mh&&Hem.HXd)Hem.HXd()";Hbd=setTimeout(en,mi.nn);}} function HWX(){if(this.mk.HYD)this.mk.HYD();if(this.mk.nc){this.mk.mh.style.height=this.mk.hm;}this.oL=parseInt(this.mi.mh.style.left)+this.mi.sz+parseInt(this.mg.style.left);this.oT=parseInt(this.mi.mh.style.top)+this.mi.sw+parseInt(this.mg.style.top); if(this.mi.V){this.oT+=this.mi.cs.top;if(this.mi.qm&&this.mi.ns)this.oT+=(this.mi.k2-this.mi.sw);}var K=(isNaN(parseFloat(this.K)))?null:parseFloat(this.K)/100;if(!this.nr){this.dw=parseInt(this.mg.style.width); if(!Hjt)this.dw+=(parseInt(this.mg.style.paddingLeft)+parseInt(this.mg.style.paddingRight))+((this.mi.np&&!this.nq)?this.w:0);if(!this.mi.np)this.dw+=this.mi.sx+this.mi.ub;this.dx=(!this.mi.np)?(this.mi.sz+this.mi.ud):this.w; this.I=(parseInt((K!=null)?(K*this.dw):this.I));this.nr=true;}if(this.R){this.mk.xPos=((this.oL-this.dx)+this.I)-this.mk.mh.offsetWidth;}else{this.mk.xPos=(this.oL+this.dw)-this.I;}this.mk.yPos=this.oT+this.J; if((this.nt=="above")||(this.nt=="below")){this.mk.xPos=this.oL-(this.mk.sz+this.mk.ud);if((this.mi.cz||this.mk.cz||this.mk.np)&&this.R)this.mk.xPos-=((this.mk.ni[0].mg.offsetWidth-this.mg.offsetWidth)+(this.nq?0:this.w)); if(this.nt=="below")this.mk.yPos=parseInt(this.mi.mh.style.top)+this.mi.mh.offsetHeight-this.sy;else this.mk.yPos=parseInt(this.mi.mh.style.top)-this.mk.mh.offsetHeight+this.sw; }if(this.mi.mh.style.position=="fixed"){this.mk.xPos+=(HM_IE)?Hh.scrollLeft:Hg.pageXOffset;this.mk.yPos+=(HM_IE)?Hh.scrollTop:Hg.pageYOffset;}HM_f_SetKeyWords(this.mk.mh.style.position=="fixed"); HM_default_x_position=HM_mouse_x_position=this.mk.xPos;HM_default_y_position=HM_mouse_y_position=this.mk.yPos;this.mk.ir=this.mk.xPos=(this.mk.mz!=null)?eval(this.mk.mz):HM_default_x_position; this.mk.is=this.mk.yPos=(this.mk.na!=null)?eval(this.mk.na):HM_default_y_position;this.mk.HXc();this.mk.moveTo(this.mk.xPos,this.mk.yPos);} function HWZ(){if(Hay||Hax||!HWU())return;if(!this.mk){var eh=Hms[this.ml];if(!eh)return;if(!eh.mh)HY3(eh);this.mk=eh;}if(this.mi.mh.style.visibility=="hidden")return;this.mk.er=this.mi;this.mk.kk=this;this.HXr(); if(HM_NS6){var en="if(HWU()){var Hkf=Hms['"+this.ne+"'];Hkf=(Hkf.ni&&Hkf.ni["+this.index+"])?Hkf.ni["+this.index+"]:null;";en+="if(Hkf&&aThis post has been edited by asadarnell : 27 Sep, 2007 - 12:34 PM