توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : درخواست فارسی کردن این کد
سیدرضا بازیار
September 26th, 2013, 17:46
چرا این کد توی سایتم فارسی نمیشه؟
http://www.balyan.ir/menu/menu.htm
نمیشه توی این منو فارسی نوشت.
hazem
September 26th, 2013, 17:49
سلام دوست عزیز
کد زیر را بعد از تگ <head> در بالای کد ها کپی کنید !
من میخوام متن های منو هم راست چین بشه
چون چپ چین روی فارسی جواب نمیده
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;
}
-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 که تو پوشه ی قالبتون قرار داره موجوده !