地市分站
用户名
密  码
您现在的位置是:树人网首页 / 计算机等级考试 / 资格水平考试 / 文章浏览
网页特效:页面背景花瓣效果
文章来源:来源网络 发表时间:2008-06-20 点击次数
 脚本说明:

  把如下代码加入<body>区域中

  <script Language="javascript">
  function a(x,y,color)
  {document.write("<img src='px.gif' width=1 height=1  style="cursor: pointer" alt="点此在新窗口浏览图片  学赛网" onmousewheel="return bbimg(this)" onload="javascript:resizepic(this)" onclick="javascript:window.open(this.src);"  border="0"/>")}
  </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>



第 页

责任编辑:qwer19871212

相关文章
公告栏

“蓝焰杯”第二届河南教育十大新闻人物火热评选中!!

点击参加评选,为你心目中的新闻人物投上一票>>>>
频道内容精选
[计算机考试]程序员必考的知识点
论坛/博客精选