AdminAddict

Join Us Members List Today's Posts
Go Back   AdminAddict > Forum and Community Development > Community/Forum Software > vBulletin

Discuss Some problems with IE and Navbar in vBulletin at AdminAddict
I'm trying to use a mouseover/png button feature on my site, and it's not working on IE. If you look, ...

Welcome to the AdminAddict.

Hello and welcome to AdminAddict! The one-stop resource for forum and community administrators.

We offer a variety of content and resources, but in order to have access to all of our free tips and tools, you need to register a FREE account.

Registration is free, quick and easy.



(Register to remove this advertisement)
Reply
 
Share Thread Tools Search this Thread
Old June 30th, 2009, 04:21 AM   #1
Adept
Posts: 180
Join Date: May 2009

Experience: Advanced
Forums Admin/Mod: 3
Software: vBulletin 3.8.x

plazzman will become famous soon enough
Default Some problems with IE and Navbar

I'm trying to use a mouseover/png button feature on my site, and it's not working on IE.

If you look, you can see that it's making some weird pyramid scheme instead of the two line row.

Anyone know how I could possibly fix this?

Thanks alot!
Fightlockdown
MMA|K-1|BOXING -- Discussion|Analysis|Betting

My Portfolio
plazzman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old June 30th, 2009, 08:14 AM   #2
Default

Really bad unvalidated code there. IE is rendering it correctly according to the code.

HTML Code:
<!-- begin navigation buttons table -->
    <center>
<table width="30%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>


    <a href="index.php?" onmouseover="image1.src=loadImage1.src;" onmouseout="image1.src=staticImage1.src;">
<img name="image1" src="/forum/bi2/fldbuttons/homesmall.png" border=0></a>










<td id="navbar_search"><a href="search.php?" accesskey="4" rel="nofollow" onmouseover="image9.src=loadImage9.src;"onmouseout="image9.src=staticImage9.src;">
<img name="image9" src="/forum/bi2/fldbuttons/searchsmall.png" border=0></a><script type="text/javascript"> vbmenu_register("navbar_search",1); </script></td>


<a href="search.php?do=getnew" onmouseover="image4.src=loadImage4.src;" onmouseout="image4.src=staticImage4.src;">
<img name="image4" src="/forum/bi2/fldbuttons/newpostssmall.png" border=0></a>

<a href="http://www.fightlockdown.com" onmouseover="image5.src=loadImage5.src;" onmouseout="image5.src=staticImage5.src;">
<img name="image5" src="/forum/bi2/fldbuttons/articlessmall.png" border=0></a>



<a href="vbookie.php" onmouseover="image7.src=loadImage7.src;" onmouseout="image7.src=staticImage7.src;">
<img name="image7" src="/forum/bi2/fldbuttons/vbookiesmall.png" border=0></a>

<td><a href="competitions.php" onmouseover="image6.src=loadImage6.src;" onmouseout="image6.src=staticImage6.src;">
<img name="image6" src="/forum/bi2/fldbuttons/competitionssmall.png" border=0></a></td>

<td><a href="casino.php" onmouseover="image8.src=loadImage8.src;" onmouseout="image8.src=staticImage8.src;">
<img name="image8" src="/forum/bi2/fldbuttons/casinosmall.png" border=0></a></td>


<td></td>


</tr>
    </table>
</center>
    <!-- End navigation buttons table --> 
IE will render elements nested in a table but outside a table cell first to try and maintain the integrity of the tabular data. First button isn't in a table cell. Then a table cell and three more buttons outside it. Than two more cells and a blank cell. Really bad code here. Even uses center tags which aren't valid in XHTML.

If you look at the w3c validator, you have 116 errors in the page. You can't use capital letters for tags or attributes. They should always be lower case. No alt attributes on images. Improper Embedding of elements.

Try this for the above code:

HTML Code:
<div class="navbuttons">
    <a href="index.php?" onmouseover="image1.src=loadImage1.src;" onmouseout="image1.src=staticImage1.src;">
<img name="image1" src="/forum/bi2/fldbuttons/homesmall.png" border=0></a>

    <a href="search.php?do=getnew" onmouseover="image4.src=loadImage4.src;" onmouseout="image4.src=staticImage4.src;">
 <img name="image4" src="/forum/bi2/fldbuttons/newpostssmall.png" border=0></a>
 
     <a href="http://www.fightlockdown.com" onmouseover="image5.src=loadImage5.src;" onmouseout="image5.src=staticImage5.src;">
 <img name="image5" src="/forum/bi2/fldbuttons/articlessmall.png" border=0></a>
 
    <a href="vbookie.php" onmouseover="image7.src=loadImage7.src;" onmouseout="image7.src=staticImage7.src;">
 <img name="image7" src="/forum/bi2/fldbuttons/vbookiesmall.png" border=0></a>

    <a href="search.php?" accesskey="4" rel="nofollow" onmouseover="image9.src=loadImage9.src;"onmouseout="image9.src=staticImage9.src;">
<img name="image9" src="/forum/bi2/fldbuttons/searchsmall.png" border=0></a><script type="text/javascript"> vbmenu_register("navbar_search",1); </script>

    <a href="competitions.php" onmouseover="image6.src=loadImage6.src;" onmouseout="image6.src=staticImage6.src;">
<img name="image6" src="/forum/bi2/fldbuttons/competitionssmall.png" border=0></a>

    <a href="casino.php" onmouseover="image8.src=loadImage8.src;" onmouseout="image8.src=staticImage8.src;">
<img name="image8" src="/forum/bi2/fldbuttons/casinosmall.png" border=0></a> 
Than use CSS to center, set the margins and width for navbuttons.
vBCodex - Get help building your vBulletin community.
Get Gravatar support for your vBulletin community.
-- Please do not contact me via PM for vBulletin Support.
Wayne Luke is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

1 out of 1 members found this post helpful.
Old June 30th, 2009, 05:55 PM   #3
Adept
Posts: 180
Join Date: May 2009

Experience: Advanced
Forums Admin/Mod: 3
Software: vBulletin 3.8.x

plazzman will become famous soon enough
Default

Haha, as you can see I'm new.

But thank you SOO much for this. I highly appreciate it.
Fightlockdown
MMA|K-1|BOXING -- Discussion|Analysis|Betting

My Portfolio
plazzman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Reply

Tags
navbar, problems

AdminAddict > Forum and Community Development > Community/Forum Software > vBulletin > Some problems with IE and Navbar


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:55 PM.
Powered by vBulletin®, ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright ©2008-2010 AdminAddict, All Rights Reserved


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53