Показать сообщение отдельно
  #1 (permalink)  
Старый 16.01.2014, 21:23
Новичок на форуме
Отправить личное сообщение для zedsergei Посмотреть профиль Найти все сообщения от zedsergei
 
Регистрация: 16.01.2014
Сообщений: 2

помогите реализовать идею меню
html
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<link href="file:///C|/Users/сергей/Documents/сайт/par_menu.css" rel="stylesheet" type="text/css" />
<div id="gl_menu_b1"><div id="centr1"><div id="centr2">
<SCRIPT src="file:///C|/Users/сергей/Documents/сайт/par_menu.js" type="text/javascript"></SCRIPT>
</div></div></div>
<br><br><br><br><br><br><br><br><br><br><br><br><b r>
<br><br><br><br><br><br><br><br><br><br><br><br><b r>
<br><br><br><br><br><br><br><br><br><br><br><br><b r>
<br><br><br><br><br><br><br><br><br><br><br><br><b r>
<br><br><br><br><br><br><br><br><br><br><br><br><b r>

css
@charset "windows-1251";
/* CSS Document */

#gl_menu_b1{
width: 100%;
height: 35px;
background: #545454;
top: 0;
left: 0;
position: fixed;
z-index: 101;
font: normal 12px Arial, sans-serif;
}
/*--------------------------------------------------*/
#centr1{
position: relative;
float: right;
right: 50%;
}
#centr2{
position: relative;
float: left;
left: 50%;
}
/*--------------------------------------------------*/
#nav {padding:0; margin:0; list-style:none; height:38px; background:#fff url(../images/six_0.gif) repeat-x; position:relative; z-index:200; font-family:arial, verdana, sans-serif;}
#nav li.top {display:block; float:left;}
#nav li a.top_link {display:block; float:left; height:35px; line-height:33px; color:#fff; text-decoration:none; font-size:11px; font-weight:bold; padding:0 0 0 12px; cursorointer;background: #171717;}
#nav li a.top_link span {float:left; display:block; padding:0 24px 0 12px; height:35px; background: url(../images/six_0.gif) right top no-repeat;}
#nav li a.top_link span.down {float:left; display:block; padding:0 24px 0 12px; height:35px; background: url(../images/six_0a.gif) no-repeat right top;}

