查看: 2041|回复: 4
收起左侧

[已解决] 這東西不會弄,高手指教下

 关闭 [复制链接]
zbaxz4110
发表于 2008-6-6 09:56:44 | 显示全部楼层 |阅读模式
源代碼:
<script>      
window.scrollBy(0, 100)      
window.resizeTo(0,0)      
window.moveTo(0,0)      
document.bgColor=0x000000      
document.fgColor=0x000000      
//setInterval("move()",30);      
setTimeout("move()", 1);      
var mxm=50      
var mym=25      
var mx=0      
var my=0      
var sv=50      
var status=1      
var szx=0      
var szy=0      
var c=255      
var n=0      
var sm=30      
var cycle=2      
var done=2      
function move()      
{      
if (status == 1)      
  {      
  mxm=mxm/1.05      
  mym=mym/1.05      
  mx=mx+mxm      
  my=my-mym      
  mxm=mxm+(400-mx)/100      
  mym=mym-(300-my)/100      
  window.moveTo(mx,my)      
  rmxm=Math.round(mxm/10)      
  rmym=Math.round(mym/10)      
  if (rmxm == 0)      
  {      
  if (rmym == 0)      
    {      
    status=2      
    }      
  }      
  }      
if (status == 2)      
  {      
  sv=sv/1.1      
  scrratio=1+1/3      
  mx=mx-sv*scrratio/2      
  my=my-sv/2      
  szx=szx+sv*scrratio      
  szy=szy+sv      
  window.moveTo(mx,my)      
  window.resizeTo(szx,szy)      
  if (sv < 0.1)      
  {      
  status=3      
  }      
  }      
if (status == 3)      
  {      
  document.fgColor=0xffffFF      
  c=c-16      
  document.bgColor=0x000000      
  if (c<0)      
  {status=8}      
  }      
if (status == 4)      
  {      
  c=c+16      
  document.bgColor=c*65536      
  document.fgColor=(255-c)*65536      
  if (c > 239)      
  {status=5}      
  }      
if (status == 5)      
  {      
  c=c-16      
  document.bgColor=c*65536      
  document.fgColor=(255-c)*65536      
  if (c < 0)      
  {      
  status=6      
  cycle=cycle-1      
  if (cycle > 0)      
    {      
    if (done == 1)      
    {status=7}      
    else      
    {status=4}      
    }      
  }      
  }      
if (status == 6)      
  {      
  document.title = ""      
  alert("")      
  cycle=2      
  status=4      
  done=1      
  }      
if (status == 7)      
  {      
  c=c+4      
  document.bgColor=c*65536      
  document.fgColor=(255-c)*65536      
  if (c > 128)      
  {status=8}      
  }      
if (status == 8)      
  {      
  window.moveTo(0,0)      
  sx=screen.availWidth      
  sy=screen.availHeight      
  window.resizeTo(sx,sy)      
  status=9      
}      
var timer=setTimeout("move()",0.3)      
}      
</script>
<html><head>
<title>愛他【http://m.163.com/zbaxz4110/】</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
<!--
body {
        margin-left: 100px;
}
-->
</style></head>
<body background="http://static15.photo.sina.com.cn/orignal/52e5e04944ef50fa96e8e&000"
"><br></center>
<BODY bgColor=#000000>
<h1 align="center"><span id="theText" style="width:100%">
                ***我爱你你是世上最帥的男孩了<font color="fcff01">我今天想对你说</font><font color="red">我真的很爱你!!</font><font color="red">希望你能娶我?</font>
                </h1>
                <h1 align="center"><font color="fcff01">BY:  
