开发者

qtip (jquery plugin to show tooltips): trying to work with it

开发者 https://www.devze.com 2023-01-19 21:19 出处:网络
Im trying to operate qtip. i have this code <html> <head> </head> <body> <script type=\"text/javascript开发者_Go百科\" src=\'http://ajax.googleapis.com/ajax/libs/jquery/

Im trying to operate qtip. i have this code

<html>
<head>

</head>

<body>

<script type="text/javascript开发者_Go百科" src='http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.js'></script>

<script type="text/javascript" src='/home/javier/Scaricati/jquery-qtip-1.0.0-rc3080111/jquery.qtip-1.0.0-rc3.min.js'></script>

<script type="text/javascript">

$().ready(function() { $('div.foo').qtip({

}) ); 

</script>

<div title="jander" class="foo">hola</div>


</body>
</html>

When i go to the div it just shows the HTML tooltip (containing "jander" of course).

I have checked the .js are loaded.

Im still a newbie with jquery and tooltips so any idea will be welcome.

Regards

Javi


Try with:

$(function() { //shortcut for document ready
    $('div.foo').qtip({
        content: {
            text: false // Use each elements title attribute
        }
    });
});
0

精彩评论

暂无评论...
验证码 换一张
取 消