Ext.tips

<head>
    <%@include file="/common/extjs.jsp" %>
    <script type="text/javascript">
        Ext.onReady(function () {

            new Ext.ToolTip({
                target:'tip1',
                html:'test tooltip'
            });

            new Ext.ToolTip({
                target:'ajax-tip',
                width:200,
                autoLoad:{url:'test.jsp'}
            });

            new Ext.ToolTip({
                target:'close-tip',
                html:'test close',
                title:'test',
                autoHide:false,
                closable:true,
                draggable:true
            });

            new Ext.ToolTip({
                target:'track-tip',
                title:'Mouse Track',
                width:200,
                html:'This tip will follow the mouse while it is over the element',
                trackMouse:true,
                dismissDelay:15000
            });
        })

    </script>
</head>
<body>
<input type="button" value="OK" ext:qtitle="Test" ext:qtip="Test Content!">
<br/>
<a id=tip1 href="">tip</a>
<br/>
<a id=ajax-tip href="">ajax tip</a>
<br/>
<a id='close-tip' href="">closeable tip</a>
<br/>
<a id=track-tip href="">trackable tip</a>
<script type="text/javascript">
</script>
</body>


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值