Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Problem with dynamic menu width...
Old 01-03-2008, 05:40 PM Problem with dynamic menu width...
Experienced Talker

Posts: 41
Trades: 0
I am trying to create a menu with dynamic width, much like here:
http://computers.pricegrabber.com/

(You'll notice X items appear under the last "More" item depending on browser width)

I've gotten everything working just fine, but my problem is that everything shows up immediately and then it will not resize accordingly until the page has loaded and it looks fine. With their website though, I do not notice ANY jump AT ALL, yet all the code for each menu item is in there and there is no class for them to be hidden or anything.

Any ideas how I can avoid the initial "jump" upon page load? I can't figure out how it is so smooth on their site...
__________________

Please login or register to view this content. Registration is FREE
- Need answers? Ask it online.
Create powerful online surveys with ease in minutes!

Please login or register to view this content. Registration is FREE
Triexa is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-03-2008, 07:42 PM Re: Problem with dynamic menu width...
Experienced Talker

Posts: 39
Name: Andrew
Trades: 0
Are you using the onload event? If so, you should probably look into using something that fires earlier. jQuery has $(document)ready(), and YUI has a number of similar events.

(I should probably add that I only looked at the site briefly and didn't really figure out what it was doing on startup. So there may be something else clever you can do instead.)
__________________

Please login or register to view this content. Registration is FREE
- Pole dancing evolved
meloncholy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Problem with dynamic menu width...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09935 seconds with 12 queries