Something went wrong while I tested. Ugly design, by the way. I tested all these whois widgets out and none of them have some issues Looks like I have to crawl back to Firefox, then. Anyway thanks for trying, most appreciated.
if (attrlist) { attrlist = attrlist.split('|'); for (var i in attrlist) { if (attrlist && elem.getAttribute(attrlist)) alttooltiptext.push('['+attrlist+']: '+elem.getAttribute(attrlist)); } } else if ( !elem.ownerDocument.contentType.match(/^text/html//) && ( ('href' in elem && elem.href) || ('src' in elem && elem.src) ) ) { // We have a valid link (with href in it) var url = elem.href;
// ... or we have a src tag (img) if(!url) { url = elem.src; }
I tested all these whois widgets out and none of them have some issues Looks like I have to crawl back to Firefox, then. Anyway thanks for trying, most appreciated.
By raboo , # Sep 20, 2009 9:36:54 AM
By ngaybuonkhongem , # Jul 10, 2008 2:33:08 AM
Может сможете сделать опрос нескольких whois серверов?
>2all
Why this widget translate into different languages? IMHO all understandably so.
(Translated from Russian into English with Google)
By html-coder , # Feb 14, 2008 7:53:03 PM
By foddski , # Dec 1, 2007 8:13:56 PM
can you make a widget by which mouseover event would genrate the ip address, location and the coordinates of the hyperlink..........
this is actually present in firefox as an add-on.
code for ur help:-
function hostipfox_enable() {
}
function hostipfox_disable() {
}
function hostipfox_init() {
if('__hostipfox__FillInHTMLTooltip' in window) return;
const prefs = Components.classes['.org/preferences-service;1'].getService(Components.interfaces.nsIPrefService).getBranch(null);
var originalFillInHTMLTooltip = window.FillInHTMLTooltip;
window.__hostipfox__FillInHTMLTooltip = originalFillInHTMLTooltip;
const dnsService = Components.classes['.org/network/dns-service;1'].getService(Components.interfaces.nsIDNSService)
const nsISupportsString = ('nsISupportsWString' in Components.interfaces) ? Components.interfaces.nsISupportsWString : Components.interfaces.nsISupportsString;
window.FillInHTMLTooltip = function(elem)
{
var retval = false;
if (!elem ||
elem.namespaceURI == 'http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul')
return false;
try {
if (elem) {
while (elem && (elem.nodeType != Node.ELEMENT_NODE || !elem.attributes.length))
elem = elem.parentNode;
if (!elem) return false;
var attrlist = null;
try {
attrlist = prefs.getBoolPref('browser.chrome.tooltips.use_attrlist') ? prefs.getComplexValue('browser.chrome.tooltips.attrlist', nsISupportsString).data : null ;
}
catch(ex) {
}
if (attrlist) {
attrlist = attrlist.split('|');
for (var i in attrlist) {
if (attrlist && elem.getAttribute(attrlist))
alttooltiptext.push('['+attrlist+']: '+elem.getAttribute(attrlist));
}
}
else if (
!elem.ownerDocument.contentType.match(/^text/html//) &&
( ('href' in elem && elem.href) || ('src' in elem && elem.src) )
)
{
// We have a valid link (with href in it)
var url = elem.href;
// ... or we have a src tag (img)
if(!url)
{
url = elem.src;
}
if(url)
{
if(url.length > 40)
{
url = url.substring(0, 37) + '...';
}
if(url.substring(0, 4) == 'http')
{
var original = elem.label ? elem.label : elem.alt;
var hostname = elem.hostname ? elem.hostname : Components.classes[".org/network/io-service;1"].getService(Components.interfaces.nsIIOService).newURI(url, null, null).host;
var ipaddr = dnsService.resolve(hostname, false).getNextAddrAsString();
var tooltip = new hostipfox_Tooltip(original, url, hostname, ipaddr, 'loading...');
retval = tooltip.update();
tooltip.getLocation(ipaddr);
}
}
}
}
}
catch(e) {
}
if(!retval) return originalFillInHTMLTooltip(elem);
else return true;
};
}
reach me at yahoo, with
bap_g.com
take care
By mail2rajeev , # Feb 23, 2007 9:09:50 PM
By R2_ , # Feb 23, 2007 4:13:32 PM
By Snowit , # Aug 16, 2006 10:10:35 PM
By CatmandOo , # Aug 7, 2006 6:43:19 PM
(i'd like .it too but...there's a capcha so I guess I'll hang with whatever you provide - a lot anyway)
By helas , # Jul 29, 2006 6:43:51 PM
добавь еще pапрос по IP и вооще будет рулез!!!!!
By Meskalito , # Jul 28, 2006 9:06:36 AM
By electrik_org , # Jul 23, 2006 12:04:04 AM