PDA

View Full Version : نمیدونم والا عنوان چی بزارم یه کمک میخوام



omidparkour
شنبه 23 شهریور 1392, 08:32 صبح
سلام
میخوام یه چیزی مثل دو تا کادر پایین این سایت (http://penta-design.ir/) که درصد پیشرفت پروژه رو گذاشته درست کنم
چه جوریه؟؟؟آماده اش هست؟؟؟؟؟؟

webdesign2
شنبه 23 شهریور 1392, 09:28 صبح
سلام حالت html هستش و فقط بايد برنامه نويسي كني اين هم نمونه كار (http://www.ijquery.ir/category/graph-chart/)

omidparkour
شنبه 23 شهریور 1392, 09:42 صبح
سلام
مدل های دیگه ای نیست؟
این خیلی ساده بود

f_talebi
شنبه 23 شهریور 1392, 11:56 صبح
سلام
میخوام یه چیزی مثل دو تا کادر پایین این سایت (http://penta-design.ir/) که درصد پیشرفت پروژه رو گذاشته درست کنم
چه جوریه؟؟؟آماده اش هست؟؟؟؟؟؟

سلام. این رو کومپوننت های بوت استرپ آماده داره. اینجا http://getbootstrap.com/components/#progress-striped یکم پایین تر در قسمت Animated

اینجا هم یکی هست http://www.ijquery.ir/graph-chart/%D9%86%D9%88%D8%A7%D8%B1-%D9%BE%DB%8C%D8%B4%D8%B1%D9%81%D8%AA/

omidparkour
شنبه 23 شهریور 1392, 12:19 عصر
سلام
ممنون من دقیقا دنبال همونanimate بودم که توی اون لینک دادین بود اما یه مشکلی داره اون هم اینکه میخوام وقتی ماوس رو میبرم روش بنویسه چند درصد رفته اما این نمینویسه
اونطوری سراغ ندارین؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟ ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟

f_talebi
شنبه 23 شهریور 1392, 12:47 عصر
سلام
ممنون من دقیقا دنبال همونanimate بودم که توی اون لینک دادین بود اما یه مشکلی داره اون هم اینکه میخوام وقتی ماوس رو میبرم روش بنویسه چند درصد رفته اما این نمینویسه
اونطوری سراغ ندارین؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟ ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟

شما میتونین بهش title اضافه کنین، مثل همون سایت که در پست اول قرار دادین، نوار پیشرفتش در یک دایوه که اون دایو title داره، هر وقت ماوس رو ببرین مقداری که وارد کردین میاد. یا اینکه میتونین از تول تیپ برای نشون دادن درصد پیشرفت استفاده کنین. که باز از تول تیپ های بوت استرپ هم میتونین استفاده کنین http://getbootstrap.com/javascript/#tooltips

omidparkour
شنبه 23 شهریور 1392, 13:17 عصر
سلام
ممنون
کلا نوار پیشرفت اونجوری آماده سراغ ندارین؟(منظورم اینه که بدون این که خودم tooltip اضافه کنم)

f_talebi
شنبه 23 شهریور 1392, 13:39 عصر
سلام
ممنون
کلا نوار پیشرفت اونجوری آماده سراغ ندارین؟(منظورم اینه که بدون این که خودم tooltip اضافه کنم)
نه بنده سراغ ندارم. عنوان اضافه کردن با اینی که عرض کردم خیلی ساده هست. میتونید سرچ کنین امیدوارم پیدا کنین یا اگه دوستان سراغ دارن براتون بذارن.

omidparkour
شنبه 23 شهریور 1392, 15:57 عصر
سلام
من اون نوار پیشرفت سبز رنگ متحرک رو داخل قالب خودم گذاشتم درست کار میکنه اما یه مشکل داره اون هم اینکه اون نوار سبز رنگ در وسط کادرش قرار میگیره در صورتی که باید در سمت چپ قرار بگیره
مشکل چیه؟؟؟؟
چی کنم؟؟؟؟؟

omidparkour
شنبه 23 شهریور 1392, 21:02 عصر
مشکل چیه؟؟؟؟؟

omidparkour
یک شنبه 24 شهریور 1392, 08:56 صبح
سلام
مشکل قبلی برطرف شد حالا میخوام tooltip بزارم
چطوری باید بزارم؟؟؟؟
کد HTML نوار پیشرفت:


<div style="width:400px" class="navar" >
<font size="6px" color="#990000" class="moshaveran" > طراحی سایت مشاوران برتر</font><p/><font size="3px" color="#0099CC" class="moshaveran1">درصد پیشرفت:10٪</font>
<div class="meter" align="left">
<span style="width: 10%" title="10%" class="tooltip" > </span>
</div></div>

کدCSS نوار پیشرفت:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
<script>
$(function() {
$(".meter > span").each(function() {
$(this)
.data("origWidth", $(this).width())
.width(0)
.animate({
width: $(this).data("origWidth")
}, 1200);
});
});
</script>

<style>
.meter {
height: 20px; /* Can be anything */
position: relative;
margin: 10px 0 20px 0; /* Just for demo spacing */

background: #555;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
border-radius: 25px;
padding: 10px;
-webkit-box-shadow: inset 0 -1px 1px rgba(255,255,255,0.3);
-moz-box-shadow : inset 0 -1px 1px rgba(255,255,255,0.3);
box-shadow : inset 0 -1px 1px rgba(255,255,255,0.3);
}
.meter > span {
display: block;
height: 100%;
-webkit-border-top-right-radius: 8px;
-webkit-border-bottom-right-radius: 8px;
-moz-border-radius-topright: 8px;
-moz-border-radius-bottomright: 8px;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
-webkit-border-top-left-radius: 20px;
-webkit-border-bottom-left-radius: 20px;
-moz-border-radius-topleft: 20px;
-moz-border-radius-bottomleft: 20px;
border-top-left-radius: 20px;
border-bottom-left-radius: 20px;
background-color: rgb(43,194,83);
background-image: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(0, rgb(43,194,83)),
color-stop(1, rgb(84,240,84))
);
background-image: -moz-linear-gradient(
center bottom,
rgb(43,194,83) 37%,
rgb(84,240,84) 69%
);
-webkit-box-shadow:
inset 0 2px 9px rgba(255,255,255,0.3),
inset 0 -2px 6px rgba(0,0,0,0.4);
-moz-box-shadow:
inset 0 2px 9px rgba(255,255,255,0.3),
inset 0 -2px 6px rgba(0,0,0,0.4);
box-shadow:
inset 0 2px 9px rgba(255,255,255,0.3),
inset 0 -2px 6px rgba(0,0,0,0.4);
position: relative;
overflow: hidden;
}
.meter > span:after, .animate > span > span {
content: "";
position: absolute;
top: 0; left: 0; bottom: 0; right: 0;
background-image:
-webkit-gradient(linear, 0 0, 100% 100%,
color-stop(.25, rgba(255, 255, 255, .2)),
color-stop(.25, transparent), color-stop(.5, transparent),
color-stop(.5, rgba(255, 255, 255, .2)),
color-stop(.75, rgba(255, 255, 255, .2)),
color-stop(.75, transparent), to(transparent)
);
background-image:
-moz-linear-gradient(
-45deg,
rgba(255, 255, 255, .2) 25%,
transparent 25%,
transparent 50%,
rgba(255, 255, 255, .2) 50%,
rgba(255, 255, 255, .2) 75%,
transparent 75%,
transparent
);
z-index: 1;
-webkit-background-size: 50px 50px;
-moz-background-size: 50px 50px;
background-size: 50px 50px;
-webkit-animation: move 2s linear infinite;
-moz-animation: move 2s linear infinite;
-webkit-border-top-right-radius: 8px;
-webkit-border-bottom-right-radius: 8px;
-moz-border-radius-topright: 8px;
-moz-border-radius-bottomright: 8px;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
-webkit-border-top-left-radius: 20px;
-webkit-border-bottom-left-radius: 20px;
-moz-border-radius-topleft: 20px;
-moz-border-radius-bottomleft: 20px;
border-top-left-radius: 20px;
border-bottom-left-radius: 20px;
overflow: hidden;
}

.animate > span:after {
display: none;
}

@-webkit-keyframes move {
0% {
background-position: 0 0;
}
100% {
background-position: 50px 50px;
}
}

@-moz-keyframes move {
0% {
background-position: 0 0;
}
100% {
background-position: 50px 50px;
}
}
</style>

کد css استایلی که خودم به div دادم:

.navar{border-left:3px solid #06C;border-right:3px solid #06C;height:150px;background-color:#CCC; border-radius:10px;
-moz-border-radius:10px;
-webkit-border-radius:10px;opacity:0.8; margin:0px auto}

.moshaveran{padding-top:30px; margin-bottom:80px; margin-right:42px}
.moshaveran1{margin-right:10px;}


و در نهایت کد css تولتیپ:

.tooltip
{
position: relative;
background: #eaeaea;
cursor: help;
display: inline-block;
text-decoration: none;
color: #222;
outline: none;
}

.tooltip
{
visibility: hidden;
position: absolute;
bottom: 30px;
left: 50%;
z-index: 999;
width: 230px;
margin-left: -127px;
padding: 10px;
border: 2px solid #ccc;
opacity: .9;
background-color: #ddd;
background-image: -webkit-linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0));
background-image: -moz-linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0));
background-image: -ms-linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0));
background-image: -o-linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0));
background-image: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0));
-moz-border-radius: 4px;
border-radius: 4px;
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.5) inset;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.5) inset;
box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.5) inset;
text-shadow: 0 1px 0 rgba(255,255,255,.4);
}

.tooltip:hover
{
border: 0; /* IE6 fix */
}

.tooltip:hover
{
visibility: visible;
}

.tooltip:before,
.tooltip:after
{
content: "";
position: absolute;
z-index: 1000;
bottom: -7px;
left: 50%;
margin-left: -8px;
border-top: 8px solid #ddd;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-bottom: 0
}

.tooltip:before
{
border-top-color: #ccc;
bottom: -8px;
}

مشکل کجاست؟؟؟
کار نمیکنه؟؟؟
کمک