Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Show animated gif when menu option is clicked
fexposito
Junior Member

Posts: 2
Registered: 8/9/2007
Location: Madrid
Member Is Offline
posted on 8/9/2007 at 12:29 PM Reply With Quote
Show animated gif when menu option is clicked


Hi!

I'm trying to show an animated gif when any option of the menu is clicked, and before the request is sent. So, I have to capture the onclick event before the menu. I tried running the function from the url ("javascript:showloadingdiv();") and the gif is shown, but is not moving. I also tried surround the caption whith "<span onclick='showloadingdiv()'></span>" but this isn't working at all.

Is there any way of solving this?

Thanks in advance.
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 8/9/2007 at 03:03 PM Reply With Quote

The content of the menu item doesn't receive mouse events.
In your case I suggest using the feature that allows different HTML for different states of the menu item (normal, hower, down). In the HTML for mousedown state replace the name of the image with one that's animated.

see http://www.softcomplex.com/products/tigra_menu_gold/docs/#items_caption
View User's Profile View All Posts By User U2U Member
fexposito
Junior Member

Posts: 2
Registered: 8/9/2007
Location: Madrid
Member Is Offline
posted on 8/10/2007 at 10:16 AM Reply With Quote

Quote:
Originally posted by tigra
The content of the menu item doesn't receive mouse events.
In your case I suggest using the feature that allows different HTML for different states of the menu item (normal, hower, down). In the HTML for mousedown state replace the name of the image with one that's animated.

see http://www.softcomplex.com/products/tigra_menu_gold/docs/#items_caption


Thanks for your reply. The image is outside the menu. What I like to show is a div (hidden until submit) with an animated image in the middle of the page and the text "Loading page" when any option of the menu is clicked. Is there any way of doing this?

Thanks!
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 8/16/2007 at 05:56 PM Reply With Quote

you can call your own javascript function from the menu items. as a parameter you can pass the URL of the page you want to redirect browser to after updating the animated image.

http://www.softcomplex.com/products/tigra_menu_gold/docs/#items_link
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page Product Page
Functionality demos Functionality demos
Multiple
Cross-framed
Select-boxes
Effects
Design demos Design demos
Icons & arrows
Idea!
Hi there!
Matrix
MS Style
XP Style
Dots
3D-Buttons
Product Documentation Documentation
Documenation Page
Change Log
Menus Comparison Table
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004