// JavaScript Document
 $(window).scroll(function() {    // 页面发生scroll事件时触发   
            var bodyTop = 0;   
            if (typeof window.pageYOffset != 'undefined') {   
                bodyTop = window.pageYOffset;   
            } else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') {   
                bodyTop = document.documentElement.scrollTop;   
            }   
            else if (typeof document.body != 'undefined') {   
                bodyTop = document.body.scrollTop;   
            }   

         $("#chCustomServiceOnline").css("top", 270 + bodyTop) ,1000 // 设置层的CSS样式中的top属性, 注意要是小写，要符合“标准”   
           // $("#qqonline").text(bodyTop);   // 设置层的内容，这里只是显示当前的scrollTop   
        });    
		
		$(document).ready(function(){  if (!$.browser.opera) {

  $('a[href*=#]').click(function(){         if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname){          var $target = $(this.hash);            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');          if ($target.length){                var targetOffset = $target.offset().top;         $('html,body').animate({scrollTop: targetOffset}, 300);               return false;              }       }    });  }   } );