tooltip which brings external page in it
i m looking for a tooltip which can dispaly external php page in to it and which can adjust itself up and down with respext to screen size,can some one suggest me jque开发者_开发百科ry or javascript code.It should work on ajax page also.if i delete something by using ajax then tooltip should appear on ajax
try this on tiptip the bet one you can load image in this
TipTip jQuery Plugin from Valio, Inc. on Vimeo.
have you tried jquery.cluetip look at basic ajax,
refer [40+ Tooltips Scripts With AJAX, JavaScript & CSS][1]
[1]: to http://www.smashingmagazine.com/2007/06/12/tooltips-scripts-ajax-javascript-css-dhtml/
It depends if you want to show and external website, or use something like AJAX to display a single PHP file's output. As for the popup, there is jQuery UI, or you could write your own. To make the popup relative to the screen, you will have to get the width and height of the window, which can be a little hard in different browsers. jQuery, however, makes things much easier:
$(window).width(); $(window).height();
If you want the document dimensions, replace $(window)
with $(document)
To fetch a PHP file and display it's output in a div
(for example), I'd use jQuery's $.get()
. An example is shown below:
$.get('path/to/php.php', function(data) { $('#popup_div).html(data); });
Hope this helps,
James
精彩评论