Is there no one who wants to help me out with this problem?
-
☆ A M B ☆
- 3,112 Posts
i don’t know jquery much, but looks like you need 2 functions, one is to hide menu, the other one is to expand the child links.
when window onload, hide function is the king.
when onclick event triggered, you should set vise versa; unset the hide function, initiate the expand funtion only.
please note, this is only for ajax loading.
for the common page redirecting, you should use CSS to hide menu, and use javascript only for the unfolding animation.
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
Thanks guys, Sharkbait was right.