Scrolltext im Seitentitel
Hallo habe gerade eben den oben genannten Hack hochgeladen, der aus einer .htm besteht
Also es betrifft die site.htm! :
Die sieht wie folgt aus:
Genau so habe ich sie hochgeladen und nun sollte das eig aussehen wie hier im Titel: www.masterball.org
Was stimmt bei mir jetzt nicht oder warum kann er das nicht anzeigen?

Also es betrifft die site.htm! :
Die sieht wie folgt aus:
|
|
PHP-Quelltext |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
<html>
<head>
<link rel="shortcut icon" href="header/basketball.jpg">
<p>$site_metatags $site_design
<script language="JavaScript">
var tx = new Array ("$config[site_name]", "$config[site_title]",
"$config[site_urls]");
var txcount=3;
var i=1; var wo=0; var ud=1;
function anititle()
{ window.document.title=tx[wo].substr(0, i)+"_";
if (ud==0) i--;
if (ud==1) i++;
if (i==-1) {ud=1;i=0;wo++;wo=wo%txcount;}
if (i==tx[wo].length+10) {ud=0;i=tx[wo].length;}
// if (window.document.title.length < 20 ) window.document.title=window.document.title+"-";
// if (window.document.title.length == 20 ) window.document.title=window.document.title+"]";
// if (window.document.title.length == 21 ) setTimeout("window.document.title='Seitentitel mal anders '; ",1000);
parent.window.document.title=tx[wo].substr(0, i)+"_";
setTimeout("anititle()",100); }
</script>
</p>
<link rel="shortcut icon" href="header/basketball.jpg">
</head>
<body onLoad="anititle()">
<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
<tr>
<td valign="top">
<table border="0" cellspacing="0" cellpadding="0" width="$config[site_width]" align="center">
<tr>
<td align="center" valign="top">$site_kopf</td>
</tr>
<tr>
<td align="center" valign="top">$navigation_top</td>
</tr>
<tr>
<td align="center" valign="top">$site_content</td>
</tr>
<tr>
<td align="center" valign="top">$navigation_bottom</td>
</tr>
<tr>
<td align="center" valign="top">$site_fuss</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
|
Genau so habe ich sie hochgeladen und nun sollte das eig aussehen wie hier im Titel: www.masterball.org
Was stimmt bei mir jetzt nicht oder warum kann er das nicht anzeigen?
|
|
PHP-Quelltext |
1 |
<link rel="shortcut icon" href="header/basketball.jpg">
|
Das müsste man aber noch auf sein Favicon anpassen!
Ich guck mal wie das bei mir klappt!
Edit:
Also öffne deine Site.htm und suche folgendes:
|
|
PHP-Quelltext |
1 |
<link rel="shortcut icon" href="images/site/phpkit.ico">
|
Direkt dadrunter setzt du dann das:
|
|
PHP-Quelltext |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<script language="JavaScript">
var tx = new Array ("$config[site_name]", "$config[site_title]",
"$config[site_urls]");
var txcount=3;
var i=1; var wo=0; var ud=1;
function anititle()
{ window.document.title=tx[wo].substr(0, i)+"_";
if (ud==0) i--;
if (ud==1) i++;
if (i==-1) {ud=1;i=0;wo++;wo=wo%txcount;}
if (i==tx[wo].length+10) {ud=0;i=tx[wo].length;}
// if (window.document.title.length < 20 ) window.document.title=window.document.title+"-";
// if (window.document.title.length == 20 ) window.document.title=window.document.title+"]";
// if (window.document.title.length == 21 ) setTimeout("window.document.title='Seitentitel mal anders '; ",1000);
parent.window.document.title=tx[wo].substr(0, i)+"_";
setTimeout("anititle()",100); }
</script>
</head>
<body onLoad="anititle()">
|
So sollte das funktionieren. Bei mir klappts!
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »Hurrican Warrior« (13. März 2008, 04:54)
Les das Editierte!
Falls ihr den blöden Unterstrich weghaben wollt der immer von Links nach Rechts fährt (_) einfach bei meinem Code in Zeile 9/17 folgendes Ändern:
Zeile 9:
Zeile 17:
Zwischen den Beiden "" einfach eine Leerstelle anstatt des Unterstriches (_)
Gruß
Hurrican Warrior
Falls ihr den blöden Unterstrich weghaben wollt der immer von Links nach Rechts fährt (_) einfach bei meinem Code in Zeile 9/17 folgendes Ändern:
Zeile 9:
|
|
PHP-Quelltext |
1 |
{ window.document.title=tx[wo].substr(0, i)+" ";
|
Zeile 17:
|
|
PHP-Quelltext |
1 |
parent.window.document.title=tx[wo].substr(0, i)+" ";
|
Zwischen den Beiden "" einfach eine Leerstelle anstatt des Unterstriches (_)
Gruß
Hurrican Warrior
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Hurrican Warrior« (10. März 2008, 21:25)
OK habe jetzt die site.htm nach deinen Anweisungen geändert.
site.htm sieht jetzt wie folgt aus:
Leider geht es immer noch nicht. Mache ich immer noch etwas falsch?
site.htm sieht jetzt wie folgt aus:
|
|
PHP-Quelltext |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
<html>
<head>
$site_metatags
$site_design
<title>$config[site_name] $config[site_title]</title>
<link rel="shortcut icon" href="images/site/phpkit.ico">
<script language="JavaScript">
var tx = new Array ("$config[site_name]", "$config[site_title]",
"$config[site_urls]");
var txcount=3;
var i=1; var wo=0; var ud=1;
function anititle()
{ window.document.title=tx[wo].substr(0, i)+"_";
if (ud==0) i--;
if (ud==1) i++;
if (i==-1) {ud=1;i=0;wo++;wo=wo%txcount;}
if (i==tx[wo].length+10) {ud=0;i=tx[wo].length;}
// if (window.document.title.length < 20 ) window.document.title=window.document.title+"-";
// if (window.document.title.length == 20 ) window.document.title=window.document.title+"]";
// if (window.document.title.length == 21 ) setTimeout("window.document.title='Seitentitel mal anders '; ",1000);
parent.window.document.title=tx[wo].substr(0, i)+"_";
setTimeout("anititle()",100); }
</script>
</p>
</head>
<body onLoad="anititle()">
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
<tr>
<td valign="top">
<table border="0" cellspacing="0" cellpadding="0" width="$config[site_width]" align="center">
<tr>
<td align="center" valign="top">$site_kopf</td>
</tr>
<tr>
<td align="center" valign="top">$navigation_top</td>
</tr>
<tr>
<td align="center" valign="top">$site_content</td>
</tr>
<tr>
<td align="center" valign="top">$navigation_bottom</td>
</tr>
<tr>
<td align="center" valign="top">$site_fuss</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
|
Leider geht es immer noch nicht. Mache ich immer noch etwas falsch?
|
|
PHP-Quelltext |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
<body>
<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
<tr>
<td valign="top">
<table border="0" cellspacing="0" cellpadding="0" width="$config[site_width]" align="center">
<tr>
<td align="center" valign="top">$site_kopf</td>
</tr>
<tr>
<td align="center" valign="top">$navigation_top</td>
</tr>
<tr>
<td align="center" valign="top">$site_content</td>
</tr>
<tr>
<td align="center" valign="top">$navigation_bottom</td>
</tr>
<tr>
<td align="center" valign="top">$site_fuss</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
|
Ist das dein Original??
Am besten lädste dein site.htm Backup drauf und machst es dann nochmal!
|
|
PHP-Quelltext |
1 2 3 |
</script>
</p>
</head>
|
Das </p> in Zeile 28 Rausnehmen!
Dann auf Adminbereich -> Templates -> site -> Editieren und den Code wie beschrieben einfügen.
OK habe etwas gemerkt
:
Das hier ist die absolut orginale site.htm
:Das hier ist die absolut orginale site.htm
|
|
PHP-Quelltext |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
<html>
<head>
$site_metatags
$site_design
<title>$config[site_name] $config[site_title]</title>
<link rel="shortcut icon" href="images/site/phpkit.ico">
<script language="JavaScript">
var tx = new Array ("$config[site_name]", "$config[site_title]",
"$config[site_urls]");
var txcount=3;
var i=1; var wo=0; var ud=1;
function anititle()
{ window.document.title=tx[wo].substr(0, i)+"_";
if (ud==0) i--;
if (ud==1) i++;
if (i==-1) {ud=1;i=0;wo++;wo=wo%txcount;}
if (i==tx[wo].length+10) {ud=0;i=tx[wo].length;}
// if (window.document.title.length < 20 ) window.document.title=window.document.title+"-";
// if (window.document.title.length == 20 ) window.document.title=window.document.title+"]";
// if (window.document.title.length == 21 ) setTimeout("window.document.title='Seitentitel mal anders '; ",1000);
parent.window.document.title=tx[wo].substr(0, i)+"_";
setTimeout("anititle()",100); }
</script>
</head>
<body onLoad="anititle()">
<body>
<table border="0" cellspacing="0" cellpadding="0" height="100%" align="center">
<tr>
<td width="15" background="images/style/gs_templateb121/links.jpg" valign="top" height="100%">
<table cellpadding="0" cellspacing="0" width="15" height="100%">
<tr>
<td width="15" height="250" valign="top"><img src="images/style/gs_templateb121/name.jpg" width="15" height="250" border="0"></td>
</tr>
<tr>
<td width="15" height="100%"> </td>
</tr>
<tr>
<td width="15" height="250" valign="top"><img src="images/style/gs_templateb121/leftend.jpg" width="15" height="250" border="0"></td>
</tr>
</table>
</td>
<td width="970" valign="top" background="images/style/gs_templateb121/background.jpg" height="100%">
<table cellpadding="0" cellspacing="0" width="970" height="100%">
<tr>
<td valign="top" width="970" align="center">
$site_kopf
</td>
</tr>
<tr>
<td valign="top" width="650" align="center" height="100%">
$site_content
</td>
</tr>
<tr>
<td valign="top" width="100%" align="center">
$site_fuss
</td>
</tr>
</table>
</td>
<td width="15" background="images/style/gs_templateb121/rechts.jpg" valign="top" height="100%">
<table cellpadding="0" cellspacing="0" width="15" height="100%">
<tr>
<td width="15" height="250" valign="top"><img src="images/style/gs_templateb121/rechts_top.jpg" width="15" height="250" border="0"></td>
</tr>
<tr>
<td width="15" height="100%"> </td>
</tr>
<tr>
<td width="15" height="250" valign="top"><img src="images/style/gs_templateb121/rechts_footer.jpg" width="15" height="250" border="0"></td>
</tr>
</table>
</td>
</table>
</body>
</html>
|

- 1
- 2




Homepage diftler