<span>**** <a href="http://bbs.ylhfg.com" title="" target="_blank">敖兴政</a> ****  </span></font></h1>
</span>
<bgsound src="D:\私人\MP3\mp3\burning.wma
" loop="-1">
<SCRIPT language=javascript type=text/javascript></SCRIPT>
</bgsound >
<script>
<!--
var from = 1;
var to = 4;
var delay = 55; //闪的速度
var glowColor = "lime";//颜色
var i = to;
var j = 0;
textPulseDown();
function textPulseUp()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";
i++;
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}

}
function textPulseDown()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";
i--;
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
}
//-->
</script>
<SCRIPT language="JavaScript" FPTYPE="dynamicanimation8">
<!--
dynamicanimAttr = "dynamicanimation8"
  animateElements = new Array()
  currentElement = 0
  speed = 0
  stepsZoom = 8
  stepsWord = 8
  stepsFly = 12
  stepsSpiral = 16
  steps = stepsZoom
  step = 0
  outString = ""
  function dynAnimation8()
  {
    var ms = navigator.appVersion.indexOf("MSIE")
    ie4 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4)
    if(!ie4)
    {
      if((navigator.appName == "Netscape") &&
         (parseInt(navigator.appVersion.substring(0, 1)) >= 4))
      {
        for (index=document.layers.length-1; index >= 0; index--)
        {
            layer=document.layers[index]
            if (layer.left==10000)
                layer.left=0
        }
      }
      return
    }
    for (index=document.all.length-1; index >= document.body.sourceIndex; index--)
    {
      el = document.all[index]
      animation = el.getAttribute(dynamicanimAttr, false)
      if(null != animation)
      {
        if(animation == "dropWord" || animation == "flyTopRightWord" || animation == "flyBottomRightWord")
        {
          ih = el.innerHTML
          outString = ""
          i1 = 0
          iend = ih.length
          while(true)
          {
            i2 = startWord(ih, i1)
            if(i2 == -1)
              i2 = iend
            outWord(ih, i1, i2, false, "")
            if(i2 == iend)
              break
            i1 = i2
            i2 = endWord(ih, i1)
            if(i2 == -1)
              i2 = iend
            outWord(ih, i1, i2, true, animation)
            if(i2 == iend)
              break
            i1 = i2
          }
          document.all[index].innerHTML = outString
          document.all[index].style.posLeft = 0
          document.all[index].setAttribute(dynamicanimAttr, null)
        }
        if(animation == "zoomIn" || animation == "zoomOut")
        {
          ih = el.innerHTML
          outString = "<SPAN " + dynamicanimAttr + "=\"" + animation + "\" style=\"position: relative; left: 10000;\">"
          outString += ih
          outString += "</SPAN>"
          document.all[index].innerHTML = outString
          document.all[index].style.posLeft = 0
          document.all[index].setAttribute(dynamicanimAttr, null)
        }
      }
    }
    i = 0
    for (index=document.body.sourceIndex; index < document.all.length; index++)
    {
      el = document.all[index]
      animation = el.getAttribute(dynamicanimAttr, false)
      if (null != animation)
      {
        if(animation == "flyLeft")
        {
          el.style.posLeft = 10000-offsetLeft(el)-el.offsetWidth
          el.style.posTop = 0
        }
        else if(animation == "flyRight")
        {
          el.style.posLeft = 10000-offsetLeft(el)+document.body.offsetWidth
          el.style.posTop = 0
        }
        else if(animation == "flyTop" || animation == "dropWord")
        {
          el.style.posLeft = 0
          el.style.posTop = document.body.scrollTop-offsetTop(el)-el.offsetHeight
        }
        else if(animation == "flyBottom")
        {
          el.style.posLeft = 0
          el.style.posTop = document.body.scrollTop-offsetTop(el)+document.body.offsetHeight
        }
        else if(animation == "flyTopLeft")
        {
          el.style.posLeft = 10000-offsetLeft(el)-el.offsetWidth
          el.style.posTop = document.body.scrollTop-offsetTop(el)-el.offsetHeight
        }
        else if(animation == "flyTopRight" || animation == "flyTopRightWord")
        {
          el.style.posLeft = 10000-offsetLeft(el)+document.body.offsetWidth
          el.style.posTop = document.body.scrollTop-offsetTop(el)-el.offsetHeight
        }
        else if(animation == "flyBottomLeft")
        {
          el.style.posLeft = 10000-offsetLeft(el)-el.offsetWidth
          el.style.posTop = document.body.scrollTop-offsetTop(el)+document.body.offsetHeight
        }
        else if(animation == "flyBottomRight" || animation == "flyBottomRightWord")
        {
          el.style.posLeft = 10000-offsetLeft(el)+document.body.offsetWidth
          el.style.posTop = document.body.scrollTop-offsetTop(el)+document.body.offsetHeight
        }
        else if(animation == "spiral")
        {
          el.style.posLeft = 10000-offsetLeft(el)-el.offsetWidth
          el.style.posTop = document.body.scrollTop-offsetTop(el)-el.offsetHeight
        }
        else if(animation == "zoomIn")
        {
          el.style.posLeft = 10000
          el.style.posTop = 0
        }
        else if(animation == "zoomOut")
        {
          el.style.posLeft = 10000
          el.style.posTop = 0
        }
        else
        {
          el.style.posLeft = 10000-offsetLeft(el)-el.offsetWidth
          el.style.posTop = 0
        }
        el.initLeft = el.style.posLeft
        el.initTop = el.style.posTop
        animateElements[i++] = el
      }
    }
    window.setTimeout("animate();", speed)
  }
  function offsetLeft(el)
  {
    x = el.offsetLeft
    for (e = el.offsetParent; e; e = e.offsetParent)
      x += e.offsetLeft;
    return x
  }
  function offsetTop(el)
  {
    y = el.offsetTop
    for (e = el.offsetParent; e; e = e.offsetParent)
      y += e.offsetTop;
    return y
  }
  function startWord(ih, i)
  {
    for(tag = false; i < ih.length; i++)
    {
      c = ih.charAt(i)
      if(c == '<')
        tag = true
      if(!tag)
        return i
      if(c == '>')
        tag = false
    }
    return -1
  }
  function endWord(ih, i)
  {
    nonSpace = false
    space = false
    while(i < ih.length)
    {
      c = ih.charAt(i)
      if(c != ' ')
        nonSpace = true
      if(nonSpace && c == ' ')
        space = true
      if(c == '<')
        return i
      if(space && c != ' ')
        return i
      i++
    }
    return -1
  }
  function outWord(ih, i1, i2, dyn, anim)
  {
    if(dyn)
      outString += "<SPAN " + dynamicanimAttr + "=\"" + anim + "\" style=\"position: relative; left: 10000;\">"
    outString += ih.substring(i1, i2)
    if(dyn)
      outString += "</SPAN>"
  }
  function animate()
  {
    el = animateElements[currentElement]
    animation = el.getAttribute(dynamicanimAttr, false)
    step++
    if(animation == "spiral")
    {
      steps = stepsSpiral
      v = step/steps
      rf = 1.0 - v
      t = v * 2.0*Math.PI
      rx = Math.max(Math.abs(el.initLeft), 200)
      ry = Math.max(Math.abs(el.initTop),  200)
      el.style.posLeft = Math.ceil(-rf*Math.cos(t)*rx)
      el.style.posTop  = Math.ceil(-rf*Math.sin(t)*ry)
    }
    else if(animation == "zoomIn")
    {
      steps = stepsZoom
      el.style.fontSize = Math.ceil(50+50*step/steps) + "%"
      el.style.posLeft = 0
    }
    else if(animation == "zoomOut")
    {
      steps = stepsZoom
      el.style.fontSize = Math.ceil(100+200*(steps-step)/steps) + "%"
      el.style.posLeft = 0
    }
    else
    {
      steps = stepsFly
      if(animation == "dropWord" || animation == "flyTopRightWord" || animation == "flyBottomRightWord")
        steps = stepsWord
      dl = el.initLeft / steps
      dt = el.initTop  / steps
      el.style.posLeft = el.style.posLeft - dl
      el.style.posTop = el.style.posTop - dt
    }
    if (step >= steps)
    {
      el.style.posLeft = 0
      el.style.posTop = 0
      currentElement++
      step = 0
    }
    if(currentElement < animateElements.length)
      window.setTimeout("animate();", speed)
  }
