找回密码
 注册
【阿里云】2核2G云新老同享 99元/年,续费同价华为云精选云产品特惠做网站就用糖果主机Jtti,新加坡服务器,美国服务器,香港服务器
查看: 255|回复: 2

265上网导航神奇的LOGO图片

[复制链接]
发表于 2009 年 1 月 15 日 22:55:29 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×

  1. <html>
  2. <head>
  3. <title>中国站长天空-网页特效-图片特效-265上网导航神奇的LOGO图片</title>
  4. <meta http-equiv="content-Type" content="text/html;charset=gb2312">
  5. </head>
  6. <body>
  7. <!--把下面代码加到<body>与</body>之间-->
  8. <h1 id="Logo265"><a href="#"><img id="logoimg" src="http://www.zzsky.cn/effect/images/logo265.gif" border="0" /></a></h1>
  9. <script type="text/javascript">
  10. function m(a, b)
  11. {
  12.   return a.position = b
  13. }
  14. function o(a, b)
  15. {
  16.   return a.left = b
  17. }
  18. function ca(a, b)
  19. {
  20.   return a.zIndex = b
  21. }
  22. var p = "length", r = "style", s = "body", x, y;
  23. function U(a)
  24. {
  25.   return document.createElement(a)
  26. }
  27. var Y, mb, nb, ob, pb, Z, $;
  28. var qb = 52, rb = 34, sb = 47, tb = 35, ub = 69, vb = 35, wb = 53, xb = 36, yb = 62, zb = 35, Ab = 9, Bb = 7, Cb = 1, Db = 100;
  29. var Eb;
  30. var Fb = "http://www.zzsky.cn/effect/images/logo265.gif";
  31. function Gb(a)
  32. {
  33.   var b = 0, c = 0;
  34.   if (a.pageX || a.pageY)
  35.   {
  36.     b = a.pageX;
  37.     c = a.pageY
  38.   }
  39.   else if (a.clientX || a.clientY)
  40.   {
  41.     b = a.clientX + document[s].scrollLeft;
  42.     c = a.clientY + document[s].scrollTop
  43.   }
  44.   return [b, c]
  45. }
  46. function Ib(a)
  47. {
  48.   Jb();
  49.   a = a || document.parentWindow.event;
  50.   var b = Gb(a), c = b[0], d = b[1];
  51.   Kb(c, d, Z, sb, tb);
  52.   Kb(c, d, $, ub, vb)
  53. }
  54. function Kb(a, b, c, d, g)
  55. {
  56.   var e = a - d - mb, f = (b - g - nb) * (Ab / Bb), j = Math.sqrt(Math.pow(e, 2)
  57.     + Math.pow(f, 2)), h, l;
  58.   if (j == 0)
  59.   {
  60.     h = d;
  61.     l = g
  62.   }
  63.   else
  64.   {
  65.     var B = Math.sqrt(Math.pow(j, 2) + Math.pow(Db, 2)), E = Ab * j / B;
  66.     h = E * e / j + d + mb;
  67.     l = E * f / j / (Ab / Bb) + g + nb
  68.   }
  69.   h -= Cb;
  70.   l -= Cb;
  71.   o(c[r], parseInt(h, 10) + "px");
  72.   c[r].top = parseInt(l, 10) + "px"
  73. }
  74. function EYES_init()
  75. {
  76.   var a = Mb("Logo265"), b = Nb(a, "a");
  77.   Eb = Nb(a, "img");
  78.   if ( - 1 == Eb.src.indexOf(Fb))
  79.   {
  80.     return
  81.   }
  82.   Y = U("img");
  83.   Z = U("img");
  84.   $ = U("img");
  85.   Y.border = (Z.border = ($.border = 0));
  86.   Y.src = "http://www.zzsky.cn/effect/images/eyeballmask.gif";
  87.   Z.src = ($.src = "http://www.zzsky.cn/effect/images/pupil265.gif");
  88.   Jb();
  89.   m(Y[r], m(Z[r], m($[r], "absolute")));
  90.   ca(Y[r], 90);
  91.   ca(Z[r], ca($[r], 100));
  92.   b.appendChild(Y);
  93.   b.appendChild(Z);
  94.   b.appendChild($);
  95.   document.onmousemove = Ib;
  96.   T(window, "pageshow", Jb);
  97.   T(window, "resize", Jb)
  98. }
  99. function Jb()
  100. {
  101.   var a = Ob(Eb);
  102.   mb = a.x;
  103.   nb = a.y;
  104.   ob = Eb.width;
  105.   pb = Eb[p];
  106.   var b = "px";
  107.   o(Y[r], mb + qb + b);
  108.   Y[r].top = nb + rb + b;
  109.   o(Z[r], a.x + wb + b);
  110.   Z[r].top = a.y + xb + b;
  111.   o($[r], a.x + yb + b);
  112.   $[r].top = a.y + zb + b
  113. }
  114. function Ob(a)
  115. {
  116.   var b = a.offsetLeft, c = a.offsetTop;
  117.   if (a.offsetParent != null)
  118.   {
  119.     var d = Ob(a.offsetParent);
  120.     b += d.x;
  121.     c += d.y;
  122.   }
  123.   return{x:b,y:c}
  124. }
  125. function T(a, b, c)
  126. {
  127.   var d = "on" + b;
  128.   if (a.addEventListener)
  129.   {
  130.     a.addEventListener(b, c, false)
  131.   }
  132.   else if (a.attachEvent)
  133.   {
  134.     a.attachEvent(d, c)
  135.   }
  136.   else
  137.   {
  138.     var g = a[d];
  139.     a[d] = function()
  140.     {
  141.       var e = g.apply(this, arguments), f = c.apply(this, arguments);
  142.       return e == undefined ? f : (f == undefined ? e : f && e)
  143.     }
  144.   }
  145. };
  146. function Mb(a)
  147. {
  148.   return document.getElementById(a)
  149. }
  150. function Nb(a, b)
  151. {
  152.   return a.getElementsByTagName(b)[0]
  153. }
  154. </script>
  155. <script type="text/javascript">
  156. EYES_init();
  157. </script>
  158. </body>
  159. </html>
复制代码
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
发表于 2009 年 1 月 15 日 23:50:05 | 显示全部楼层
【腾讯云】2核2G云服务器新老同享 99元/年,续费同价
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2009 年 1 月 16 日 09:40:36 | 显示全部楼层
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|金光论坛

GMT+8, 2024 年 11 月 20 日 07:08 , Processed in 0.024322 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表