直接用.net,里面有很多类似控件,然后可以看看生成的客户端的js代码

解决方案 »

  1.   

    当然 我们不可否认这里边很多是直接用js来实现的但 我们同样也看到了通过其他js库来实现效果的 
      

  2.   


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>无标题页</title>
        <script type="text/javascript">
        var a=10,b=10;
        function begin()
        {
            var img=document.getElementById("img1"); 
            img.style.position="absolute";       
            img.style.top=a+"px";
            img.style.left=b+"px";
            a+=10;
            b+=10;
            if(a>=200||b>=200)
                a=b=10;
            window.setTimeout("begin()",33);
        }
        </script>
    </head>
    <body>
        <div style="width: 200px; height: 200px">
        <img id="img1" src="2.jpg"/>
        </div>
        <button id="btn1" onclick="begin();">begin</button>
    </body>
    </html>
      

  3.   

    我之前也是这么做的 可是这么做有个很大的问题 就是鼠标指针会一直在箭头跟沙漏之间变换 闪烁的很厉害 所以我猜是不是还有更好的办法呢?
    http://egria.net/index.htm这个网站顶部的导航栏的效果 就是这样的 很漂亮吧...