Comunidad de diseño web y desarrollo en internet online

visualización submenu con Internet Explorer

Citar            
MensajeEscrito el 16 Jun 2011 03:28 am
Hola que tal?? necesito su ayuda una ves mas tengo un submenu creado en dreamweaver pero cuando lo veo en Internet Explores me aparece corrido el submenu y en todos los demAs navegadores me sale bien... saben que puedo hacer para solucionar esto???

les dejo el codigo a ver en que me pueden ayudar

Código HTML :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0032)file:///C://home.html -->
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>Documento sin título</title>
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<script type="text/javascript">
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
<link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
</head>

<body onload="MM_preloadImages('Imagenes/botones2/advertising.png','Imagenes/botones2/editorial1.png','Imagenes/botones2/fashion.png','Imagenes/botones2/beauty.png','Imagenes/botones2/sumerlinger1.png','Imagenes/botones2/portrait.png','Imagenes/botones2/like.png','Imagenes/botones2/personal.png','Imagenes/intro.gif','Imagenes/botones_h/portafolio.gif')">
<table width="852" border="0" align="center" cellpadding="0" cellspacing="0">
  <tbody><tr>
    <td height="30">&nbsp;</td>
  </tr>
  <tr>
    <td height="127"><table width="849" border="0" cellspacing="0">
      <tbody><tr>
        <td width="288" height="90">&nbsp;</td>
        <td width="276"><a href="index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('logo','','Imagenes/intro.gif',1)"><img src="Imagenes/home.gif" name="logo" width="287" height="89" border="0" id="logo" /></a></td>
        <td width="279">&nbsp;</td>
      </tr>
    </tbody></table></td>
  </tr>
  <tr>
    <td height="59"><table width="850" border="0" cellspacing="0">
      <tbody><tr>
        <td width="313" height="64">&nbsp;</td>
        <td width="176"><img src="Imagenes/botones_h/home.gif" width="176" height="46" border="0" usemap="#Map3" /></td>
        <td width="355">&nbsp;</td>
      </tr>
    </tbody></table></td>
  </tr>
  <tr>
    <td height="92"><table width="852" border="0" cellspacing="0">
      <tbody><tr>
        <td width="312" height="90">&nbsp;</td>
        <td width="178"><img src="Imagenes/botones_h/bio.gif" width="176" height="73" border="0" usemap="#Map4" /></td>
        <td width="354">&nbsp;</td>
      </tr>
    </tbody></table></td>
  </tr>
  <tr>
    <td height="30"><table width="854" border="0" cellspacing="0">
      <tbody><tr>
        <td width="306" height="52">&nbsp;</td>
        <td width="177"><ul id="MenuBar2" class="MenuBarVertical">
          <li><a href="porfolio.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('portafolio','','Imagenes/botones_h/portafolio.gif',1)"><img src="Imagenes/botones_h/portafolio.gif" name="portafolio" width="176" height="25" border="0" id="portafolio" /></a></a>
            <ul>
              <li><a href="porfolio.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('advertising','','Imagenes/botones2/advertising.png',1)"><img src="Imagenes/botones2/advertising1.png" name="advertising" width="111" height="15" border="0" id="advertising" /></a></li>
              <li><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('editorial','','Imagenes/botones2/editorial1.png',1)"><img src="Imagenes/botones2/editorial.png" name="editorial" width="111" height="15" border="0" id="editorial" /></a></li>
              <li><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('fashion','','Imagenes/botones2/fashion.png',1)"><img src="Imagenes/botones2/fashio1.png" name="fashion" width="111" height="15" border="0" id="fashion" /></a></li>
              <li><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('beauty','','Imagenes/botones2/beauty.png',1)"><img src="Imagenes/botones2/beauty1.png" name="beauty" width="111" height="15" border="0" id="beauty" /></a></li>
              <li><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('summer','','Imagenes/botones2/sumerlinger1.png',1)"><img src="Imagenes/botones2/sumerlinger.png" name="summer" width="111" height="15" border="0" id="summer" /></a></li>
              <li><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('portrait','','Imagenes/botones2/portrait.png',1)"><img src="Imagenes/botones2/portrait1.png" name="portrait" width="111" height="15" border="0" id="portrait" /></a></li>
              <li><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('like','','Imagenes/botones2/like.png',1)"><img src="Imagenes/botones2/like1.png" name="like" width="111" height="15" border="0" id="like" /></a></li>
              <li><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('personal','','Imagenes/botones2/personal.png',1)"><img src="Imagenes/botones2/personal1.png" name="personal" width="111" height="15" border="0" id="personal" /></a></li>
            </ul>
          </li>
