سلام چطور میشه رنگ این trans menu 2 رو عوض کرد کجا باید برم ؟
الان نارنجی پر رنگه وقتی میریم رو میشه نارنجی کم رنگ .
نمایش نسخه قابل چاپ
سلام چطور میشه رنگ این trans menu 2 رو عوض کرد کجا باید برم ؟
الان نارنجی پر رنگه وقتی میریم رو میشه نارنجی کم رنگ .
سلام
در فایل CSS خود ماژول تغییراتتون رو اعمال کنید
یا علی
توی این ماژول دو تا فایل css هست یکیش transmenuh.css و دیگری transmenuv.css
رنگ مورد نظر که وقتی ماژول فعاله (نارنجی پر رنگ) هگزا دسیمالش اینه : C63C00 و رنگ دیگه که وقتی موس روش میره (نارنجی کمرنگ ) : F79A00
و رنگهایی که میخوام جایگزین کنم یکیش مشکی : 000000 و خاکستری : C0C0C0 هست که من توی این دوتا css هرجا این رنگا رو دیدم جایگزین کردم و سیو کردم ولی جواب نداد .
من فایل های css رو میذارم هرکی میتونه کمک کنه !!
فایل transmenuh.css
و فایل transmenuv.cssکد:/* TRANSMENU CSS FOR RHUK_PLANETFALL TEMPLATE*/
/* this is the clipping region for the menu. it's width and height get set by script, depending on the size of the items table */
.transMenu {
position:absolute;
overflow:hidden;
left:-1000px;
top:-1000px;
}
/* this is the main container for the menu itself. it's width and height get set by script, depending on the size of the items table */
.transMenu .content {
position:absolute;
}
/* this table comprises all menu items. each TR is one item. It is relatively positioned so that the shadow and background transparent divs can be positioned underneath it */
.transMenu .items {
position:relative;
left:0px; top:0px;
z-index:2;
text-indent:5px;
}
.transMenu.top .items {
border-top:none;
}
/* each TR.item is one menu item */
.transMenu .item{
font-size:11px;
text-decoration:none;
font-weight:bold;
margin: 0px;
display:block;
/* this is a hack for mac/ie5, whom incorrectly cascades the border properties of the parent table to each row */
border:none;
cursor:pointer;
cursor:hand;
border-bottom: 1px solid #000;
}
/* this DIV is the semi-transparent white background of each menu. the -moz-opacity is a proprietary way to get transparency in mozilla, the filter is for IE/windows 5.0+. */
/* we set the background color in script because ie mac does not use it; that browser only uses a semi-transparent white PNG that the spacer gif inside this DIV is replaced by */
.transMenu .background {
position:absolute;
left:0px; top:0px;
z-index:1;
-moz-opacity:.8;
filter:alpha(opacity=80);
}
/* same concept as .background, but this is the sliver of shadow on the right of the menu. It's left, height, and background are set by script. In IE5/mac, it uses a PNG */
.transMenu .shadowRight {
position:absolute;
z-index:3;
top:3px; width:2px;
-moz-opacity:.4;
filter:alpha(opacity=40);
}
/* same concept as .background, but this is the sliver of shadow on the bottom of the menu. It's top, width, and background are set by script. In IE5/mac, it uses a PNG */
.transMenu .shadowBottom {
position:absolute;
z-index:1;
left:3px; height:2px;
-moz-opacity:.4;
filter:alpha(opacity=40);
}
/* this is the class that is used when the mouse is over an item. script sets the row to this class when required. */
.transMenu .item.hover {
background: #FF6600;
}
.transMenu .item.hover td {color:#3366CC;}
/* this is either the dingbat that indicates there is a submenu, or a spacer gif in it's place. We give it extra margin to create some space between the text and the dingbat */
.transMenu .item img {
margin-left:10px;
}
.transMenu .item#active {
background:#ff0000;
color:black;
-moz-opacity:.6;
filter:alpha(opacity=60);
}
.transMenu .item#active.hover {
background:#3366CC;
}
.transMenu .item td{
color:#000;
font-weight:bold;
}
/* For first level menu.*/
#wrap {
margin: 0px;
padding: 0px;
}
#menu {
}
a.mainlevel-trans:link, a.mainlevel-trans:visited {
font-family: Tahoma, Helvetica, sans-serif;
text-decoration:none;
font-size: 11px;
font-weight:bold;
color:#000;
white-space:nowrap;
line-height: 26px;
border-right: 1px solid #FFF;
display: block;
height: 26px;
width:auto;
margin: 0px;
padding: 0px 15px 0px 29px;
}
a.mainlevel-trans:hover {
color:#3366CC;
}
a.mainlevel_active-trans, a.mainlevel_active-trans:visited {
font-family: Tahoma, Helvetica, sans-serif;
text-decoration:none;
font-size: 11px;
font-weight:bold;
color:#FF6600;
white-space:nowrap;
line-height: 26px;
border-right: 1px solid #FFF;
display: block;
height: 26px;
width:auto;
margin: 0px;
padding: 0px 15px 0px 29px;
background: url(img/arrow.png) 12px 10px no-repeat;
}
a.mainlevel_active-trans:hover {
color:#3366CC;
}
/* End added */
خوب حالا چیکار کنم ؟کد:/* this is the clipping region for the menu. it's width and height get set by script, depending on the size of the items table */
.transMenu {
position:absolute;
overflow:hidden;
left:-1000px;
top:-1000px;
}
/* this is the main container for the menu itself. it's width and height get set by script, depending on the size of the items table */
.transMenu .content {
position:absolute;
}
/* this table comprises all menu items. each TR is one item. It is relatively positioned so that the shadow and background transparent divs can be positioned underneath it */
.transMenu .items {
position:relative;
right:0px; top:0px;
z-index:2;
}
.transMenu.top .items {
border-top:none;
}
/* each TR.item is one menu item */
.transMenu .item{
color:red;
font-size:10px;
font-family:tahoma;
text-decoration:none;
/* this is a hack for mac/ie5, whom incorrectly cascades the border properties of the parent table to each row */
border:none;
cursor:pointer;
cursor:hand;
display: block;
width: 145px !important;
width: 160px;
background:#C63C00;
vertical-align: middle;
font-size: 11px;
font-weight: bold;
color: #ffffff;
text-align: right;
/*text-indent: -10px;*/
height: 20px !important;
height: 25px;
width: 100%;
text-decoration: none;
border-bottom: 1px solid #FFF;
}
.transMenu .item td{
}
/* this DIV is the semi-transparent white background of each menu. the -moz-opacity is a proprietary way to get transparency in mozilla, the filter is for IE/windows 5.0+. */
/* we set the background color in script because ie mac does not use it; that browser only uses a semi-transparent white PNG that the spacer gif inside this DIV is replaced by */
.transMenu .background {
position:absolute;
right:0px; top:0px;
z-index:1;
-moz-opacity:.8;
filter:alpha(opacity=80);
}
/* same concept as .background, but this is the sliver of shadow on the right of the menu. It's left, height, and background are set by script. In IE5/mac, it uses a PNG */
.transMenu .shadowRight {
position:absolute;
z-index:3;
top:3px; width:2px;
-moz-opacity:.4;
filter:alpha(opacity=40);
}
/* same concept as .background, but this is the sliver of shadow on the bottom of the menu. It's top, width, and background are set by script. In IE5/mac, it uses a PNG */
.transMenu .shadowBottom {
position:absolute;
z-index:1;
right:3px; height:2px;
-moz-opacity:.4;
filter:alpha(opacity=40);
}
/* this is the class that is used when the mouse is over an item. script sets the row to this class when required. */
.transMenu .item.hover {
color:black;
background:#F79A00;
}
/* this is either the dingbat that indicates there is a submenu, or a spacer gif in it's place. We give it extra margin to create some space between the text and the dingbat */
.transMenu .item img {
margin-right:0px;
}
/* Added classes by Khanh - 050629 */
#wrap {
margin: 0px;
padding: 0px;
}
#menu {
margin: 0px;
padding: 0px;
display:block;
width:100%;
}
.transMenu .item#active {
background:#ff0000;
color:black;
-moz-opacity:.6;
filter:alpha(opacity=60);
}
.transMenu .item#active.hover {
background:#F79A00;
color:black;
}
/* For first level menu.*/
a.mainlevel-trans:link, a.mainlevel-trans:visited {
display: block;
background: url(img/menu_bg.png) no-repeat;
vertical-align: middle;
font-size: 11px;
font-weight: bold;
color: #ffffff;
text-align: right;
padding-top: 5px;
padding-right: 22px;
height: 20px !important;
height: 25px;
width: 100%;
text-decoration: none;
width: 145px !important;
width: 160px;
}
a.mainlevel-trans:hover {
background-position: 0px -25px;
text-decoration: none;
color: #333333;
}
a.mainlevel_active-trans, a.mainlevel_active-trans:visited {
color:#FF6600;
line-height: 25px;
display: block;
height: 25px;
width:auto;
margin: 0px;
padding: 0px 22px 0px 29px;
background: url(img/menu_bg.png) no-repeat;
background-position: 0px -25px;
text-decoration: none;
color: #333333;
font-family:tahoma;
font-size: 11px;
}
a.mainlevel_active-trans:hover {
color:#3366CC;
}
/* End added */
سلام
transmenuh.css براي موقعيه كه ماژول تو حالت افقيه
transmenuv.css براي موقعيه كه ماژول تو حالت عموديه
شما كه عوض كردي رنگش رو... يه ctrl+f5 بگير ممكنه cache شده باشه
يا علي
نشد !!
میتونم فایل ویرایش شده را بذارم ؟
سلام
آره بگذار، ضرر نداره :)
يا علي
کد:/* this is the clipping region for the menu. it's width and height get set by script, depending on the size of the items table */
.transMenu {
position:absolute;
overflow:hidden;
left:-1000px;
top:-1000px;
}
/* this is the main container for the menu itself. it's width and height get set by script, depending on the size of the items table */
.transMenu .content {
position:absolute;
}
/* this table comprises all menu items. each TR is one item. It is relatively positioned so that the shadow and background transparent divs can be positioned underneath it */
.transMenu .items {
position:relative;
right:0px; top:0px;
z-index:2;
}
.transMenu.top .items {
border-top:none;
}
/* each TR.item is one menu item */
.transMenu .item{
color:red;
font-size:10px;
font-family:tahoma;
text-decoration:none;
/* this is a hack for mac/ie5, whom incorrectly cascades the border properties of the parent table to each row */
border:none;
cursor:pointer;
cursor:hand;
display: block;
width: 145px !important;
width: 160px;
background:#000000;
vertical-align: middle;
font-size: 11px;
font-weight: bold;
color: #ffffff;
text-align: right;
/*text-indent: -10px;*/
height: 20px !important;
height: 25px;
width: 100%;
text-decoration: none;
border-bottom: 1px solid #FFF;
}
.transMenu .item td{
}
/* this DIV is the semi-transparent white background of each menu. the -moz-opacity is a proprietary way to get transparency in mozilla, the filter is for IE/windows 5.0+. */
/* we set the background color in script because ie mac does not use it; that browser only uses a semi-transparent white PNG that the spacer gif inside this DIV is replaced by */
.transMenu .background {
position:absolute;
right:0px; top:0px;
z-index:1;
-moz-opacity:.8;
filter:alpha(opacity=80);
}
/* same concept as .background, but this is the sliver of shadow on the right of the menu. It's left, height, and background are set by script. In IE5/mac, it uses a PNG */
.transMenu .shadowRight {
position:absolute;
z-index:3;
top:3px; width:2px;
-moz-opacity:.4;
filter:alpha(opacity=40);
}
/* same concept as .background, but this is the sliver of shadow on the bottom of the menu. It's top, width, and background are set by script. In IE5/mac, it uses a PNG */
.transMenu .shadowBottom {
position:absolute;
z-index:1;
right:3px; height:2px;
-moz-opacity:.4;
filter:alpha(opacity=40);
}
/* this is the class that is used when the mouse is over an item. script sets the row to this class when required. */
.transMenu .item.hover {
color:black;
background:#C0C0C0;
}
/* this is either the dingbat that indicates there is a submenu, or a spacer gif in it's place. We give it extra margin to create some space between the text and the dingbat */
.transMenu .item img {
margin-right:0px;
}
/* Added classes by Khanh - 050629 */
#wrap {
margin: 0px;
padding: 0px;
}
#menu {
margin: 0px;
padding: 0px;
display:block;
width:100%;
}
.transMenu .item#active {
background:#ff0000;
color:black;
-moz-opacity:.6;
filter:alpha(opacity=60);
}
.transMenu .item#active.hover {
background:#C0C0C0;
color:black;
}
/* For first level menu.*/
a.mainlevel-trans:link, a.mainlevel-trans:visited {
display: block;
background: url(img/menu_bg.png) no-repeat;
vertical-align: middle;
font-size: 11px;
font-weight: bold;
color: #ffffff;
text-align: right;
padding-top: 5px;
padding-right: 22px;
height: 20px !important;
height: 25px;
width: 100%;
text-decoration: none;
width: 145px !important;
width: 160px;
}
a.mainlevel-trans:hover {
background-position: 0px -25px;
text-decoration: none;
color: #333333;
}
a.mainlevel_active-trans, a.mainlevel_active-trans:visited {
color:#FF6600;
line-height: 25px;
display: block;
height: 25px;
width:auto;
margin: 0px;
padding: 0px 22px 0px 29px;
background: url(img/menu_bg.png) no-repeat;
background-position: 0px -25px;
text-decoration: none;
color: #333333;
font-family:tahoma;
font-size: 11px;
}
a.mainlevel_active-trans:hover {
color:#3366CC;
}
/* End added */
مشکل از کجاست ؟ اگه میشه راهنمایی کنید .
این رو جایگزین کنکد:a.mainlevel-trans:link, a.mainlevel-trans:visited {
display: block;
background: #ffffff;
vertical-align: middle;
font-size: 11px;
font-weight: bold;
color: #ffffff;
text-align: right;
padding-top: 5px;
padding-right: 22px;
height: 20px !important;
height: 25px;
width: 100%;
text-decoration: none;
width: 145px !important;
width: 160px;
}
دو تا مشکل دیگه :
یکی اینکه وقتی آیتم رو انتخاب میکنم همون نارنجی هست و خاکستری نمیشه !!
دوم اینکه فاصله دو تا آیتم به فاصله حدود 10 پیکسل است که زیاده میخوام بین دوتا آیتم فاصله نباشه !!
چیکار کنم ؟