欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

js滑動(dòng)提示效果代碼分享

 更新時(shí)間:2016年03月10日 16:13:29   作者:我_愛編程  
這篇文章主要為大家分享了js滑動(dòng)提示效果代碼,實(shí)現(xiàn)方法簡單,感興趣的小伙伴們可以參考一下

本文實(shí)例為大家分享了js滑動(dòng)提示效果,供大家參考,具體內(nèi)容如下

js代碼漂亮的動(dòng)畫效果;在靠右上角:背景顏色為紅,字體顏色為白色  滑動(dòng) 變大 上移  緩慢漸變消失

function tishi() {

  $("#tishi").attr("style", "border: 1px solid #000;position: absolute; z-index: 10; width:200px; height: 30px;color:white;background-color:Red;border-radius:25px;-moz-border-radius:25px; text-align:center;left:70%; top:10%; display: none");

  $("#tishi").show().animate({
  width: '300px',
  height: '37px',
  top: '-=10px'
  , opacity: '0.8'
  }, "slow");
  $("#tishi").show().animate({
  top: '-=10px'
  , opacity: '0.6'

  }, "slow");
  $("#tishi").show().animate({
  top: '-=10px'
  , opacity: '0.4'
  }, "slow");
  $("#tishi").show().animate({
  top: '-=10px'
  , opacity: '0.2'
  }, "slow");
  $("#tishi").show().animate({
  top: '-=10px'
  , opacity: '0.0'
  }, "slow");
 }

前臺(tái)代碼,寫在body里:

<div id="tishi" style="border: 1px solid #000;
position: absolute; z-index: 10; width:200px; 
height: 30px;color:white;
background-color:Red;border-radius:25px;
 -moz-border-radius:25px; /* 老的 Firefox */
text-align:center;left:70%; 
top: 10%; 
display: none">請(qǐng)完善信息</div>

希望本文所述對(duì)大家學(xué)習(xí)javascript程序設(shè)計(jì)有所幫助。

相關(guān)文章

最新評(píng)論