页面背景花瓣效果

来源:百度知道 编辑:UC知道 时间:2024/04/28 09:59:14
页面背景花瓣效果
http://www.3lian.com/zl/2007/8-24/08375861160.html
请问这个怎么使用?
什么是把如下代码加入<body>区域中?
请清楚回答!谢谢!

什么是把如下代码加入<body>区域中?
例如你给的那个页面的源文件中的<body><div class='ad_3l'><script language='javascript' src='../../../ads/3l.js'></script></div>
你可以点查看 --- 源文件---另存到桌面 然后将<script Language="javascript">
function a(x,y,color)
{document.write("<img border='0' style='position: absolute; left: "+(x+300)+"; top: "+(y+200)+";background-color: "+color+"' src='px.gif' width=1 height=1>")}
</script>
<script>

for(t=1;t<=360;t++){
lo=200 * Math.sin(2 * (Math.PI / 180) * t);
x = lo * Math.cos((Math.PI / 180) * t);
y = lo * Math.sin((Math.PI / 180) * t);
a(x,y,"#000000");
lo=200 * Math.cos(2 * (Math.PI / 180) * t);
x = lo * Math.cos((Math.PI / 180) * t);
y = lo * Math.sin((Math.PI / 180) * t);
a(x,y,"#ff0000");
}
</script>
添加进&