网上找了N个js的在线客服....都不符合..
 我现在需要一个靠右的点击展开隐藏、但不要关闭的在线客服
     类似这个 http://www.suzhouhunsha.net.cn/ 
要做成分享网址的按个效果....求js代码...
如果有的请发我邮箱[email protected]  或者把代码贴出来啊....
           

解决方案 »

  1.   

    div 浮动. 用这个网站的代码就行了.
      

  2.   

    分享到. 贴到你需要的地方就可以了.<div class="box03C sharecontent">                                                                            <div><img class="img" src="http://cview.blogbus.com/files/12496916880.png">                            <a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&amp;title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));">                                转贴到校内人人网</a></div>                        <div><img class="img" src="http://cview.blogbus.com/files/12496916884.jpg">                            <a title="转贴到开心网" href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&amp;rurl='+escape(d.location.href)+'&amp;rtitle='+escape(d.title)+'&amp;rcontent='+escape(d.title),'kaixin'));kaixin.focus();">                                转贴到开心网</a></div>                        <div><img class="img" src="http://cview.blogbus.com/files/12496916885.png">                            <a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&amp;title='+encodeURIComponent(document.title)+'&amp;uri='+encodeURIComponent(document.location.href)+'&amp;jumpback=2&amp;noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)">                                添加到QQ书签</a></div>                        <div><img class="img" src="http://cview.blogbus.com/files/12496916882.gif">                            <a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&amp;iu=%22+encodeURIComponent(u)+%22&amp;dc=%22+encodeURIComponent(c)+%22&amp;fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0">                                添加到百度搜藏</a></div>                        <div><img class="img" src="http://cview.blogbus.com/files/12497070460.gif">                            <a title="收藏到新浪ViVi" href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&amp;title='+escape(d.title)+'&amp;url='+escape(d.location.href)+'&amp;desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();">                                收藏到新浪ViVi</a></div>                        <div><img class="img" src="http://cview.blogbus.com/files/12496916883.jpg">                            <a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/books/?op=edit&amp;output=popup&amp;bkmk='+c(b.location)+'&amp;title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();">                                收藏到Google书签</a></div>                        <div><img class="img" src="http://cview.blogbus.com/files/12496916881.jpg">                            <a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&amp;title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow">                                添加到雅虎收藏</a></div>                        <div><img class="img" src="http://cview.blogbus.com/files/12496939660.jpg">                            <a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&amp;title='+encodeURIComponent(document.title)+'&amp;v=5&amp;';a=function(){if(!window.open(f+'noui=1&amp;jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()">                                保存到美味书签</a></div>                        <div><img class="img" src="http://cview.blogbus.com/files/12497070464.png">                            <a title="推荐到豆瓣9点" href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:'',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&amp;title='+e(d.title)+'&amp;sel='+e(s)+'&amp;v=1&amp;n=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&amp;r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()">                                推荐到豆瓣9点</a></div>                        <div><img class="img" src="http://cview.blogbus.com/files/12497070465.png">                            <a title="推荐给豆瓣友邻" href="javascript:var u='http://www.douban.com/recommend/?url='+location.href+'&amp;title='+encodeURIComponent(document.title);window.open(u,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330');void(0)">                                推荐给豆瓣友邻</a></div>                        <div><img class="img" src="http://www.qdnbp.com/zhanghui/UploadFiles/201003/taobao-jianghu.gif">                            <a title="转帖到淘江湖" href="javascript:window.open('http://share.jianghu.taobao.com/share/addShare.htm?title='+encodeURIComponent(document.title.substring(0,76))+'&url='+encodeURIComponent(location.href)+'&content=','_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'); void 0">                                转帖到淘江湖</span></a></div>
      

  3.   

    [Quote=引用 7 楼 kkbac 的回复:]
          
       我现在就是想弄到分享得那个 js让我的代码可以靠在右边达到他那个样式效果...
      

  4.   

    // JScript 文件
    lastScrollY=0;
    function heartBeat(){ 
    var diffY;
    if (document.documentElement && document.documentElement.scrollTop)
    diffY = document.documentElement.scrollTop;
    else if (document.body)
    diffY = document.body.scrollTop
    else
        {/*Netscape stuff*/}

    //alert(diffY);
    percent=.1*(diffY-lastScrollY); 
    if(percent>0)percent=Math.ceil(percent); 
    else percent=Math.floor(percent); 
    document.getElementById("lovexin12").style.top=parseInt(document.getElementById("lovexin12").style.top)+percent+"px";
    document.getElementById("lovexin14").style.top=parseInt(document.getElementById("lovexin12").style.top)+percent+"px";
    lastScrollY=lastScrollY+percent; 
    }
    suspendcode12="<DIV id=\"lovexin12\" style='left:2px;POSITION:absolute;TOP:390px;'></div>"
    suspendcode14="<DIV id=\"lovexin14\" style='right:2px;POSITION:absolute;TOP:390px;'><a href='#' target='_blank'>内容</a><br/></div>"
    document.write(suspendcode12); 
    document.write(suspendcode14); 
    window.setInterval("heartBeat()",1);
      

  5.   

      
       客户真纠结...只要这个
    http://js.niutuku.com/201004/49802/service.html站右边的效果...
    谢谢楼上的额...
     
      

  6.   

    www.qixuejia.com这个上面的这个要么。我有源码,改下就行。
      

  7.   

        谢谢楼上的了.. 295413670 、[email protected]
    直接给我、发我都可以的...
      

  8.   

       还是希望高手能给个
    http://js.niutuku.com/201004/49802/service.html
    站右边的js的效果...内容改成在线客服的代码....
       结贴..........