farshid.kh
چهارشنبه 09 بهمن 1392, 02:27 صبح
سلام این کدم هست چطور میتونم کاری کنم تا با هدرم این منو هم حرکت کنه؟لطفا بطور کامل توضیح بدید بنده کد نویسی بلد نیستم
<style>
.topmenu ul , .topmenu li , .topmenu a {
margin: 0;
padding: 0;
outline: 0;
z-index:99999999;
}
.topmenu {
height: 35px;
background: #7ebd2e;
background: -webkit-gradient(linear, left top, left bottom, from(#7ebd2e), to(#62af00)); /* for webkit browsers */
background: -moz-linear-gradient(top, #7ebd2e, #62af00); /* for firefox 3.6+ */
background: -o-linear-gradient(top, #7ebd2e, #62af00); /* for firefox 3.6+ */
filter: progid:DXImageTransform.Microsoft.gradient(startCo lorstr=#7ebd2e, endColorstr=#62af00);
position: fix;
top: 6px;
padding-right : 2%;
}
.topmenu li {
position: relative;
list-style: none;
float: right;
display: block;
height: 35px;
}
.topmenu li a {
display: block;
padding-right: 14px;
padding-left: 14px;
margin-top: 2px;
line-height: 31px;
text-decoration: none;
border-left: 1px solid #94d442;
border-right: 1px solid #5c9d0a;
font-family: BKoodakBold, Tahoma, Arial, sans-serif;
font-weight: normal;
font-size: 13px;
color: #ffffff;
text-shadow: 1px 1px 1px rgba(0,0,0,.6);
-webkit-transition: color .2s ease-in-out;
-moz-transition: color .2s ease-in-out;
-o-transition: color .2s ease-in-out;
-ms-transition: color .2s ease-in-out;
transition: color .2s ease-in-out;
}
.topmenu li:hover {
background: #7ba941;
background: -webkit-gradient(linear, left top, left bottom, from(#7ba941), to(#60971a)); /* for webkit browsers */
background: -moz-linear-gradient(top, #7ba941, #60971a); /* for firefox 3.6+ */
background: -o-linear-gradient(top, #7ba941, #60971a); /* for firefox 3.6+ */
filter: progid:DXImageTransform.Microsoft.gradient(startCo lorstr=#7ba941, endColorstr=#60971a);
}
.topmenu .noli:hover {
background: #7ebd2e;
background: -webkit-gradient(linear, left top, left bottom, from(#7ebd2e), to(#62af00)); /* for webkit browsers */
background: -moz-linear-gradient(top, #7ebd2e, #62af00); /* for firefox 3.6+ */
background: -o-linear-gradient(top, #7ebd2e, #62af00); /* for firefox 3.6+ */
filter: progid:DXImageTransform.Microsoft.gradient(startCo lorstr=#7ebd2e, endColorstr=#62af00);
}
.topmenu li:first-child a { border-right: none; }
.topmenu li:last-child a{ border-left: none; }
.topmenu li:hover > a { color: #ffffff; }
.topmenu ul {
opacity: 0;
visibility:hidden;
-webkit-transition: opacity .25s ease .1s;
-moz-transition: opacity .25s ease .1s;
-o-transition: opacity .25s ease .1s;
-ms-transition: opacity .25s ease .1s;
transition: opacity .25s ease .1s;
position:absolute;
top:35px;
right:0;
background: #373737;
width: 160px;
}
.topmenu ul li {
border: none;
height: 30px;
width: 157px;
text-align:right;
padding-right:3px;
}
.topmenu ul li:hover {
background:none;
border-right:3px solid #8eff00;
padding-right:0;
}
.topmenu ul li a {
margin-top:auto;
margin-bottom:auto;
color: #ffffff;
font-family:Tahoma;
font-size:12px;
border: none;
font-weight: normal;
}
.topmenu ul li:last-child a{ border-bottom: none; }
.topmenu li:hover ul {
opacity: 1;
visibility:visible;
}
.topmenu li:hover ul ul {
display:none;
position:absolute;
top:0;
right:160px;
}
.topmenu li:hover ul li:hover ul {
display:block;
}
.topmenu li:hover ul li:hover ul ul {
display:none;
}
.topmenu li:hover ul li:hover ul li:hover ul {
display:block;
}
.topmenu li:hover ul li:hover ul li:hover ul ul {
display:none;
}
.topmenu li:hover ul li:hover ul ul li:hover ul {
display:block;
}
</style>
<div class="topmenu" style="background: #7ebd2e;
background: -webkit-gradient(linear, left top, left bottom, from(#7ebd2e), to(#62af00)); /* for webkit browsers */
background: -moz-linear-gradient(top, #7ebd2e, #62af00); /* for firefox 3.6+ */
background: -o-linear-gradient(top, #7ebd2e, #62af00); /* for firefox 3.6+ */
filter: progid:DXImageTransform.Microsoft.gradient(startCo lorstr=#7ebd2e, endColorstr=#62af00); -moz-border-radius:5px;
-webkit-border-radius:5px;border-radius:5px;width:93%;margin-right:auto;margin-left:auto;height:35px;
border: 1px solid #C0C0C0;box-shadow:0 1px 3px #000000;position:absolute;bottom:5px;left:2.5%;">
<li><a href="http://Never-Land.Ir">صفحه اصلی</a></li>
<li><a href="/index">انجمن</a></li>
<li><a href="/search">جستوجو</a></li>
<li><a href="/memberlist">لیست اعضا</a></li>
<li><a href="/calendar.php">تقویم</a></li>
<li><a href="/help">راهنما</a></li>
<li><a href=#">دیگر امکانات</a>
<ul>
<li><a href="/upload" title="آپلودسنتر">آپلودسنتر</a></li>
<li><a href="/hafez">فال حافظ</a></li>
</ul>
</li>
</td></tr></table> </form></div>
</div>
<style>
.topmenu ul , .topmenu li , .topmenu a {
margin: 0;
padding: 0;
outline: 0;
z-index:99999999;
}
.topmenu {
height: 35px;
background: #7ebd2e;
background: -webkit-gradient(linear, left top, left bottom, from(#7ebd2e), to(#62af00)); /* for webkit browsers */
background: -moz-linear-gradient(top, #7ebd2e, #62af00); /* for firefox 3.6+ */
background: -o-linear-gradient(top, #7ebd2e, #62af00); /* for firefox 3.6+ */
filter: progid:DXImageTransform.Microsoft.gradient(startCo lorstr=#7ebd2e, endColorstr=#62af00);
position: fix;
top: 6px;
padding-right : 2%;
}
.topmenu li {
position: relative;
list-style: none;
float: right;
display: block;
height: 35px;
}
.topmenu li a {
display: block;
padding-right: 14px;
padding-left: 14px;
margin-top: 2px;
line-height: 31px;
text-decoration: none;
border-left: 1px solid #94d442;
border-right: 1px solid #5c9d0a;
font-family: BKoodakBold, Tahoma, Arial, sans-serif;
font-weight: normal;
font-size: 13px;
color: #ffffff;
text-shadow: 1px 1px 1px rgba(0,0,0,.6);
-webkit-transition: color .2s ease-in-out;
-moz-transition: color .2s ease-in-out;
-o-transition: color .2s ease-in-out;
-ms-transition: color .2s ease-in-out;
transition: color .2s ease-in-out;
}
.topmenu li:hover {
background: #7ba941;
background: -webkit-gradient(linear, left top, left bottom, from(#7ba941), to(#60971a)); /* for webkit browsers */
background: -moz-linear-gradient(top, #7ba941, #60971a); /* for firefox 3.6+ */
background: -o-linear-gradient(top, #7ba941, #60971a); /* for firefox 3.6+ */
filter: progid:DXImageTransform.Microsoft.gradient(startCo lorstr=#7ba941, endColorstr=#60971a);
}
.topmenu .noli:hover {
background: #7ebd2e;
background: -webkit-gradient(linear, left top, left bottom, from(#7ebd2e), to(#62af00)); /* for webkit browsers */
background: -moz-linear-gradient(top, #7ebd2e, #62af00); /* for firefox 3.6+ */
background: -o-linear-gradient(top, #7ebd2e, #62af00); /* for firefox 3.6+ */
filter: progid:DXImageTransform.Microsoft.gradient(startCo lorstr=#7ebd2e, endColorstr=#62af00);
}
.topmenu li:first-child a { border-right: none; }
.topmenu li:last-child a{ border-left: none; }
.topmenu li:hover > a { color: #ffffff; }
.topmenu ul {
opacity: 0;
visibility:hidden;
-webkit-transition: opacity .25s ease .1s;
-moz-transition: opacity .25s ease .1s;
-o-transition: opacity .25s ease .1s;
-ms-transition: opacity .25s ease .1s;
transition: opacity .25s ease .1s;
position:absolute;
top:35px;
right:0;
background: #373737;
width: 160px;
}
.topmenu ul li {
border: none;
height: 30px;
width: 157px;
text-align:right;
padding-right:3px;
}
.topmenu ul li:hover {
background:none;
border-right:3px solid #8eff00;
padding-right:0;
}
.topmenu ul li a {
margin-top:auto;
margin-bottom:auto;
color: #ffffff;
font-family:Tahoma;
font-size:12px;
border: none;
font-weight: normal;
}
.topmenu ul li:last-child a{ border-bottom: none; }
.topmenu li:hover ul {
opacity: 1;
visibility:visible;
}
.topmenu li:hover ul ul {
display:none;
position:absolute;
top:0;
right:160px;
}
.topmenu li:hover ul li:hover ul {
display:block;
}
.topmenu li:hover ul li:hover ul ul {
display:none;
}
.topmenu li:hover ul li:hover ul li:hover ul {
display:block;
}
.topmenu li:hover ul li:hover ul li:hover ul ul {
display:none;
}
.topmenu li:hover ul li:hover ul ul li:hover ul {
display:block;
}
</style>
<div class="topmenu" style="background: #7ebd2e;
background: -webkit-gradient(linear, left top, left bottom, from(#7ebd2e), to(#62af00)); /* for webkit browsers */
background: -moz-linear-gradient(top, #7ebd2e, #62af00); /* for firefox 3.6+ */
background: -o-linear-gradient(top, #7ebd2e, #62af00); /* for firefox 3.6+ */
filter: progid:DXImageTransform.Microsoft.gradient(startCo lorstr=#7ebd2e, endColorstr=#62af00); -moz-border-radius:5px;
-webkit-border-radius:5px;border-radius:5px;width:93%;margin-right:auto;margin-left:auto;height:35px;
border: 1px solid #C0C0C0;box-shadow:0 1px 3px #000000;position:absolute;bottom:5px;left:2.5%;">
<li><a href="http://Never-Land.Ir">صفحه اصلی</a></li>
<li><a href="/index">انجمن</a></li>
<li><a href="/search">جستوجو</a></li>
<li><a href="/memberlist">لیست اعضا</a></li>
<li><a href="/calendar.php">تقویم</a></li>
<li><a href="/help">راهنما</a></li>
<li><a href=#">دیگر امکانات</a>
<ul>
<li><a href="/upload" title="آپلودسنتر">آپلودسنتر</a></li>
<li><a href="/hafez">فال حافظ</a></li>
</ul>
</li>
</td></tr></table> </form></div>
</div>