本页内容是《动感图片展示2》同时我们还提供济宁地区的网站建设,百度,雅虎,google的推广,点金,商友,等营销软件
请输入关键字:

标题搜索 内容搜索  

你现在所在的位置->首页->javascript->动感图片展示2

动感图片展示2

时间:[2009-2-18 22:02:01]     作者:请作者尽快与我们联系。

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>10款动感图片展示js代码-效果预览(2)</title>
<meta http-equiv="imagetoolbar" content="no">
<style type="text/css">
 html {
  overflow: hidden;
 }
 body {
  background: #222;
  width: 100%;
  height: 100%;
  cursor: crosshair;
 }
 .spanSlide {
  position: absolute;
  background: #000;
  font-size: 1px;
  overflow: hidden;
 }
 .imgSlide {
  position: absolute;
  left: 5%;
  top: 5%;
  width: 90%;
  height: 90%;
  overflow: hidden;
 }
 .txtSlide {
  position: absolute;
  top: 5%;
  left: 50px;
  width:100%;
  color:#FFF;
  font-family: arial, helvetica, verdana, sans-serif;
  font-weight: bold;
  font-size:96px;
  letter-spacing:12px;
  filter: alpha(opacity=70);
  -moz-opacity:0.7;
  opacity:0.7;
 }
</style>

<script type="text/javascript">

var ym=0;
var ny=0;

createElement = function(container, type, param){
 o=document.createElement(type);
 for(var i in param)o[i]=param[i];
 container.appendChild(o);
 return o;
}

mooz = {
 O:[],
 /////////
 mult:6,
 nbI:5,
 /////////
 rwh:0,
 imgsrc:0,
 W:0,
 H:0,

 Xoom:function(N){
  this.o = createElement(document.getElementById("screen"), "span", {
   'className':'spanSlide'
  });
  img = createElement(this.o, "img", {
   'className':"imgSlide",
   'src':mooz.imgsrc[N%mooz.imgsrc.length].src
  });
  spa = createElement(this.o, "span", {
   'className':"imgSlide"
  });
  txt = createElement(spa, "span", {
   'className':"txtSlide",
   'innerHTML':mooz.imgsrc[N%mooz.imgsrc.length].title
  });
  this.N = 10000+N;
 },

 mainloop:function(){
  with(this){
   for(i=0; i<mooz.nbI; i++) {
    O[i].N += (ym-ny)/8000;
    N = O[i].N%nbI;
    ti = Math.pow(mult,N);
    with(O[i].o.style){
     left   = Math.round((W-(ti*rwh))/(W+ti)*(W*.5))+"px";
     top    = Math.round((H-ti)/(H+ti)*(H*.5))+"px";
     zIndex = Math.round(10000-ti*.1);
     width  = Math.round(ti*rwh)+"px";
     height = Math.round(ti)+"px";
    }
   }
  }
  setTimeout("mooz.mainloop();", 16);
 },

 oigres:function(){
  with(this){
   W = parseInt(document.getElementById("screen").style.width);
   H = parseInt(document.getElementById("screen").style.height);
   imgsrc = document.getElementById("images").getElementsByTagName("img");
   rwh = imgsrc[0].width/imgsrc[0].height;
   for(var i=0;i<nbI;i++) O[i] = new Xoom(i);
   mainloop();
  }
 }
}

document.onmousemove = function(e){
 if(window.event) e=window.event;
 ym = (e.y || e.clientY);
 if(ym/2>ny)ny=ym/2;
}

window.onload = function(){
 ym = ny+50;
 mooz.oigres();
}

</script>
</head>

<body>

<div style="position:absolute;left:50%;top:50%">
 <div style="position:absolute;width:720px;height:560px;left:-360px;top:-280px;background:#fff"></div>
 <div style="position:absolute;left:-40px;top:-6px;color:#000;font-family:arial;font-size:0.9em">Loading...</div>
 <div id="screen" style="position:absolute;width:640px;height:480px;left:-320px;top:-240px;overflow:hidden"></div>
</div>

<div id="images" style="visibility:hidden"> <a href="http://wallpaper.pconline.com.cn/group/48677.html" target="_blank"><img src="pil.jpg" border="0" title="infinite"></a>
  <img title="yellow" src="cit.jpg"> <a href="http://wallpaper.pconline.com.cn/photo/2555.html" target="_blank"><img src="earth.jpg" border="0" title="Earth"></a>
  <a href="http://wallpaper.pconline.com.cn/photo/2087.html" target="_blank"><img src="draps.jpg" border="0" title="dream"></a>
  <a href="http://wallpaper.pconline.com.cn/photo/2529.html" target="_blank"><img src="flo.jpg" border="0" title="flowers"></a>
</div>
<SPAN class=spanclass style="DISPLAY: none">
<script>document.write("<img src=http://count5.pconline.com.cn/newcount/count.php?channel=135&screen="+screen.width+"*" +screen.height+"&refer="+escape(document.referrer)+" border=0 width=0 height=0>");</script>
<script type="text/javascript" src="http://acount.pconline.com.cn/wzcount/artbrowse.php?id=1421645&response=1"></script>
</SPAN>
</body>
</html>

【声明】本站刊载的《动感图片展示2》一文如果有侵害你权益的情况,请联系我们。我们将及时采取措施。
QQ:44637339 Email:just6@163.com Tel:13355163107 Lining studios

友情链接

本页内容是《动感图片展示2》 返回顶部
© 2001-2024 Lining studios 济宁速创科技有限公司, All Rights Reserved
 Processed Time:46.875ms
中华人民共和国信息产业部网站备案号: 鲁ICP备09103015号-1