CHANGE BLACKGROUND 的代码
<style>#background a img{width:50px;height:50px;display:inline;margin-right:10px;margin-top:0px;border: 2px solid #6ed6e0;}#background a:hover img{border: 2px solid #a7e06e;}</style><div id="background">
<script src='http://code.jquery.com/jquery-1.6.2.min.js' type='text/javascript'></script>
<script>
$(document).ready(function(){
$("#bgcolor1").click(function(){
$("body").css({"background":"url(背景Url1)"});
});
});
$(document).ready(function(){
$("#bgcolor2").click(function(){ $("body").css({"background":"url(背景Url2)"});
});
});
$(document).ready(function(){
$("#bgcolor3").click(function(){
$("body").css({"background":"url(背景Url3)"});
});
});
</script>
<center><a href="javascript:void(O)" id='bgcolor1' title="点击更换"><img src="背景Url1" width="50"height="50" /></a>
<a href="javascript:void(O)" id='bgcolor2' title="点击更换"><img src="背景Url2" width="50" height="50"/></a>
<a href="javascript:void(O)" id='bgcolor3' title=" 点击更换"><img src=" 背景Url3" height="50" width="50" /></a>
</center></div>
3 # 修改代码中的颜色字体
紫色字体▷ 背景旁边的框、幼细、款式以及颜色
荧蓝字体▷鼠标指向背景时框、幼细、款式以及颜色(变化)
粉色字体▷ 注意代码中有两段粉色的背景Url1,请用同样的背景Direct Link来取代二者。简单点说就是,两个背景Url1的背景Direct Link都要一样!因为一个是用来设置,一个是用来展示点击的。
蓝色字体

青色字体▷和粉色\蓝色字体一样,两个背景Url1的背景Direct Link都要一样!
橙色字体▷鼠标指向背景时,所出现的字,可随个人喜好更改!
红色字体▷所显示的背景图宽度与高度。
NEWER POSTOLDER POST