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

Posts: 41
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...
__________________
SonicMailer Pro - Award-winning email marketing software
Download a FREE 30-day trial today!
Use coupon wmt and save 10%!
Triexa is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 01-03-2008, 06:42 PM Re: Problem with dynamic menu width...
Experienced Talker

Posts: 35
Name: Andrew
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.)
__________________
Pole Exercise - Pole dancing evolved
meloncholy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Problem with dynamic menu width...
 

Thread Tools

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

vB 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.11302 seconds with 13 queries