SmartMenus DHTML Menu / JavaScript Menu - Forums

forums

You are not logged in.

#1 2007-Oct-24 16:53:13

swalsh
Member
Registered: 2007-Oct-24
Posts: 1

disable menu for Safari users

i'd like to disable the dropdown menu (but still keep the top level menu) for safari users. i've got the browser detection all set. any idea where in c_smartmenus.js i can put a condition where if the browser is safari, don't run this code?

Offline

 

#2 2007-Oct-25 10:34:57

smartmenus
Site Admin
From: Plovdiv, BULGARIA
Registered: 2003-Feb-23
Posts: 1109
Website

Re: disable menu for Safari users

Hi,

I am not sure why you would like to do this but you can use the following JS code snippet for the purpose:

Code:

c_mN_new=c_mN;

c_mN=function(){
if(!c_sF) //if not Safari, initialize...
    c_mN_new();
}

You just have to include it on your page after the link to the SmartMenus script core file "c_smartmenus.js" (or you can also just add it at the end of "c_smartmenus.js").


-Vasil Dinkov-

Offline

 

Board footer

Powered by FluxBB