Shoutbox

favicon problem - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: favicon problem (/showthread.php?tid=30065)

favicon problem by Eljay on 08-17-2004 at 11:43 AM

well as the title suggests i have a problem with my favicon (the little icon that appears next to the url of a website : see attachment if u dont know what i mean)
well i just made one and uploaded it and it works fine on my website http://leejeffery.x3fusion.com
the problem is on my .tk www.gamesmart.tk it doesnt show up
now i dont know if this is a limitation because of the free domain or what
can anyone help?


RE: favicon problem by Tochjo on 08-17-2004 at 11:48 AM

Your .tk domain is not simply a redirect domain. When you take a closer look, you will see that when you use your .tk domain, your page will appear in a frame. Logically, the icon does not show then, because you have not specified a FavIcon for the page containing the frameset.

A workaround would be to force the page to avoid frames, by reloading it if it is loaded in a frame. In order to do that, use the following code and put it in the head section of your page.

code:
<SCRIPT TYPE="text/javascript">
if (top.frames.length != 0) {top.location.href = self.document.location}
</SCRIPT>

Note that this will show your site's full address in the address bar instead of the .tk one. The code should reload your page if is detects that it is being loaded in a frame.