Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

problem with special code for Internet Explorer


Reply


716 Views

Avatar
ojalà

Community Member, 87 Posts

22 October 2008 at 11:13pm

Hi!
I crweate a dorpdown menu whitouth javascript. I a normal site buid with dreamweaver this is ok, but with silverstripe I can't see dropdown menu only with IE browser, with firefox it's ok..why?Silverstripe can read the following special code for IE?

<!--[if lte IE 6]>
<table><tr><td>
<![endif]-->

in my code I have this:

<div class="menu">
   <ul>
   <% control Menu(1) %>
      <li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode">$MenuTitle</a>
         <!--[if lte IE 6]>
<table><tr><td>
<![endif]-->
         <% if Children %>
         <ul>
       <% control Children %>
         <li><a href="$Link" title="Go to the $Title.XML page" <% if LinkingMode %>class="$LinkingMode"<% end_if %>>$MenuTitle</a></li>
      <% end_control %>
      </ul>
         <% end_if %>
      <!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->
      </li>
   <% end_control %>
</ul>
</div>