BVB Source Codes

KesionICMS intelligent website system (enterprise edition) v3.7 formal version Show tips.js Source code

Return Download KesionICMS intelligent website system (enterprise edition) v3.7 formal version: download tips.js Source code - Download KesionICMS intelligent website system (enterprise edition) v3.7 formal version Source code - Type:.js
  1. function showTipsBox(msg,obj){
  2.                 var tipHtml="<div id='changeSucTip'><div id='tipContent'><div id='tipTitle'>"+msg+"<br/><br/><a href='javascript:closeWindow()'>关闭</a></div></div></div>";
  3.                 tipHtml+="<style>#changeSucTip{background: url(/sysimg/shop/cartTipBottom.gif) bottom no-repeat;height:80px;padding-bottom:4px;}#changeSucTip #tipContent{border:#ff9900 1px solid;background:#fffddd;border-bottom:none;height:77px;}#changeSucTip #tipTitle{margin-top:10px;text-align:center;}#changeSucTip #priceSpan{color:red;}</style>";
  4.                
  5.             closeWindow();
  6.                 showMessageBox(tipHtml,obj,204);
  7.                 var mWin=jQuery('#mesWindow')[0];
  8.                 var isGrow=true;
  9.                 if(IsIE){
  10.                 try{
  11.                   mWin.style.filter='alpha(opacty=90)';
  12.                  }catch(e){isGrow=false;}
  13.           }
  14.          else{mWin.style.opacity=0.9;}
  15.          if(isGrow){setTimeout(function(){setGrowHidden(mWin,3,10);},4000);}
  16.          else{setTimeout(function(){closeWindow();},4000);}
  17.   }
  18.   function showMessageBox(content,obj,wWidth)
  19.    {
  20.    closeWindow();
  21.    var pos=new getPos(obj);
  22.    pos.Top=pos.Top-84;
  23.    pos.Left=pos.Left-(204-pos.Width)/2;
  24.    var bWidth=parseInt(document.documentElement.scrollWidth);
  25.     var bHeight=parseInt(document.documentElement.scrollHeight);
  26.         var mesW=document.createElement("div");
  27.         mesW.id="mesWindow";
  28.         mesW.innerHTML=content;
  29.         if(bWidth-pos.Left<wWidth)
  30.         {
  31.            styleStr="left:"+(pos.Left-wWidth)+"px;";
  32.         }
  33.         else
  34.         {
  35.            styleStr="left:"+(pos.Left)+"px;";
  36.         }
  37.         styleStr+="top:"+pos.Top+"px;position:absolute;width:"+wWidth+"px;";
  38.         mesW.style.cssText=styleStr;
  39.         document.body.appendChild(mesW);
  40. }
  41. function closeWindow()
  42. {
  43.     if(jQuery('#mesWindow')[0]!=null)
  44.     {  
  45.        jQuery('#mesWindow')[0].parentNode.removeChild(jQuery('#mesWindow')[0]);
  46.     }
  47. }
  48. function getPos(obj){
  49.         this.Left=0;
  50.         this.Top=0;
  51.         this.Height=obj.offsetHeight;
  52.         this.Width=obj.offsetWidth;
  53.         var tempObj=obj;
  54.         while (tempObj.tagName.toLowerCase()!="body" && tempObj.tagName.toLowerCase()!="html"){
  55.                 this.Left+=tempObj.offsetLeft;
  56.                 this.Top+=tempObj.offsetTop;
  57.                 tempObj=tempObj.offsetParent;
  58.         }
  59. }
  60. function setGrowHidden(obj,intAlphaStep,intTimeStep)
  61. {
  62.    
  63.     try{
  64.         if(obj==null){return;}
  65.         if(IsIE)
  66.         {
  67.             try{
  68.             obj.filters.alpha.opacity-=intAlphaStep;
  69.             if (obj.filters.alpha.opacity>0) {
  70.             setTimeout(function(){setGrowHidden(obj,intAlphaStep,intTimeStep);},intTimeStep);
  71.             }
  72.             else {closeWindow();}
  73.             }catch(e){closeWindow();}
  74.         }
  75.         else
  76.         {
  77.             var curOpacity=obj.style.opacity;
  78.             curOpacity-=intAlphaStep/100;
  79.             if (curOpacity>0) {
  80.             obj.style.opacity =curOpacity;
  81.             setTimeout(function(){setGrowHidden(obj,intAlphaStep,intTimeStep);},intTimeStep);
  82.             }
  83.             else {closeWindow();}
  84.         }
  85.     }catch(e){}
  86. }
downloadtips.js Source code - Download KesionICMS intelligent website system (enterprise edition) v3.7 formal version Source code
Related Source Codes/Software:
KesionICMS intelligent website system (school) v3.7 formal version - For school management web site, the kesion forward... 2016-08-19
Easy to point the content management system DianCMS v6.0.0 SQL version - Easy content management system (DianCMS) is based ... 2016-08-19
Ray speed v7.0 wage query system - To modify the software to conduct a comprehensive ... 2016-08-19
Address book v1.0 FaLiang three layer - This Demo is a three layer address book source cod... 2016-08-19
Deng Xi v2.4 website help system - Deng Xi website help system is a very useful help ... 2016-08-19
KesionICMS intelligent website system (government) v3.7 formal version - Government Portal website construction Establish t... 2016-08-19
KesionICMS intelligent website system (gm) v3.7 formal version - KESIONICMS intelligent building systems with a fle... 2016-08-19
KesionIMALL v3.7 formal version online mall system - KESIONIMALLV3.7 online shop system, as a new e-com... 2016-08-19
Online learning system v5.0 - 1. online training system mainly through the netwo... 2016-08-19
Hao123 site navigation source (urin wind _ perfectly fine) v20111113 - Ly113 imitating hao123 source site navigation inst... 2016-08-19
jquery-mockjax - The jQuery Mockjax Plugin provides a simple and ex... 2017-05-13
rolify - Role management library with the resource scoping 2017-05-13
fatfree - A powerful yet easy-to-use PHP micro-framework des... 2017-05-13
TSA-Travel-Sentry-master-keys - 3D reproduction of TSA Master key 2017-05-12
python3-cookbook - "The Python Cookbook" 3 rd Edition Translatio 2017-05-12
isso - a Disqus alternative https:... 2017-05-12
hologram - A markdown based documentation system for style gu... 2017-05-12
www.html5rocks.com - ....a top-notch resource for web developer 2017-05-12
MTStatusBarOverlay - A custom iOS status bar overlay seen in Apps like ... 2017-05-12
blueprint - Reverse engineer server configuration ... 2017-05-12

 Back to top