Jump to content

Annoying mouseover menu...


DeSoto

Recommended Posts

FYI - I made the top menu onClick instead of onMouseOver with the following code in the admin/templates/topmenu.tpl file.

 

Note I using the enom addon module. You will want to remove that if you are not using it. Enom code is in bold.

 

<span class="navbutton" onClick="this.className='navbuttonover';dropdownmenu(this, event, menu1, '');" onMouseOut="this.className='navbutton';delayhidemenu();" onClick="window.location='index.php'">Home</span>

<span class="navbutton" onClick="this.className='navbuttonover';dropdownmenu(this, event, menu2, '');" onMouseOut="this.className='navbutton';delayhidemenu();" onClick="window.location='clients.php'">Clients</span>

<span class="navbutton" onClick="this.className='navbuttonover';dropdownmenu(this, event, menu3, '');" onMouseOut="this.className='navbutton';delayhidemenu();" onClick="window.location='orders.php'">Orders</span>

<span class="navbutton" onClick="this.className='navbuttonover';dropdownmenu(this, event, menu4, '');" onMouseOut="this.className='navbutton';delayhidemenu();" onClick="window.location='transactions.php'">Transactions</span>

<span class="navbutton" onClick="this.className='navbuttonover';dropdownmenu(this, event, menu5, '');" onMouseOut="this.className='navbutton';delayhidemenu();" onClick="window.location='supportcenter.php'">Support</span>

<span class="navbutton" onClick="this.className='navbuttonover';" onMouseOut="this.className='navbutton';" onClick="window.location='reports.php'"><a href="reports.php">Reports</a></span>

<span class="navbutton" onClick="this.className='navbuttonover';dropdownmenu(this, event, menu7, '');" onMouseOut="this.className='navbutton';delayhidemenu();">Utilities</span>

<span class="navbutton" onClick="this.className='navbuttonover';dropdownmenu(this, event, menu8, '');" onMouseOut="this.className='navbutton';delayhidemenu();">Configuration</span>

<span class="navbutton" onClick="this.className='navbuttonover';dropdownmenu(this, event, menu10, '');" onMouseOut="this.className='navbutton';delayhidemenu();" onClick="window.location='addonmodules.php?module=enom_extended'">eNom</span>

<span class="navbutton" onClick="this.className='navbuttonover';dropdownmenu(this, event, menu9, '');" onMouseOut="this.className='navbutton';delayhidemenu();">Help</span>

Link to comment
Share on other sites

Your code to add the eNom menu didn't work (it showed up but nothing happened when clicked). The following works:

 

<span class="navbutton" onMouseOver="this.className='navbuttonover';" onMouseOut="this.className='navbutton';" onClick="window.location='addonmodules.php?module=enom_extended'"><a href="addonmodules.php?module=enom_extended">eNom</a></span>
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated