Solved

Navigation duplicates button in IE 6

Posted on 2010-08-13
10
207 Views
Last Modified: 2012-05-10
Client has IE 6 and their company will not allow an upgrade.  Using IE 6, we are running into issues and I am sure it has to do with commenting.  The problem is that the Club Presidents button is being duplicated.  Any idea how to fix it?  

http://www.rotary6270.org/test.html
http://www.rotary6270.org/wide.css
<!--CLUB PRESIDENTS BUTTON -->
     <li><a href="club_presidents.html">Club Presidents</a><!--[if lte IE 6]>
  	<a href="club_presidents.html">Club Presidents
  	<table><tr><td>
 	<![endif]-->
       <ul><li><a href="checklist.html">Check List Calendar</a><li>
       </ul>
       <!--[if lte IE 6]>
   	</td></tr></table>
   	</a>
   	<![endif]-->
     </li>

Open in new window

0
Comment
Question by:nsitedesigns
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
10 Comments
 
LVL 42

Accepted Solution

by:
David S. earned 500 total points
ID: 33433869
Try the following code.

P.S. Why do you keep using the conditional comments like that when they give you so many problems? Using them like that is an ugly hack anyway.
<!--CLUB PRESIDENTS BUTTON -->
     <li><a href="club_presidents.html">Club Presidents<!--[if gte IE 7]><!--></a><!--<![endif]-->
       <!--[if lte IE 6]><table><tr><td><![endif]-->
       <ul><li><a href="checklist.html">Check List Calendar</a><li>
       </ul>
       <!--[if lte IE 6]>
   	</td></tr></table>
   	</a>
   	<![endif]-->
     </li>

Open in new window

0
 

Author Comment

by:nsitedesigns
ID: 33433894
This site is a mess and has been since day one, years ago.  Someone else did the coding on the navigation and it was working ok for awhile until I had to add this button with a drop down. You are right, it is butt-ugly but I am so busy that I just never take the time to fix.  No excuses.  I will try you fix.  Back in a second.
0
 

Author Closing Comment

by:nsitedesigns
ID: 33433921
thanks for the quick fix!
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:nsitedesigns
ID: 33446651
Turns out the "fix" did not fix the problem.  Still showing duplicate Club President's buttons for client.  She is not allowed to upgrade to higher version of IE.  I know - - I know.  Nothing I can do about it.

http://www.rotary6270.org/
http://www.rotary6270.org/wide.css
http://www.rotary6270.org/wide_ie.css
0
 
LVL 42

Expert Comment

by:David S.
ID: 33446860
That page does not have the change I suggested. It seems it somehow got reverted to how it was previously.
0
 

Author Comment

by:nsitedesigns
ID: 33446924
Ugh!  You are right.  Too many balls in the air this morning.  We tested it on Friday and it worked but I forgot to incorporate your coding into other pages.  My apologies!
0
 
LVL 42

Expert Comment

by:David S.
ID: 33447017
Are all of those pages really completely static?  Making changes like this would be a whole lot easier if you were using PHP includes or SSI to include common page parts, e.g. that menu, on each page.
0
 

Author Comment

by:nsitedesigns
ID: 33447092
I will do a find and replace.  I don't know PHP or SSI.  : (
0
 
LVL 42

Expert Comment

by:David S.
ID: 33448292
You only need to learn a very small amount PHP to use PHP includes and SSI is similarly easy to learn. In the long run, they are definitely worth using. (I recommend PHP because it can be used to do many more things than just this.)  For this site, it may not be worth the trouble to retrofit it, but the next time you make a new site, using either of them will definitely be worth it.

Here's a little tutorial for using PHP includes: http://www.joe2torials.com/view_tutorial.php?view=3

Here's information on SSI: http://en.wikipedia.org/wiki/Server_Side_Includes
0
 

Author Comment

by:nsitedesigns
ID: 33448432
Thanks Kravey!
0

Featured Post

Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn how to dynamically set the form action using jQuery.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question