不错的右侧浮动,免费电话调用离线宝接口

模板网 2014-09-17

不错的右侧浮动,免费电话调用离线宝接口。注意使用离线宝功能请修改调用离线宝接口的ID。

复制代码 代码如下:
//引入百度离线宝API 注:data-lxb-uid为百度推广账户ID ,data-lxb-gid为离线宝分组ID可为空,将这两个ID替换为自己医院的
document.writeln('<script type="text/javascript"  data-lxb-uid="123456" data-lxb-gid="" src="http://lxbjs.baidu.com/api/asset/api.js?t=' + new Date().getTime() + '" charset="utf-8"><\/script>');

离线宝的详细使用方法参考:百度离线宝调用接口

下载地址:不错的右侧浮动,免费电话调用离线宝接口

效果截图:

不错的右侧浮动,免费电话调用离线宝接口

  1. <title>不错的右侧浮动,免费电话调用离线宝接口</title>
  2. <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
  3. <script>
  4. document.writeln('<script type="text/javascript" data-lxb-uid="123456" data-lxb-gid="" src="http://lxbjs.baidu.com/api/asset/api.js?t=' + new Date().getTime() + '" charset="utf-8"><\/script>');
  5. document.writeln('<style type="text/css">');
  6. document.writeln('body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button,input, textarea, th, td, img {border:medium none;margin: 0;padding: 0;}');
  7. document.writeln('#csRight{width:60px;height:300px;position:fixed;z-index:100;top:50%;margin-top:-150px;right:0;background:#02948a;font-family:Microsoft Yahei,Georgia,Arial, sans-serif;_position: absolute;_top:expression(offsetParent.scrollTop+150);}');
  8. document.writeln('#csRight a{display:block;width:60px;height:60px;margin-bottom:1px;background:#008077 url(http://www.120muban.com/data2/20140912/kf_all_right.png) no-repeat;transition: all 0.2s linear 0s;}');
  9. document.writeln('#csRight a:hover{background-color:#01a499;}');
  10. document.writeln('#csRight a.cSzixun{background-position:0px 0px;}');
  11. document.writeln('#csRight a.cSyuyue{background-position:0px -61px;}');
  12. document.writeln('#csRight a.tell{background-position:0px -121px;float:left;}');
  13. document.writeln('#csRight a.tell:hover{background-color:#008077;}');
  14. document.writeln('#csRight a.active{background-position:0px -121px;}');
  15. document.writeln('#csRight a.cSaddress{background-position:0px -181px;}');
  16. document.writeln('#csRight .telBox{width:60px;height:60px;position:relative;margin-bottom:1px;background:#056;}');
  17. document.writeln('#csRight .callBox{width:285px;height:60px;position:absolute;left:0px;top:0;z-index:10;}');
  18. document.writeln('#csRight .telform{width:225px;height:60px; background:#008077;float:left;}');
  19. document.writeln('#csRight .telform .inner{width:211px;height:35px;float:right;margin-top:12px;margin-right:5px;display:inline;}');
  20. document.writeln('#csRight .telform .inner input{width:153px;height:35px;line-height:35px;border-radius:2px 0px 0px 2px;display:block;float:left;font-size:13px;color:#303030;text-indent:5px;font-family:Microsoft Yahei,Georgia,Arial, sans-serif;}');
  21. document.writeln('#csRight .telform .inner a{width:58px;height:35px;line-height:35px;border-radius:0px 2px 2px 0px;text-align:center;display:block;float:left;margin:0px;background:#b4b4b4;font-size:13px;color:#555;text-decoration:none;}');
  22. document.writeln('#csRight .telform .inner a:hover{background:#ccc;}');
  23. document.writeln('#csRight a.returnTop{background-position:0px -241px;height:59px;margin:0px;background-color:#4b4b4b;}');
  24. document.writeln('#csRight a.returnTop:hover{background-color:#888;}');
  25. document.writeln('</style>');
  26. document.writeln('<div id="csRight">');
  27. document.writeln(' <a href="javascript:;" title="在线咨询" target="_self" href="javascript:void(0);return false;" onclick="openZoosUrl();return false;" class="cSzixun" ></a>');
  28. document.writeln(' <a href="javascript:;" title="预约专家" target="_self" href="javascript:void(0);return false;" onclick="openZoosUrl();return false;" class="cSyuyue" ></a>');
  29. document.writeln(' <div class="telBox">');
  30. document.writeln(' <div class="callBox">');
  31. document.writeln(' <a href="javascript:;" title="免费电话" class="tell"></a>');
  32. document.writeln(' <div class="telform">');
  33. document.writeln(' <div class="inner">');
  34. document.writeln(' <input type="text" id="tell_num" placeholder="请输入您的电话号码"/>');
  35. document.writeln(' <a href="javascript:void(0)" id="sub_btn">免费回电</a>');
  36. document.writeln(' </div>');
  37. document.writeln(' </div>');
  38. document.writeln(' </div>');
  39. document.writeln(' </div>');
  40. document.writeln(' <a href="/lylx/" title="来院路线" target="_blank" class="cSaddress" ></a>');
  41. document.writeln(' <a href="javascript:;" class="returnTop" title="返回顶部" target="_self" onclick="pageScroll()"></a>');
  42. document.writeln('</div>');
  43. $(function(){
  44. $('.telBox').mouseenter(function(e) {
  45. $(this).find('a.tell').addClass('active');
  46. $(this).find('.callBox').stop().animate({left:'-225px'},600);
  47. });
  48. $('.telBox').mouseleave(function(e) {
  49. $(this).find('a.tell').removeClass('active');
  50. $(this).find('.callBox').stop().animate({left:'-0px'},400);
  51. });
  52. document.getElementById("sub_btn").onclick = function () {
  53. lxb.call(document.getElementById("tell_num"));
  54. };
  55. })
  56. function pageScroll(){
  57. window.scrollBy(0,-100);
  58. scrolldelay = setTimeout('pageScroll()',10);
  59. var sTop=document.documentElement.scrollTop+document.body.scrollTop;
  60. if(sTop==0) clearTimeout(scrolldelay);
  61. }
  62. </script>
  63. <p>医疗模板库(www.120muban.com)整理收集 仅供学习参考,请勿用于商业用途</p>

