Klaus Hartl schrieb: > this.hostname would give you "www.google.com" > > All in all, try this:
Oho, as to you from the feather streams, kompliment. whether i will rise there sometime behind it!? Thank you, i make this, now the home domain exclude, great :) jQuery.fn.favicon = function () { return this.each(function() { var hoststring = /^http:/; var hrefvalue = this.getAttribute("href"); if (hrefvalue.search(hoststring) != -1) { var domain = this.hostname; if (domain != document.location.hostname) { var cuesrc = "http://"+domain+"/favicon.ico"; var cue = "<img class=\"favicon\" src=\""+cuesrc+"\" alt=\"\" />"; jQuery(this).append(cue); } } }); }; N8 -- Viele Grüße, Olaf ------------------------------- [EMAIL PROTECTED] http://olaf-bosch.de www.akitafreund.de ------------------------------- _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/