点击进入知科官方网站
查看: 1273  |  回复: 4
 
 
lvsenlin88
积分:225
注册时间:2013-07-04
最后登录:2015-01-04
发送短消息
发表于 2014-07-03 10:51
页面地址:见  [已处理]求一个 首页漂浮微信二维码的代码  5楼

问题描述:

截图说明:
 
 
Official服务
积分:16745
注册时间:2012-01-02
最后登录:2015-09-24
发送短消息
回复于 2014-07-03 10:53
1楼
 
下载这个图片 上传到/p/目录
 
然后把以下代码放在/index/6/index.aspx文件的 </body>的前面
 
 
 
 
 
<style>#code,#code_hover,#gotop{width:36px;height:48px;background:url(/p/scrbarbg.gif) no-repeat;position:fixed;right:50px;cursor:pointer;_position:absolute;_bottom:auto;_top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));z-index:999999999;}#code{background-position:-276px -258px;bottom:120px;_margin-bottom:120px;}#code_hover{background-position:-316px -258px;bottom:120px;_margin-bottom:120px;}#gotop{background-position:-276px -310px;bottom:67px;_margin-bottom:67px;}#code_img{width:270px;height:355px;background:url(/p/scrbarbg.gif) -4px -3px no-repeat;position:fixed;right:90px;bottom:67px;cursor:pointer;display:none;_position:absolute;_bottom:auto;_top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));_margin-bottom:67px;z-index:999999999;}#ReturnTop{display:none;}</style>
<div id="code"></div>
<div id="code_img"></div>
<a id="gotop" href="javascript:void(0)"></a>
<script>function _scrbar(){h = $(window).height();t = $(document).scrollTop();if (t > h){$('#gotop').show();}else{$('#gotop').hide();}}$(document).ready(function(e){_scrbar();$('#gotop').click(function(){$(document).scrollTop(0);});$('#code').hover(function(){$(this).attr('id','code_hover');$('#code_img').show();},function(){$(this).attr('id','code');$('#code_img').hide();})});$(window).scroll(function(e){_scrbar();})</script>
 
 
lvsenlin88
积分:225
注册时间:2013-07-04
最后登录:2015-01-04
发送短消息
回复于 2014-07-04 17:38
2楼
页面: www.xqsh.net
 
问题:已经按您的方法操作完毕,但是不能使用
 
截图:
 
 
Official服务
积分:16745
注册时间:2012-01-02
最后登录:2015-09-24
发送短消息
回复于 2014-07-04 17:40
3楼
 我是 说添加在</body>的前面
不是说添加在<body>的前面
 
 
lvsenlin88
积分:225
注册时间:2013-07-04
最后登录:2015-01-04
发送短消息
回复于 2014-07-04 18:06
4楼
呵呵!好了!不该犯的低级错误!
回复帖子