Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
qtip with simple html page
16th June, 07:14
Post: #1
qtip with simple html page
Sorry, but i dont understand HOW.

We create a HTML page.
in <head> we include the "jquery.qtip.css" file.
in the end of document, before <body> we include "jquery.qtip.js" (its jquery 1.4) and "jquery.qtip.min.js" (its qtip's code), right?

I dont understand where i must write the
PHP Code
$('a[title]').qtip()


???
I tried this variant, but its dont working
PHP Code
<title>Untitled Document</title>
<link type="text/css" rel="stylesheet" href="qtips/jquery.qtip.css" />
<script>
$(document).ready(function()
{
    // Match all <A/> links with a title tag and use it as the content (default).
    $('a[title]').qtip();
});
</script>
</head>
<body>
 
<a href="/wiki/Momentum" title="Wikipedia: Momentum">momentum</a>
 
<script type="text/javascript" src="qtips/jquery.qtip.js"></script>
<script type="text/javascript" src="qtips/jquery.qtip.min.js"></script>
</body>
</html>


What i do is wrong?
Find all posts by this user
Quote this message in a reply
23rd September, 10:37
Post: #2
RE: qtip with simple html page
JS Code
<html>
<title>Untitled Document</title>
<link type="text/css" rel="stylesheet" href="qtips/jquery.qtip.css" />
 
</head>
<body>
 
<a href="/wiki/Momentum" title="Wikipedia: Momentum">momentum</a>
 
<script type="text/javascript" src="qtips/jquery.js"></script>
<script type="text/javascript" src="qtips/jquery.qtip.js"></script>
 
 
 
 
<script>
$(document).ready(function()
{
    // Match all <A/> links with a title tag and use it as the content (default).
    $('a[title]').qtip();
});
</script>
</body>
</body>
</html>

Just a few changes, you can't run the code before you load the libraries.
Hope it helps.
Find all posts by this user
Quote this message in a reply
6th October, 01:42
Post: #3
RE: qtip with simple html page
[php][php]<html><head><title>Untitled Document</title>
<link type="text/css" rel="stylesheet" href="qtips/jquery.qtip.css" />

</head>
<body>

<a href="/wiki/Momentum" title="Wikipedia: Momentum">momentum</a>

<script type="text/javascript" src="qtips/jquery.js"></script>
<script type="text/javascript" src="qtips/jquery.qtip.min.js"></script>
<script>
$(document).ready(function()
{
// Match all <A/> links with a title tag and use it as the content (default).
$('a[title]').qtip();
});
</script>
</body>
</html>[/php]
include the js of jQuery and qTip Smile
and write the code below them.

'qTip is a good javascript library!',my mum said that:)
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] HTML for attaching qTip2 to <a> tag? paigepauli 2 277 26th March 22:12
Last Post: paigepauli
  Loading Multiple qTip2 Scripts on the Same Page jdiggs332 1 614 18th December 20:56
Last Post: Craig
  [Solved] Dynamically disable/enable tips on the same trigger without refreshing page dvieira 1 710 27th October 18:01
Last Post: Craig



User(s) browsing this thread: 1 Guest(s)