</ul></td>
        <td width="357">&nbsp;</td>
      </tr>
    </tbody></table></td>
  </tr>
  <tr>
    <td height="29"><table width="853" border="0" cellspacing="0">
      <tbody><tr>
        <td width="314" height="47">&nbsp;</td>
        <td width="176"><img src="Imagenes/botones_h/contac.gif" width="176" height="29" border="0" usemap="#Map5" /></td>
        <td width="357">&nbsp;</td>
      </tr>
    </tbody></table></td>
  </tr>
  <tr>
    <td height="40"><table width="854" border="0" cellspacing="0">
      <tbody><tr>
        <td width="307" height="61">&nbsp;</td>
        <td width="175"><img src="Imagenes/botones_h/video.gif" width="176" height="46" border="0" usemap="#Map6" /></td>
        <td width="350">&nbsp;</td>
      </tr>
    </tbody></table></td>
  </tr>
  <tr>
    <td height="46"><table width="856" border="0" cellspacing="0">
      <tbody><tr>
        <td width="309" height="30">&nbsp;</td>
        <td width="185"><img src="Imagenes/botones_h/recent.gif" width="176" height="18" /></td>
        <td width="356">&nbsp;</td>
      </tr>
    </tbody></table></td>
  </tr>
  <tr>
    <td height="33">&nbsp;</td>
  </tr>
  <tr>
    <td height="45"><table width="854" border="0" cellspacing="0">
      <tbody><tr>
        <td width="67" height="44"><img src="Imagenes/twifaflik.gif" width="67" height="23" border="0" usemap="#Map" /></td>
        <td width="722">&nbsp;</td>
        <td width="59"><img src="Imagenes/foi_logo.png" width="59" height="31" border="0" usemap="#Map2" /></td>
      </tr>
    </tbody></table></td>
  </tr>
</tbody></table>
<map name="Map" id="Map">
  <area shape="rect" coords="2,4,22,22" href="http://www.xxxxxxxxxxx.com/" target="_blank" />
  <area shape="rect" coords="26,5,45,21" href="http://www.xxxxxxxxxxxxxxxxx" target="_blank" />
  <area shape="rect" coords="50,4,65,21" href="twitter.com/ " target="_blank" />
</map>
<map name="Map2" id="Map2">
  <area shape="rect" coords="1,-3,59,31" href="http://www.xxxxxxxxxxxx/" target="_blank" />
</map>
<map name="Map3" id="Map3">
  <area shape="rect" coords="1,4,172,43" href="home.html" />
</map>
<map name="Map4" id="Map4">
  <area shape="rect" coords="4,-5,175,72" href="bios.html" />
</map>
<map name="Map5" id="Map5">
  <area shape="rect" coords="4,-4,175,30" href="contacto.html" />
</map>
<map name="Map6" id="Map6">
  <area shape="rect" coords="1,-5,176,45" href="video.html" />
</map>
<script type="text/javascript">
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
</script>
</body></html>

Por noxivodrums

20 de clabLevel



 

Barranquilla-Colombia

chrome
Citar            
MensajeEscrito el 16 Jun 2011 03:36 am
aca esta el css


Código HTML :

ul.MenuBarVertical
{
   margin: 0;
   padding: 0;
   list-style-type: none;
   font-size: 100%;
   cursor: default;
   width: 0px;
}
/* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
ul.MenuBarActive
{
   z-index: 1000;
}
/* Menu item containers, position children relative to this container and are same fixed width as parent */
ul.MenuBarVertical li
{
   margin: 0;
   list-style-type: none;
   font-size: 100%;
   position: relative;
   text-align: left;
   cursor: pointer;
   width: 12em;
   padding: 0;
}
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
ul.MenuBarVertical ul
{
   margin: -5% 0 0 95%;
   padding: 0;
   list-style-type: none;
   font-size: 100%;
   position: absolute;
   z-index: 1020;
   cursor: default;
   width: 8.2em;
   left: -1000em;
   top: -88px;
}
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
ul.MenuBarVertical ul.MenuBarSubmenuVisible
{
   left: 17px;
}
/* Menu item containers are same fixed width as parent */
ul.MenuBarVertical ul li
{
   width: 8.2em;
}

/*******************************************************************************

 DESIGN INFORMATION: describes color scheme, borders, fonts

 *******************************************************************************/

/* Outermost menu container has borders on all sides */
ul.MenuBarVertical
{
   border: 0px solid #000;
}
/* Submenu containers have borders on all sides */
ul.MenuBarVertical ul
{
   border: 0px solid #000;
}
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarVertical a
{
   display: block;
   cursor: pointer;
   padding: 0.5em 0.75em;
   text-decoration: none;
}
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus
{

}
/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarVertical a.MenuBarItemSubmenuHover, ul.MenuBarVertical a.MenuBarSubmenuVisible
{

}

/*******************************************************************************

 SUBMENU INDICATION: styles if there is a submenu under a given menu item

 *******************************************************************************/

/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarVertical a.MenuBarItemSubmenu
{
   background-image: url(SpryMenuBarRight.gif);
   background-repeat: no-repeat;
   background-position: 95% 50%;
}

/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarVertical a.MenuBarItemSubmenuHover
{
   background-image: url(SpryMenuBarRightHover.gif);
   background-repeat: no-repeat;
   background-position: 95% 50%;
}

/*******************************************************************************

 BROWSER HACKS: the hacks below should not be changed unless you are an expert

 *******************************************************************************/

/* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
ul.MenuBarVertical iframe
{
   position: absolute;
   z-index: 1010;
   filter:alpha(opacity:0.1);
}
/* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
@media screen, projection
{
   ul.MenuBarVertical li.MenuBarItemIE
   {
   display: inline;
   f\loat: left;
   }
}

Por noxivodrums

20 de clabLevel



 

Barranquilla-Colombia

chrome

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.