(091)jquery_jqueryui_tooltip

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
  <head>
    <title>tooltip.html</title>
    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
    <link rel="stylesheet" type="text/css" href="//apps.bdimg.com/libs/jqueryui/1.10.4/css/jquery-ui.min.css">
    <style type="text/css">
        body
        {
            font-size: 13px;
        }
        #divtest
        {
            width: 382px;
        }
        #divtest .title
        {
            padding: 8px;
            background-color: Blue;
            color: #fff;
            height: 23px;
            line-height: 23px;
            font-size: 15px;
            font-weight: bold;
        }
        #divtest .content
        {
            padding: 8px 0px;
            background-color: #fff;
            font-size: 13px;
        }
        #divtest a
        {
            width: 127px;
        }
        .fl
        {
            float: left;
        }
        .fr
        {
            float: right;
        }
    </style>
    <script type="text/javascript" src="../js/jquery/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="../js/jqueryui/jquery-ui-1.10.4.js"></script>
    <script type="text/javascript">
        $(function(){
            $("#name").tooltip({
                show:{
                    effect:"slideDown",
                    delay:350
                },
                hide:{
                    effect:"explode",
                    delay:350
                },
                position:{
                    my:"left top",
                    at:"left bottom"
                }
            });
        });
    </script>
  </head>
  
  <body>
        <div id="divtest">
            <div class="title">
                工具提示插件</div>
            <div class="content">
                <div>
                    <label for="name">
                        姓名</label>
                    <input id="name" name="name" title="我是土豪,欢迎与我做朋友" />
                </div>
            </div>
        </div>
  </body>
</html>

 

posted @ 2015-01-19 11:12  雪中飞雁  阅读(64)  评论(0)    收藏  举报