[转]跑马灯效果

  function f_showmsg(){
var oBody = document.body;
if($('Pshowmsg')==null){
oBody.insertAdjacentHTML('beforeEnd','<div id="Pshowmsg" style="text-align: center;position:absolute;top:40%;left:40%;margin:-100px 0 0 -100px;width:280px;height:200px;background:#000 ;background-color:#eeeff0;padding-top:80px;border:1px solid #dddddd;font-size:12px;color:#ff0000;">正在處理,請等待...<br><br><div align=center style="width:180px;height:16px"><marquee scrolldelay="10" truespeed scrollamount="2"><span style="FILTER: progid:DXImageTransform.Microsoft.Gradient(startColorStr=#eeeff0, endColorStr=#63A2EF, gradientType=1);width:80px;height:16px;"></span><span style="FILTER: progid:DXImageTransform.Microsoft.Gradient(startColorStr=#63A2EF, endColorStr=#eeeff0, gradientType=1);width:80px;height:16px; margin-right:8px"></span></marquee></div></div>');  
}else{
$('Pshowmsg').style.display="";
}

你可能感兴趣的:(F#)