#nav li:hover a.top_link,
#nav a.top_link:hover
{color:#ccc; background: #000000;}
#nav li:hover a.top_link span,
#nav a.top_link:hover span
{background:url(../images/six_1.gif) no-repeat right top;}
#nav li:hover a.top_link span.down,
#nav a.top_link:hover span.down
{background:url(../images/six_1a.gif) no-repeat right top; padding-bottom:3px;}

#nav table {border-collapse:collapse; padding:0; margin:0; position:absolute; left:0; top:0;}

#nav li:hover {position:relative; z-index:200;}
#nav a:hover {position:relative; white-space:normal; z-index:200;}

#nav :hover ul.sub
{left:1px; top:38px; background: #50b5d0; padding:3px; border:1px solid #0b4d97; white-space:nowrap; width:90px; height:auto; z-index:300;}
#nav :hover ul.sub li
{display:block; height:20px; position:relative; float:left; width:90px; font-weight:normal;}
#nav :hover ul.sub li a
{display:block; font-size:11px; height:18px; width:88px; line-height:18px; text-indent:5px; color:#000; text-decoration:none;border:1px solid #50b5d0;}
#nav li ul.sub li a.fly
{background:#50b5d0 url(../images/arrow.gif) 80px 6px no-repeat;}
#nav :hover ul.sub li a:hover
{background:#3f96a9; color:#fff; border-color:#fff;}
#nav :hover ul.sub li a.fly:hover
{background:#3f96a9 url(../images/arrow_over.gif) 80px 6px no-repeat; color:#fff;}

#nav li b {display:block; font-size:11px; height:18px; width:88px; line-height:18px; margin-bottom:3px; text-indent:6px; color:#ff6; border-bottom:1px solid #ff6; cursor:default;}

#nav a:hover a:hover ul,
#nav a:hover a:hover a:hover ul,
#nav a:hover a:hover a:hover a:hover ul,
#nav a:hover a:hover a:hover a:hover a:hover ul
{left:89px; top:-4px; background: #50b5d0; padding:3px; border:1px solid #0b4d97; white-space:nowrap; width:90px; z-index:400; height:auto;}

#nav ul,
#nav a:hover ul ul,
#nav a:hover a:hover ul ul,
#nav a:hover a:hover a:hover ul ul,
#nav a:hover a:hover a:hover a:hover ul ul
{position:absolute; left:-9999px; top:-9999px; width:0; height:0; margin:0; padding:0; list-style:none;}

#nav li:hover li:hover > ul
{left:90px; top:-4px; background: #50b5d0; padding:3px; border:1px solid #0b4d97; white-space:nowrap; width:90px; z-index:400; height:auto;}
#nav li:hover > ul ul
{position:absolute; left:-9999px; top:-9999px; width:0; height:0; margin:0; padding:0; list-style:none;}
#nav li:hover li:hover > a.fly
{background:#3f96a9 url(../images/arrow_over.gif) 80px 6px no-repeat; color:#fff; border-color:#fff;}
#nav li:hover li:hover > li a.fly
{background:#50b5d0 url(../images/arrow.gif) 80px 6px no-repeat; color:#000; border-color:#50b5d0;}

js хотел так чтобы мог управлять меню с 1 сайта на нескольких
// JavaScript Document

document.write ("<ul id=nav>");

document.write (" <li class=top><a href=href class=top_link><span> пончик </span></a></li>");

document.write (" <li class=top><a href=href id=products class=top_link><span class=down>Products</span></a>");
document.write (" <ul class=sub>");
document.write (" <li><a href=>Cameras</a>");
document.write (" <ul>");
document.write (" <li><a href=>Nikon</a></li>");
document.write (" <li><a href=>Minolta</a></li>");
document.write (" <li><a href=>Pentax</a></li>");
document.write (" </ul>");
document.write (" </li>");
document.write (" <li><a href=>Lenses</a>");
document.write (" <ul>");
document.write (" <li><a href=>Wide Angle</a></li>");
document.write (" <li><a href=>Standard</a></li>");
document.write (" <li><a href=>Telephoto</a></li>");
document.write (" <li><a href= class=fly>Zoom</a>");
document.write (" <ul>");
document.write (" <li><a href=>35mm to 125mm</a></li>");
document.write (" <li><a href=>50mm to 250mm</a></li>");
document.write (" <li><a href=>125mm to 500mm</a></li>");
document.write (" </ul>");
document.write (" </li>");
document.write (" <li><a href=>Mirror</a></li>");
document.write (" <li><a href= class=>Non standard</a>");
document.write (" <ul>");
document.write (" <li><a href=>Bayonet mount</a></li>");
document.write (" <li><a href=>Screw mount</a></li>");
document.write (" </ul>");
document.write (" </li>");
document.write (" </ul>");
document.write (" </li>");
document.write (" <li><a href=>Flash Guns</a></li>");
document.write (" <li><a href=>Tripods</a></li>");
document.write (" <li><a href=>Filters</a></li>");
document.write (" </ul>");
document.write (" </li>");
document.write (" <li class=top><a href=#nogo22 id=services class=top_link><span class=down>Services</span></a>");
document.write (" <ul class=sub>");
document.write (" <li><a href=>Printing</a></li>");
document.write (" <li><a href=>Photo Framing</a></li>");
document.write (" <li><a href=>Retouching</a></li>");
document.write (" <li><a href=>Archiving</a></li>");
document.write (" </ul>");
document.write (" </li>");

document.write (" <li class=top><a href=#nogo57 id=privacy class=top_link><span>Privacy Policy</span></a></li>");
document.write ("</ul>");
Ответить с цитированием