Need Quick Help with My Javascript Site Menu!

Discussion in 'HTML & Website Design' started by Masterful, May 13, 2008.

  1. #1
    I found out today - thanks to DP member Crath - that the Javascript main menu located at the top of my web pages doesn't look right with IE 8. As you can see from looking at the picture below, the first menu button sits higher than the rest:

    [​IMG]

    Why might this be?

    Here's the Javascript code for the menu:

    <script type="text/javascript" language="JavaScript1.2">
    BuildLayer('h','','','','250','250','','','','7','3','1px None #87B77B','1px None #87B77B','1px None #87B77B','1px None #87B77B','center','transparent','','1','1','','Filter:none(Duration=0.5)','','#777777','4','Default','Pointer','','100','0','#FFFFFF')
    SwapDiv('wme1','','Coupons by Category','blank.gif','blank.gif','0','0','arrow.gif','arrow.gif','7','7','20','120','Arial,Helvetica,sans-serif','Arial,Helvetica,sans-serif','9pt','9pt','normal','normal','#000000','#000000','bold','bold','none','none','#E6EDE7','#87B77B','blank.gif','blank.gif','0','0','0','0','1px None #FFFFFF','1px None #FFFFFF','1px None #FFFFFF','1px None #FFFFFF','1px None #FFFFFF','1px None #FFFFFF','1px None #FFFFFF','1px None #FFFFFF','middle','center','','','','_self','','','0','blank.gif','blank.gif','auto','auto','0','0','0')
    FreeLayer('wme21','','5','v','0','0','1','2','1px Solid #ACA899','1px Solid #ACA899','1px Solid #ACA899','1px Solid #ACA899','#FFFFFF','','1','1','','Filter:none(Duration=0.5)','','#C0C0C0','0','100')
    SwapDiv('wme20','wme1','Apparel',_,_,_,_,'blank.gif','blank.gif','0','0',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'left','clothes-and-shoes-coupon-codes.php',_,_,_,_,_,'0',_,_,_,_,_,_,_)
    SwapDiv('wme22','wme20','Automotive',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'auto-parts-coupon-codes.php',_,_,_,_,_,'0',_,_,_,_,_,_,_)
    SwapDiv('wme23','wme20','Babies and Kids',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'baby-store-coupon-codes.php',_,_,_,_,_,'0',_,_,_,_,_,_,_)
    SwapDiv('wme24','wme20','Books',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'book-store-coupon-codes.php',_,_,_,_,_,'0',_,_,_,_,_,_,_)
    SwapDiv('wme25','wme20','Electronics',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'electronics-coupon-codes.php',_,_,_,_,_,'0',_,_,_,_,_,_,_)
    SwapDiv('wme26','wme20','Health and Beauty',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'health-and-beauty-coupon-codes.php',_,_,_,_,_,'0',_,_,_,_,_,_,_)
    SwapDiv('wme27','wme20','Home and Garden',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'furniture-and-decor-coupon-codes.php',_,_,_,_,_,'0',_,_,_,_,_,_,_)
    SwapDiv('wme28','wme20','Movies',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'movie-store-coupon-codes.php',_,_,_,_,_,'0',_,_,_,_,_,_,_)
    SwapDiv('wme29','wme20','Superstores',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'online-superstore-coupon-codes.php',_,_,_,_,_,'0',_,_,_,_,_,_,_)
    InitDiv();
    SwapDiv('wme2','wme20','Coupons by Store',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'center','coupons-by-store.php',_,_,_,_,_,'0',_,_,_,_,_,_,_)
    SwapDiv('wme8','wme2','A to Z of Stores',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'a-to-z-of-stores.php',_,_,_,_,_,'0',_,_,_,_,_,_,_)
    SwapDiv('wme9','wme2','Articles',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'how-to-save-money-articles.php',_,_,_,_,_,'0',_,_,_,_,_,_,_)
    SwapDiv('wme15','wme2','Videos',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'how-to-save-money-videos.php',_,_,_,_,_,'0',_,_,_,_,_,_,_)
    HideDiv();
    </script>
    Code (markup):
    My web site is Coupons To Your Inbox.
     
    Masterful, May 13, 2008 IP
  2. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #2
    crath, May 14, 2008 IP
  3. Masterful

    Masterful Well-Known Member

    Messages:
    1,653
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Thanks, Crath! I tried to add to your reputation again but the damn system didn't let me, apparently because I added to it yesterday. I'll do so at a later date.

    I heard that I should optimise my site for IE 8, as it is still in Beta and therefore subject to change. As such, I no longer need help with this matter.
     
    Masterful, May 14, 2008 IP
  4. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #4
    Yeah, as long as it works good in the currently released browsers you should be in the green :)
     
    crath, May 14, 2008 IP
  5. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yeah, DON'T make it look good in IE8, you'll be accommodating bugs that hopefully will be gone when IE8 is actually released. Never test against beta unless you are testing the beta for bugs, not the site OR if you are absolutley certain that a particular new feature will be added in the stable release (and even then, think of all the people who tried to work with IE7beta's buggy Zoom function, only to have to undo everything when IE7 was actually released). Not that the zoom isn't still buggy, but it's stable buggy, everyone has those bugs now.

    *edit, nevermind, you mistyped and meant "shouldn't" : ) so this is a message for everyone else : )
     
    Stomme poes, May 15, 2008 IP
  6. Masterful

    Masterful Well-Known Member

    Messages:
    1,653
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    140
    #6
    Yeah . . . Sorry about that. I meant that "I heard that I shouldn't optimise my site for IE 8, as it is still in Beta and therefore subject to change." And I heard that from you, Stomme Poes. ;)
     
    Masterful, May 15, 2008 IP
  7. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #7
    stomme, any idea when ie8 will be released? since were on the subject :p
     
    crath, May 15, 2008 IP
  8. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Nope, but actually I don't even follow it... MS has an IE blog, keeping everyone updated, but instead of reading it myself I just listen to the other developers who do (since they care more than me : )

    Jamesicus on this forum has been posting regular IE8 updates, so if you search for his name, you'll find his most recent post on it (which of course is by now out of date) and he likely has a link to the IE8 blog which would be up to date.
     
    Stomme poes, May 16, 2008 IP