相关文章

  1. 兼容所有主流浏览器的居中DIV代码 兼容IE6

    兼容所有主流浏览器的居中DIV代码 兼容IE6,主要是下面的这段CSS代码来兼容IE6的。 复制代码 代码如下: /*兼容IE6居中*/ _position: absolute; _top: expression(eval(document.documentElement.clientHeight/2+document.documentElement.scrollTop)); _left:

  2. 医疗站常用的仿QQ窗口抖动效果

    医疗站常用的仿QQ窗口抖动效果,使用了jquery的动画效果,调用的时候记得要引入jquery。

  3. 不错的右侧浮动,免费电话调用离线宝接口

    不错的右侧浮动,免费电话调用离线宝接口。注意使用离线宝功能请修改调用离线宝接口的ID。 复制代码 代码如下: //引入百度离线宝API 注:data-lxb-uid为百度推广账户ID ,data-lxb-gid为离线宝分组ID可为空,将这两个ID替换为自己医院的 document.writeln(sc

  4. 漂亮的左下角QQ邀请窗口

    漂亮的左下角QQ邀请窗口,GIF动图,邀请效果明显。

  5. 医疗网站上右侧漂亮的浮动窗口

    医疗网站上右侧漂亮的浮动窗口,包含在线咨询,QQ咨询,来院路线,微信二维码,返回顶部功能。 打包下载: 医疗网站上右侧漂亮的浮动窗口 效果截图:

随机推荐

  1. 兼容所有主流浏览器的居中DIV代码 兼容IE6

    兼容所有主流浏览器的居中DIV代码 兼容IE6,主要是下面的这段CSS代码来兼容IE6的。 复制代码 代码如下: /*兼容IE6居中*/ _position: absolute; _top: expression(eval(document.documentElement.clientHeight/2+document.documentElement.scrollTop)); _left:

  2. 医疗站常用的仿QQ窗口抖动效果

    医疗站常用的仿QQ窗口抖动效果,使用了jquery的动画效果,调用的时候记得要引入jquery。

  3. 不错的右侧浮动,免费电话调用离线宝接口

    不错的右侧浮动,免费电话调用离线宝接口。注意使用离线宝功能请修改调用离线宝接口的ID。 复制代码 代码如下: //引入百度离线宝API 注:data-lxb-uid为百度推广账户ID ,data-lxb-gid为离线宝分组ID可为空,将这两个ID替换为自己医院的 document.writeln(sc

  4. 漂亮的左下角QQ邀请窗口

    漂亮的左下角QQ邀请窗口,GIF动图,邀请效果明显。

  5. 医疗网站上右侧漂亮的浮动窗口

    医疗网站上右侧漂亮的浮动窗口,包含在线咨询,QQ咨询,来院路线,微信二维码,返回顶部功能。 打包下载: 医疗网站上右侧漂亮的浮动窗口 效果截图: