1.CSS 这样的布布局php解析网页源码并执行源码代码怎么写
CSS 这样的代码怎么写
HTML部分:
<div id="tbox">
<a id="tbox_0" href="#">生活</a>
<a id="tbox_1" href="#">视频</a>
<a id="tbox_2" href="#">团购</a>
<a id="tbox_3" href="#">游戏</a>
<a id="tbox_4" href="#">美图</a>
<a id="gotop" href="javascript:void(0);" title="返回顶部" target="_self">返回顶部</a>
</div>js部分:
function a(x,y){
l = $('.footer').offset().left;//默认值
w = $('.footer').width();//默认值
$('#tbox').css('left',(l + w + x) + 'px');
$('#tbox').css('bottom',y + 'px');
}
function b(){
//h = $(window).height();
h = ;
t = $(document).scrollTop();
if(t > h){
$('#gotop').fadeIn("slow");
}else{
$('#gotop').fadeOut("slow");
}
}
$(document).ready(function(e) {
a(,);
b();
$('#gotop').click(function(){
$(document).scrollTop(0);
})
/
*$("#tbox a").css({ opacity:0.8});
$("#tbox a").hover(function(){
$(this).css({ opacity:1});
},function(){
$("#tbox a").css({ opacity:0.8});
})
*/
});
$(window).resize(function(){
a(,);
});
$(window).scroll(function(e){
b();
});CSS部分:
*html{ background-image:url(about:blank);background-attachment:fixed;}
#tbox{ width:px;height:px;float:right;position:fixed;z-index:;
_position:absolute;
_bottom:auto;
_top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,8)||0)-(parseInt(this.currentStyle.marginBottom,8)||0)));
_margin-bottom:8px;
}
#tbox a{ width:px;height:px;position:absolute;cursor:pointer;background:#}