PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : درخواست فارسی کردن این کد



سیدرضا بازیار
September 26th, 2013, 17:46
چرا این کد توی سایتم فارسی نمیشه؟
http://www.balyan.ir/menu/menu.htm
نمیشه توی این منو فارسی نوشت.

hazem
September 26th, 2013, 17:49
سلام دوست عزیز
کد زیر را بعد از تگ <head> در بالای کد ها کپی کنید !

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


پیروز و سربلند باشید

سیدرضا بازیار
September 26th, 2013, 18:53
من میخوام متن های منو هم راست چین بشه
چون چپ چین روی فارسی جواب نمیده

hazem
September 26th, 2013, 19:06
کد زیر را به بالای فایل menuTemplate1.css اضافه کنید !


* { direction:rtl; }

سیدرضا بازیار
September 26th, 2013, 19:17
این کد عمل نمیکنه :((

hazem
September 26th, 2013, 19:21
این کد عمل نمیکنه :((

http://balyan.ir/menu/menuTemplate1.css
قرار ندادید که !!!

سیدرضا بازیار
September 26th, 2013, 19:23
گذاشتم چون کار نکرد برداشتم
بازم گذاشتم

hazem
September 26th, 2013, 19:49
شرمنده حواسم رفت به فوتبال :دی
بفرمایید !


* { direction:rtl; }
/* top level
--------------------------------------------*/
.menuTemplate1
{
/* You will get totally diffrent menu alignment and layout by setting following margin, width, and float with different values.
For detailed instruction please visit www.menucool.com/horizontal/change-menu-alignment */
margin: 0 auto; width: auto;float:left;
/*following "behavior" works for IE6, IE7, and IE8. Other browsers will ignore it.*/
/*Note: htc file path(if using relative path) inside the CSS file should be relative to the page, not to the CSS file (this is unlike image path inside the CSS that is relative to the CSS file location only).
So we recommend using the absolute path for the behavior file.*/
behavior: url("/horizontal/menuh/cssmenu.htc");
position:relative;
z-index:4;
height: 36px;
background: #D4D4D4 url(bg.gif);
border: 1px solid #BBB;
font-family: tahoma, Helvetica, sans-serif;
list-style: none;
padding: 0;
}
.menuTemplate1 li
{
padding: 0;
float:right;
height: 36px;
position: relative;/*delete it if you want submenu to be positioned relative to the whole menu instead of this li element*/
color: black;
z-index:5;
}

.menuTemplate1 a
{
padding: 0 30px;
line-height: 36px; /*Note: keep this value the same as the height of .menuTemplate1 li */
font-size: 12px;
font-weight: bold;
display: inline-block;
outline: 0;
text-decoration: none;
color: black;
position: relative;
direction:rtl;
}
.menuTemplate1 li:hover a, .menuTemplate1 li.onhover a
{
background: white url(bg.gif) repeat-x 0 -48px;
color: #000;
z-index: 9;
}
.menuTemplate1 a.arrow
{
background: url(arrow.gif) no-repeat right center;
}


/*Used to align a top-level item to the right*/
.menuTemplate1 li.menuRight
{
float: right;
margin-right: 0px;
}

/*for the top-level separators*/
.menuTemplate1 li.separator
{
font-size:0;
overflow:hidden;
border-left:1px solid #F7F7F7;
border-right:1px solid #BBBBBB;
z-index:4;
}


/* sub level
--------------------------------------------*/

.menuTemplate1 .drop
{
position: absolute;
z-index:5;
left: -9999px;
border: 1px solid #DDD;
border-bottom:3px solid #0F4F89;
background: #FFF;
text-align: right;
padding: 20px;
color:#0F4F89;
top:34px;
}

.menuTemplate1 .drop a
{
padding-left: 0px;
padding-right: 0px;
line-height: 26px;
font-size: 12px;
font-weight: normal;
display: inline;
text-align: left;

position: static;
z-index: 0;
background-image:none;
}

.menuTemplate1 li:hover .drop, .menuTemplate1 li.onhover .drop
{
left: -1px;/*Use this property to change offset of the dropdown*/
background:white url(bg-right.png) no-repeat right bottom;
}
.menuTemplate1 li:hover .dropToLeft, .menuTemplate1 li.onhover .dropToLeft
{
left: auto;
right: -1px;
background:white url(bg-left.png) no-repeat 0 bottom;
}
.menuTemplate1 li:hover .dropToLeft2, .menuTemplate1 li.onhover .dropToLeft2
{
left: auto;
right: -60px;
}

/* Elements within the drop down sub-menu
--------------------------------------------*/

.menuTemplate1 div.drop div div
{
padding: 6px 20px;
}
.menuTemplate1 li:hover .drop a, .menuTemplate1 li.onhover .drop a
{
background: none;
background-image:none;
padding:0 0;
}
.menuTemplate1 div.drop div a
{
line-height: 24px;
color: #0F4F89;
background:none;
}
.menuTemplate1 div.drop div a:hover
{
text-decoration:underline;
cursor:pointer;
color:Red;
}

.menuTemplate1 div.left {float:left;}


/* CSS3 effects
--------------------------------------------*/

/*for top-level*/
.decor1_1
{
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;

-moz-box-shadow: 0px 1px 4px #ccc;
-webkit-box-shadow: 0px 1px 4px #ccc;
box-shadow: 0px 1px 4px #ccc;

}

/*for submenu.*/
.decor1_2
{
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;

-moz-box-shadow: 0px 12px 20px #CCCCCC;
-webkit-box-shadow: 0px 12px 20px #CCCCCC;
box-shadow: 0px 12px 20px #CCCCCC;
}

سیدرضا بازیار
September 26th, 2013, 19:55
ممنون
کار شما عالی بود
فقط یه سوال دیگه
من اگه بزارمش بالای سایتم میره سمت چپ و یکم بد میشه
چیکار کنم که منو وسط قرار بگیذه؟
واسه اینکه بزارمش بالای سایتم (در همه صفحات) اون رو کجای سایتم بزارم؟ (وردپرس)

hazem
September 26th, 2013, 20:00
اگر تو div منو قبلیتون بزارید خود به خود وسط میمونه !
کافیه کد منوتونو جایگزین منو حال حاضرتون در فایل header.php کنید

سیدرضا بازیار
September 26th, 2013, 20:09
دقیقا متوجه نشدم!
چیکار کنم که منو وسط باشه؟ چه کدی رو بهش اضافه کنم؟ کد رو کجا بزارم؟

hazem
September 26th, 2013, 20:23
دقیقا متوجه نشدم!
چیکار کنم که منو وسط باشه؟ چه کدی رو بهش اضافه کنم؟ کد رو کجا بزارم؟

منو رو تو قالب قرار بدید وسط میره ! نیاز نیس چیزی اضافه کنید .
فقط کد این منو رو با کد منویی که الان رو سایتتونه جایگزین کنید .

منوی سایت شما در فایل header.php که تو پوشه ی قالبتون قرار داره موجوده !