乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      帶顏色漸變的鼠標(biāo)文字跟隨

       chenzehao 2010-04-19
      共分三個(gè)步驟:
      第一步:
      在<head></head>加入下列代碼:
      <style>
      .spanstyle {
      position:absolute;
      visibility:visible;
      top:-50px;
      font-size:9pt;
      font-family:宋體;
      font-weight:bold;
      }
      </style>
      <script>
      var message="★ ★ ★ ★ 歡 迎 光 臨 孟 憲 會(huì) 之 精 彩 世 界! ★ ★ ★ ★ "http://可以任意更改!
      message=message.split(" ")
      var step=8
      var stepbasic=8 //設(shè)定字的間距
      var x,y
      var flag=0
      var xpos=new Array()
      for (i=0;i<=message.length-1;i++) {
      xpos[i]=-100
      }
      var ypos=new Array()
      for (i=0;i<=message.length-1;i++) {
      ypos[i]=-100
      }
      var spacebetweenwords=new Array()
      for (i=0;i<=message.length-1;i++) {
      spacebetweenwords[i]=stepbasic+step*message[i].length-1
      }
      var colorstep=Math.round(255/message.length-1)
      var colorrgb=new Array()
      for (i=0;i<=message.length-1;i++) {
      colorrgb[i]=i*colorstep
      }
      var wordcolor=new Array()
      for (i=0;i<=message.length-1;i++) {
      var colhex_left = Math.floor(colorrgb[i]/16)
      var colhex_right= colorrgb[i]-(colhex_left*16)
      if (colhex_left == 10) {colhex_left="A"}
      if (colhex_left == 11) {colhex_left="B"}
      if (colhex_left == 12) {colhex_left="C"}
      if (colhex_left == 13) {colhex_left="D"}
      if (colhex_left == 14) {colhex_left="E"}
      if (colhex_left == 15) {colhex_left="F"}
      if (colhex_right == 10) {colhex_right="A"}
      if (colhex_right == 11) {colhex_right="B"}
      if (colhex_right == 12) {colhex_right="C"}
      if (colhex_right == 13) {colhex_right="D"}
      if (colhex_right == 14) {colhex_right="E"}
      if (colhex_right == 15) {colhex_right="F"}
      wordcolor[i] =""+colhex_left+colhex_right
      }
      function handlerMM(e){
      x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX
      y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY
      flag=1
      }
      function makesnake() {
      if (flag==1 && document.all) {
      for (i=message.length-1; i>=1; i--) {
      xpos[i]=xpos[i-1]+spacebetweenwords[i-1]
      ypos[i]=ypos[i-1]
      }
      xpos[0]=x+stepbasic
      ypos[0]=y
      for (i=0; i<message.length-1; i++) {
      var thisspan = eval("span"+(i)+".style")
      thisspan.posLeft=xpos[i]
      thisspan.posTop=ypos[i]
      }
      }
      else if (flag==1 && document.layers) {
      for (i=message.length-1; i>=1; i--) {
      xpos[i]=xpos[i-1]+spacebetweenwords[i-1]
      ypos[i]=ypos[i-1]
      }
      xpos[0]=x+stepbasic
      ypos[0]=y
      for (i=0; i<message.length-1; i++) {
      var thisspan = eval("document.span"+i)
      thisspan.left=xpos[i]
      thisspan.top=ypos[i]
      }
      }
      var timer=setTimeout("makesnake()",30)
      }
      </script>
      第二步:
      在<body>里加入:
      onLoad="makesnake()" style="width:100%;overflow-x:hidden;overflow-y:scroll"
      第三步:
      在<body></body>里加入:
      <script>
      <!-- 代碼開始
      for (i=0;i<=message.length-1;i++) {
      document.write("<span id='span"+i+"' class='spanstyle'>")
      document.write("<font color='"+wordcolor[i]+wordcolor[16-i]+wordcolor[i]+"'>"+message[i]+"</font>")
      document.write("</span>")
      }
      if (document.layers){
      document.captureEvents(Event.MOUSEMOVE);
      }
      document.onmousemove = handlerMM;
      // -代碼結(jié)束 -->
      </script>
       
      **************************************************
       

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶 評(píng)論公約

        類似文章 更多