Seite 1 von 1

HTML: favicons

Verfasst: Di Dez 14, 2010 7:36 pm
von naums
folgender Code:

Code: Alles auswählen

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<HTML>
<HEAD>
<TITLE>Oettinger Games Beta 3 kommt am 1.1.2011</TITLE>
<STYLE type="text/css">
P{
    Font-Size: 14px; Color: #000000; text-align:center}
A{
    Font-Size: 14px; Color: #202020; text-align:center}
a:link { 
    text-decoration:none; color:#606060}
a:visited { 
    text-decoration:none; color:#606060}
a:hover { 
    text-decoration:underline; color:#202020}
a:active { 
    text-decoration:underline; color:#404040}
a:focus { 
    text-decoration:underline; color:#606060}
BODY{
    Margin-Left:0px; Margin-Right:0px; Margin-Top:0px; Margin-Bottom:0px; Font-Family: sans, mono, verdana; status}
h1{
    Font-Size: 20px; Color: #000000}
small{
    Color: #000000}
</STYLE>

<script language="JavaScript">
<!-- 
window.status = "Oettinger Games Beta 3 kommt am 1.1.2011";
-->
</script>

<LINK href="favicon.ico" rel="shortcut icon">
<LINK href="favicon.ico" type=image/x-icon rel="shortcut icon">

<BODY>
<center>
<img src="logo.png" title="Oettinger Games Logo">
<H1>Hier kommt am 1.1.2011 die Oettinger Games Beta 3</H1>
<P>Herzlich Willkommen. <BR />
Du bist an der Adresse, wo am 1.1.2011 die Oettinger Games Beta 3 kommen wird. Wenn du zur Beta 2 m&ouml;chtest, klicke einfach <A href="http://klassenzimmer.scrapping.cc/naums/oettinger-games/index.php">HIER</A><P>
<P><STRONG>Das Oettinger Games Team</STRONG></P>
</center>
</BODY>
</HTML>

favicon.ico liegt am angegebenen ort, ist eine Ico, 16x16, 256 Farben. Warum wir die Datei nicht auf dem Tab (beim FF, Chromium) angezeigt? Stattdessen zeigt der nichts (FF) bzw. diese leere Seite (Chromium) an. Was mache ich falsch?

Re: HTML: favicons

Verfasst: Di Dez 14, 2010 9:37 pm
von cloidnerux

Re: HTML: favicons

Verfasst: Di Dez 14, 2010 11:08 pm
von Kerli
Ein erster Schritt wäre es einmal valides HTML zu schreiben (==> http://validator.w3.org/). Teilweise kann es auch etwas dauern bis ein Favicon neu geladen wird, da es meist gecached wird. Manchmal hilft es einmal das Favicon direkt zu laden und dann noch einmal die Seite an sich.

Re: HTML: favicons

Verfasst: Mi Dez 15, 2010 7:58 am
von naums
mit w3 validierter Code:

Code: Alles auswählen

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<HTML>
<HEAD>
<TITLE>Oettinger Games Beta 3 kommt am 1.1.2011</TITLE>
<STYLE type="text/css">
P{
    Font-Size: 14px; Color: #000000; text-align:center}
A{
    Font-Size: 14px; Color: #202020; text-align:center}
a:link { 
    text-decoration:none; color:#606060}
a:visited { 
    text-decoration:none; color:#606060}
a:hover { 
    text-decoration:underline; color:#202020}
a:active { 
    text-decoration:underline; color:#404040}
a:focus { 
    text-decoration:underline; color:#606060}
BODY{
    Margin-Left:0px; Margin-Right:0px; Margin-Top:0px; Margin-Bottom:0px; Font-Family: sans, mono, verdana; status}
h1{
    Font-Size: 20px; Color: #000000}
small{
    Color: #000000}
</STYLE>

<script language="JavaScript" type="text/javascript">
<!-- 
window.status = "Oettinger Games Beta 3 kommt am 1.1.2011";
-->
</script>

<LINK href="favicon.ico" rel="shortcut icon">
<LINK href="favicon.ico" type="image/x-icon" rel="shortcut icon">

</HEAD>
<BODY>
<center>
<img src="logo.png" title="Oettinger Games Logo" alt="Oettinger Games Logo">
<H1>Hier kommt am 1.1.2011 die Oettinger Games Beta 3</H1>
<P>Herzlich Willkommen. <BR>
Du bist an der Adresse, wo am 1.1.2011 die Oettinger Games Beta 3 kommen wird. Wenn du zur Beta 2 m&ouml;chtest, klicke einfach <A href="http://klassenzimmer.scrapping.cc/naums/oettinger-games/index.php">HIER</A><P>
<P><STRONG>Das Oettinger Games Team</STRONG></P>
</center>
</BODY>
</HTML>
Problem bleibt bestehen. Im Quelltext: wenn ich auf favicon.ico klicke (Chromium) zeigt der mir das Favicon alleine an. Aber der will das anscheinend net in den Tab laden.

Re: HTML: favicons

Verfasst: Mi Dez 15, 2010 9:06 am
von C@mper
Benenne das Logo mal um z.B. "favico.ico" oder "gamelogo.ico"

edit: soweit mir bekannt ist, arbeitet Google Chrome nur mit 16x16 px

Re: HTML: favicons

Verfasst: Mi Dez 15, 2010 9:58 am
von naums
Nach dem Umbenennen wird das Ding vom FF geladen. Das Chrome (Chromium) nur 16x16 Pixel Icons annimmt steht auch in dem Wiki-Eintrag. Ich muss also die Größe noch ändern, damit der das auch annimmt. Danke Leute.