网页右下方短信留言框调用

——

打印本文             

 

登录网站后台,点击 [ 模板 ] - 找到左侧 -[ 当前模板编辑 ] - 编辑footer.html模板

在footer.html模板里面的 前,增加

 

请确定系统为V3.9版

升级3.9版补丁地址

 

Code:
  1.   

  2.   

  3. if(config::get('sms_on') && config::get('sms_consult_admin_on') && $mobile = config::get('site_mobile')){ ?>  

  4.   

  5. "text/css">  

  6. #bottomNav {   

  7. z-index:99;  

  8. center:0;  

  9. position:fixed;  

  10. _position:absolute; /* for IE6 */  

  11. right:0;  

  12. bottom:0;  

  13. width:209px;  

  14. height:204px;  

  15. background:url({get(site_url)}images/message.gif) left top no-repeat;    

  16. _top: expression(documentElement.scrollTop + documentElement.clientHeight-this.offsetHeight); /* for IE6 */   

  17. overflow:visible;   

  18. font-size:12px;  

  19. }   

  20. #m_textarea {width:173px;height:68px;_height:77px;margin:22px 0px 3px 9px;padding:5px;border:1px solid #C57954;color:#888;}  

  21. #bottomNav .bottomClose {  

  22. float:right;text-decoration:underline; cursor:hand;  

  23. display:block;  

  24. width:30px;  

  25. height:28px;  

  26. }  

  27. #bottomMail {  

  28.  width:164px;height:19px;line-height:19px;margin:2px 0px 0px 31px;_margin-top:1px;border:1px solid #C57954;color:#888;  

  29. }  

  30. #bottomSubmit {  

  31.   width:68px;  

  32.   height:22px;  

  33.   line-height:22px;  

  34.   margin:15px 0px 0px 10px;  

  35.   background:none;  

  36.   border:none;  

  37. }  

  38.   

  39. "text/javascript">  

  40. function isMobile(mobile){  

  41.     return /^1([0-9]+){5,}$/g.test(mobile);  

  42. }  

  43.   

  44. "bottomNav" class="none">"(script removed)void(0);" onclick="hide()" class="bottomClose">  

  45. "index.php?case=sms&act=consult" method="post" name="frmconsult" id="frmconsult" onsubmit="if(this.content.value==''){alert('{lang(p_content)}');return false;}if(!isMobile(this.u_mobile.value)){alert('{lang(p_m_content)}');return false;}">  

  46. "content" id="m_textarea" onFocus="if (this.value == this.defaultValue) this.value='';" onBlur="this.value=this.value.Trim(); if (this.value=='') this.value=this.defaultValue;">{lang(m_content)}  

  47. "u_mobile" value=""id="bottomMail"  />  

  48. "submit" type="submit" id="bottomSubmit" value="  " />  

  49.   

  

  •   

  • "javascript">  

  • var EX = {  

  •   addEvent:function(k,v){  

  •     var me = this;  

  •     if (me.addEventListener)  

  •       me.addEventListener(k, v, false);  

  •     else if(me.attachEvent)  

  •       me.attachEvent("on" + k, v);  

  •     else  

  •       me["on" + k] = v;  

  •   },  

  •   removeEvent:function(k,v){  

  •     var me = this;  

  •     if (me.removeEventListener)  

  •       me.removeEventListener(k, v, false);  

  •     else if (me.detachEvent)  

  •       me.detachEvent("on" + k, v);  

  •     else  

  •       me["on" + k] = null;  

  •   },  

  •   stop:function(evt){  

  •     evt = evt || window.event;  

  •     evt.stopPropagation?evt.stopPropagation():evt.cancelBubble=true;  

  •   }  

  • };  

  • document.getElementById('bottomNav').onclick = EX.stop;  

  • var url = '#';   

  • function show(){   

  • var o = document.getElementById('bottomNav');   

  • o.style.display = "";   

  • setTimeout(function(){EX.addEvent.call(document,'click',hide);});  

  • }   

  • function hide(){   

  • var o = document.getElementById('bottomNav');   

  • o.style.display = "none";   

  • EX.removeEvent.call(document,'click',hide);  

  • }   

  •   

  •   

  •  


    上一篇多站切换调用
    下一篇热门关键词调用