微信扫一扫 分享朋友圈

已有 1478 人浏览分享

一个会伸缩的按钮

[复制链接]
1478 0
<!--  要完成此效果把如下代码加入到<body>区域中-->

<p align="center"> </p>
<div align="center"><center>

<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%"><form name="form2" onSubmit="null">
      <p><input type="submit" name="banner" VALUE="Submit"
      onClick="alert('You have to put an \'action=[url]\' on the form
tag!!')"> <br>
      <script language="JavaScript"><!-- Jon Eyrick - tt1234@263.net
// I do not take full credit for this script, I only made half of this..
var id,pause=0,position=0;
function banner() {
        // variables declaration
var i,k,msg="我搜特效代码";// increase msg
        k=(30/msg.length)+1;
        for(i=0;i<=k;i++) msg+=" "+msg;
        // show it to the window
       document.form2.banner.value=msg.substring(position,position-30);
        // set new position
       if(position++==msg.length) position=0;
        // repeat at entered speed
        id=setTimeout("banner()",60); }
// end -->
banner();
</script></p>
    </form>
    </td>
  </tr>
</table>
</center></div>

<p> </p>


帖子地址: 

举报 使用道具

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

本版积分规则

0

关注

0

粉丝

321

主题
精彩推荐
热门资讯
网友晒图
图文推荐
  • 微信公众平台

  • 扫描访问手机版

QQ|Archiver|手机版|小黑屋|熙海啵啵 ( 滇ICP备2020008601号|滇公网安备53011202001450 )|友链申请|滇ICP备2020008601号

GMT+8, 2025-7-3 23:35 , Processed in 0.167123 second(s), 41 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.