• Avail guidance to develop Drupal modules & Drupal themes
  • Share and get review of your code
  • Get Access to free CodeBooks and ThemeBooks
  • Drupal 5, 6 and 7 covered

Userpoints Meter

0 Points /1000 Points

Hey Guys

You guys have any idea on how and where to insert the Jquery in the nice menus?

0
Your rating: None
beautifulmind's picture

Well, this is not the best way to achive it. You have to trigger a Jquery action when certain event occurs like displaying nice menu. You can add your custom Jquery function/event/action in the header by including in .tpl.php file. When an event occurs, it triggers an action. Make sure the .js file shows up in the header section of the page using firebug.

Regards.

prasanthloganda's picture

You have explained the process but i need to know which part should i have to insert my jquery. I tried inserting my jquery in the "nice_menus.js" file but nothing happened :( . After wasting hell lot of time in this i found beta4 released in nice menus so i upgraded my nice menu from 6.3 to beta4 . After that some power came to my menu bar, jquerry was working but affected my CSS :( after that i was like totally  --->("0.0"). So i made a quick undo and started to do my own jquery but i got stucked in the insertion. Please enlightnen me .

Thanks in Advance

beautifulmind's picture

Hi
Create a separate .js file and add it to .tpl.php files. This will do.

Regards.

beautifulmind's picture

Hi,
Were you able to fix this?

Regards.

prasanthloganda's picture

Yes, i have fixed ...

Syndicate content

Recent comments