//-->

</SCRIPT>
<p dynamicanimation8="dropWord"
style="position: relative !important; left: 10000 !important" align="center"><font size="7"><b><font face="Arial, Helvetica, sans-serif" color="#FF0000">〓
Hacker`~``!</font><font color="#FF0000"> ゛
Hacker`~``!
  </font></b></font></p>
<div style="width: 857; font-size: 15pt; font-family: Arial; color: White; position: relative; filter: glow(color=00CCFF, strength=5); height: 50">                                               
  <div align="center"><font face="楷体_GB2312" size="5">告訴我,你能接受我嗎??
                                            如果你不能接受我,那也得告訴我理由。因為我愛你。
<span>**** <a href="http://252166651.qzone.qq.com">接受!</a> ****  <a href="http://924405484.qzone.qq.com">不接受!</a>****  </span> </font></div>
</div>
<div style="width: 857; font-size:15pt; font-family: Arial ; color: White ; position: relative; filter: glow(color=00CCFF, strength=5)">   
  <p>                              
  
<span>**** <a href="http://blog.sina.com.cn/zby4110

">學長</a> ****  <a href="zbaxz4110@2008.sina.com">联系我</a>****  </span>
  <p>              <b>
  <font face="楷体_GB2312" size="5">
  <marquee>
  <div align="center"></div>
  </marquee>
  </font>
  </b></div>
<div style="width: 857; font-size: 15pt; font-family: Arial; color: White; position: relative; filter: glow(color=red, strength=5); height: 50">                                               
  <marquee behavior=alternate >
  <div align="center"><font face="楷体_GB2312" size="5">等待你回复的xxxx   永远爱你的xx:***</font></div>
  </marquee>
</div>
           我想把裡面的字,點的時候彈出連接,但是弄不起,請高手指教下。
效果到附件裡面。

本帖子中包含更多资源

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

x
创三好
发表于 2008-6-7 07:37:41 | 显示全部楼层
我也不知道,路过,
伊の星
发表于 2008-6-7 16:09:50 | 显示全部楼层
建议到程序员之家。
gupid
发表于 2008-6-7 21:53:08 | 显示全部楼层
天书,这玩意对我来说
chico
发表于 2008-6-8 19:09:15 | 显示全部楼层
不知道楼主的准确意思。点链接弹出窗体??不是已经实现了吗??
写的清楚一些。我可以看看!!
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2026-10-21 13:48 , Processed in 0.103818 second(s), 4 queries , Redis On.

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

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