Results 1 to 3 of 3

Thread: How the popups menu is work?

  1. #1
    Join Date
    Sep 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How the popups menu is work?

    Hi.. I need some help to complete my work.. I would like to ask how the popups meny will working because when I running the script, it doesn't work and the menu isn't appear.. Anybody can help me? Thanks...

    menu.php
    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>
    <script type="text/javascript">
    <!--
       HM_ConfigFiles="hmcentral.js,popups.js";
    // -->
    </script>

    <title>:: AFATS-16 Portal -menu ::</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body>
    <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> 
    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"}
    );

  2. #2
    Join Date
    Oct 2005
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    could you show an example of the use on your page plz...

    you usually want to put all <script> tags before you use the script
    Hey new design new look, goto xudas for personal webdsign help.. (:

  3. #3
    Join Date
    Sep 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It's used like the menu on menu toolbar of your browser

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •