Jump to content
  • 0

проблема с ослом!


Gorik
 Share

Question

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="menu.css">
<script language="JavaScript">
function startMenu() {
if (document.getElementById) {
nav = document.getElementById('menu');
for (i=0; i<nav.childNodes.length; i++) {
node = nav.childNodes[i];
if (node.nodeName == 'LI') {
node.onmouseover = function() {
this.className = 'over';
}
node.onmouseout = function() {
this.className = '';
}
}
}
}
}
</script>

</head>
<body onLoad="startMenu()">
<ul id=menu>
<li><a style="background-image: url(img/triangle.gif)" class=brd>bsebsebserb</a>
<ul>
<li><a style="background-image: url(img/triangle.gif)" class=brd>drbdsbrdbsbr</a>
<ul>
<li><a href="about/nakaz.shtml" class=brd>srsarbserbrb</a></li>
<li><a href="about/statut.shtml" class=brd>srbsrbb</a></li>
<li><a href="about/kerivn.shtml" class=brd>btftbdrbdbr</a></li>
<li><a href="java script:ShowStructure()" class=brd>wewewewwew</a></li>
</ul>
</li>
<li><a href="about/divisions.shtml" class=brd>hjh,ghj,gj,gj,</a></li>
<li><a href="about/rems.shtml" class=brd>blahrthdrthrdhtr</a></li>
<li><a href="about/obladn.shtml" class=brd>fummmfmufumm</a></li>
<li><a href="about/newtechn.shtml" class=brd>fynfnfnfnyfnfy</a></li>
<li><a href="about/history.shtml" class=brd>fynfnnfnfnynfyn</a></li>
</ul>
</li>
<li><a href="./pers/Zmist.html" style="background-image: none" class=brd>fnyfnfnfynfynfnyfnyf</a>
</li>
<li><a href="strateg.shtml" style="background-image: none" class=brd>fynfnyyyyyyyyf</a>
</li>
<li><a href="zvern.shtml" style="background-image: none" class=brd>nfytntytyt</a></li>
<li><a href="dovidk.shtml" style="background-image: none" class=brd>ryrnrytrntreytty</a></li>
<li><a href="dovidk/taryf.htm" style="background-image: none" class=brd>eyneneyeyttheh</a></li>
<li><a href="jobs.php" style="background-image: none" class=brd>ehthetrhrrrete</a></li>
<li><a href="newsarch.php" style="background-image: none" class=brd>tehehretretert</a></li>
<li><a href="sitemap.shtml" style="background-image: none" class=brd>hterhtetghethett</a></li>
<li><a href="gbook/gbook.php" style="background-image: none" class=brd>ethetertherthet</a></li>
<li><a href="/cgi-bin/search.cgi" style="background-image: none" class=brd>erterdes</a></li>
</ul>
</body>
</html>

В Опере и Мозиле все гуд а в ИЕ глюк... Посоветуйте че нить плис!

код menu.css

 UL {
width: 140px;
list-style: none;
margin: 0px;
padding: 0px;
font-family: Arial, sans-serif;
font-size: 10pt
}
UL LI {
position: relative
}
LI UL {
position: absolute;
display: none;
top: 0px;
left: 152px;
z-index: 1
}
LI A {
display: block;
width: 100%;
padding: 5px;
text-decoration: none;
background:
url(img/triangle.gif)
right center
no-repeat;
color: #FFFFFF;
border: 1px solid #003399;
background-color: #003399;
border-bottom: none
}
LI UL LI A {
background-image: none;
z-index: 2
}
LI A:hover {
color: #000000;
background-color: #FFFFFF
}
LI:hover UL, LI.over UL {
display: block
}
.brd {
border-bottom: 1px solid #ccc
}

ЗЫ немного переработана менюшка bye Влад Мержевич

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Надо либо поставить другой доктайп, либо изменить код:

 LI UL {
position: absolute;
display: none;
top: 0px;
left: 152px;
//left: 140px;
z-index: 1
}

А так-же перенести под все li:

   <li>
<ul>
<li>
<ul>
<li><a href="about/nakaz.shtml" class=brd>srsarbserbrb</a></li>
<li><a href="about/statut.shtml" class=brd>srbsrbb</a></li>
<li><a href="about/kerivn.shtml" class=brd>btftbdrbdbr</a></li>
<li><a href="java script:ShowStructure()" class=brd>wewewewwew</a></li>
</ul>
<a style="background-image: url(img/triangle.gif)" class=brd>drbdsbrdbsbr</a>
</li>
<li><a href="about/divisions.shtml" class=brd>hjh,ghj,gj,gj,</a></li>
<li><a href="about/rems.shtml" class=brd>blahrthdrthrdhtr</a></li>
<li><a href="about/obladn.shtml" class=brd>fummmfmufumm</a></li>
<li><a href="about/newtechn.shtml" class=brd>fynfnfnfnyfnfy</a></li>
<li><a href="about/history.shtml" class=brd>fynfnnfnfnynfyn</a></li>
</ul>
<a style="background-image: url(img/triangle.gif)" class=brd>bsebsebserb</a>
</li>

Link to comment
Share on other sites

  • 0

Не знаю, я с рисунками не смотрел поскольку они фоновые и не должны ни на что влиять...

Вот это специально для ие:

  //left: 140px;

Остальные браузеры этого кода не видят. То есть Опера, Фаерфокс и тд будут видеть только left: 152px;

Link to comment
Share on other sites

  • 0

ну если можеш посмотри плис почему в ИЕ между пунктами(у которых есть подменюи соответственно фоновый рисунеок) основного меню появляэтса белая полоса!

заранее благодарен )

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy