برای ورود به پرتال وب سایت اسکریپت دات کام کلیک کنید

امتیاز موضوع:
  • 0 رأی - میانگین امتیازات: 0
  • 1
  • 2
  • 3
  • 4
  • 5
سوال در مورد آموزش ساخت پیام ‍‍Snackbar Popup با جاوا اسکریپت
#5
تو فوتر گذاشتم کار نکرد استاد

با باتن هم گذاشتم کارنکرد باتن رو میزنم کار نمیده اینم سورس
کد php:
<div id="snackbar-vms">متن خود را وارد نمایید</div>

<
style type="text/css">
#snackbar-vms {
   visibility: hidden;
   min-width: 250px;
   margin-left: -125px;
   background-color: #333;
   color: #fff;
   text-align: center;
   border-radius: 2px;
   padding: 16px;
   position: fixed;
   z-index: 1;
   left: 50%;
   bottom: 30px;
}
#snackbar-vms.show {
   visibility: visible;
   -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
   animation: fadein 0.5s, fadeout 0.5s 2.5s;
}
@-
webkit-keyframes fadein {
   from {bottom: 0; opacity: 0;}
   to {bottom: 30px; opacity: 1;}
}
@
keyframes fadein {
   from {bottom: 0; opacity: 0;}
   to {bottom: 30px; opacity: 1;}
}
@-
webkit-keyframes fadeout {
   from {bottom: 30px; opacity: 1;}
   to {bottom: 0; opacity: 0;}
}
@
keyframes fadeout {
   from {bottom: 30px; opacity: 1;}
   to {bottom: 0; opacity: 0;}
}

</
style>


<
script type="text/javascript">

function 
SnackBar_vms() {
   var x = document.getElementById("snackbar-vms")
   x.className = "show";
   setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000);
}

</script>

<button onclick="SnackBar_vms()">Show Snackbar</button> 
پاسخ }
سپاس شده توسط


پیام‌های داخل این موضوع
RE: سوال در مورد آموزش ساخت پیام ‍‍Snackbar Popup با جاوا اسکریپت - توسط master - 1395/6/24، 06:23 عصر

پرش به انجمن: