Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Posts
    3
    Plugin Contributions
    0

    Default Need Help: Drop Down Menu in header w/ Javascript

    Hello all,

    Just installed Zen Cart and I like it so far. However, I want to add a horz. drop down menu in the header. I created this horz. menu in Fireworks and have attempted to insert it into the tpl_header.php. I get the following error:

    "Making this change would require changing code that is locked by a template or a translator. The change will be discarded."

    The html of the file is successfully inserted into the php file, but the javascript is discarded. I've read in the forums that I need to place the js in the jscript folder. I've tried doing this, but I'm not much of a programmer. I'm not sure how you call up the js in the PHP file or if the js script needs to be located in the html_header.php

    Can someone give me the specific steps on how to incorporte a drop down menu using js into the appropriate file(s) and have it called up? I've read and reread the forums, but I need someone to explain the process in very simple terms. Thanks in advance!!!

  2. #2
    Join Date
    Jan 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: Need Help: Drop Down Menu in header w/ Javascript

    little more info: Here is the horiz menu that I've inserted into the tpl_header

    <script language="JavaScript1.2">mmLoadMenus();</script>
    <table border="0" cellpadding="0" cellspacing="0" width="800">
    <!-- fwtable fwsrc="menu_button2.png" fwbase="company.gif" fwstyle="Dreamweaver" fwdocid = "1460588186" fwnested="0" -->
    <tr>
    <td><img src="../../../../../navmenu/spacer.gif" width="160" height="1" border="0" alt=""></td>
    <td><img src="../../../../../navmenu/spacer.gif" width="1" height="1" border="0" alt=""></td>
    <td><img src="../../../../../navmenu/spacer.gif" width="159" height="1" border="0" alt=""></td>
    <td><img src="../../../../../navmenu/spacer.gif" width="160" height="1" border="0" alt=""></td>
    <td><img src="../../../../../navmenu/spacer.gif" width="160" height="1" border="0" alt=""></td>
    <td><img src="../../../../../navmenu/spacer.gif" width="160" height="1" border="0" alt=""></td>
    <td><img src="../../../../../navmenu/spacer.gif" width="1" height="1" border="0" alt=""></td>
    </tr>
    <tr>
    <td rowspan="2"><a href="#" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','company_r1_c1','../../../../../navmenu/company_r1_c1_f2.gif','../../../../../navmenu/company_r1_c1_f4.gif',1);" onClick="MM_nbGroup('down','navbar1','company_r1_c1','../../../../../navmenu/company_r1_c1_f3.gif',1);"><img name="company_r1_c1" src="../../../../../navmenu/company_r1_c1.gif" width="160" height="20" border="0" alt=""></a></td>
    <td rowspan="2"><img name="company_r1_c2" src="../../../../../navmenu/company_r1_c2.gif" width="1" height="20" border="0" alt=""></td>
    <td><a href="#" onMouseOut="MM_nbGroup('out');MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0105124512_0,0,20,null,'company_r1_c3'); MM_nbGroup('over','company_r1_c3','../../../../../navmenu/company_r1_c3_f2.gif','../../../../../navmenu/company_r1_c3_f4.gif',1);" onClick="MM_nbGroup('down','navbar1','company_r1_c3','../../../../../navmenu/company_r1_c3_f3.gif',1);"><img name="company_r1_c3" src="../../../../../navmenu/company_r1_c3.gif" width="159" height="19" border="0" alt=""></a></td>
    <td rowspan="2"><a href="#" onMouseOut="MM_nbGroup('out');MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0105103953_0,0,20,null,'company_r1_c4'); MM_nbGroup('over','company_r1_c4','../../../../../navmenu/company_r1_c4_f2.gif','../../../../../navmenu/company_r1_c4_f4.gif',1);" onClick="MM_nbGroup('down','navbar1','company_r1_c4','../../../../../navmenu/company_r1_c4_f3.gif',1);"><img name="company_r1_c4" src="../../../../../navmenu/company_r1_c4.gif" width="160" height="20" border="0" alt=""></a></td>
    <td rowspan="2"><a href="store.html" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','company_r1_c5','../../../../../navmenu/company_r1_c5_f2.gif','../../../../../navmenu/company_r1_c5_f4.gif',1);" onClick="MM_nbGroup('down','navbar1','company_r1_c5','../../../../../navmenu/company_r1_c5_f3.gif',1);"><img name="company_r1_c5" src="../../../../../navmenu/company_r1_c5.gif" width="160" height="20" border="0" alt=""></a></td>
    <td rowspan="2"><a href="#" onMouseOut="MM_nbGroup('out');MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0105125615_1,0,20,null,'company_r1_c6'); MM_nbGroup('over','company_r1_c6','../../../../../navmenu/company_r1_c6_f2.gif','../../../../../navmenu/company_r1_c6_f4.gif',1);" onClick="MM_nbGroup('down','navbar1','company_r1_c6','../../../../../navmenu/company_r1_c6_f3.gif',1);"><img name="company_r1_c6" src="../../../../../navmenu/company_r1_c6.gif" width="160" height="20" border="0" alt=""></a></td>
    <td><img src="../../../../../navmenu/spacer.gif" width="1" height="19" border="0" alt=""></td>
    </tr>
    <tr>
    <td><img name="company_r2_c3" src="../../../../../navmenu/company_r2_c3.gif" width="159" height="1" border="0" alt=""></td>
    <td><img src="../../../../../navmenu/spacer.gif" width="1" height="1" border="0" alt=""></td>
    </tr>
    </table>

  3. #3
    Join Date
    Jan 2007
    Posts
    35
    Plugin Contributions
    0

    Default Re: Need Help: Drop Down Menu in header w/ Javascript

    Hi -
    I am having exactly the same problem - wanting to put my zencart pages within the regular site menu... and am using a Fireworks menu without images... did you ever get this to work? I do know you have to put raw javascript in a file into the your-template/jscript folder, there's also an on_load folder to handle onload events but I'm not quite sure which goes where...
    Do people use frames (yuk) for this?
    I must be missing something simple here about putting regular site menu on the store page because I think it must be a common request!

  4. #4
    Join Date
    Mar 2007
    Posts
    1
    Plugin Contributions
    0

    Default Re: Need Help: Drop Down Menu in header w/ Javascript

    Hello,
    I am having this problem as well. Did anyone ever find a solution?

  5. #5
    Join Date
    Jan 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: Need Help: Drop Down Menu in header w/ Javascript

    Hi there,

    I ended up creating a drop down menu with CSS and is working fine.

 

 

Similar Threads

  1. Help with javascript/drop down menu
    By LissaE in forum General Questions
    Replies: 9
    Last Post: 5 Feb 2010, 04:04 PM
  2. Need help with drop down menu sizing
    By Dashizna in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 3 Nov 2007, 06:36 PM
  3. javascript dropdown menu --need header help
    By iciblues in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Jul 2007, 12:56 AM

Posting Permissions

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