Feuerwerk einbauen |
Biggi
Mitglied
Dabei seit: 08.01.07
Beiträge: 3.479
Fähigkeiten: WBB2 Profi Forenversion: 2.3
|
|
Ich hab's jetzt nicht ausprobiert, aber so sollte es funktionieren:
Der Code, der in den Head-Bereich des Dokuments soll, muß ins Template headinclude.
Also dieser hier:
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
|
<SCRIPT LANGUAGE="JavaScript" SRC="feuerwerk.js"></SCRIPT> // Damit wird die Java-Script Datei aufgerufen
<SCRIPT LANGUAGE="JavaScript">
<!--
function StartEffects()
{
JSFX.FireworkDisplay(15);
}
// -->
</SCRIPT> |
|
Diesen Code schreibst du am besten ins Template header direkt vor die erste Zeile:
code: |
1:
|
onLoad="StartEffects()" |
|
Wenn das Feuerwerk nicht auf jeder Seite erscheinen soll, sondern nur auf der Index-Seite, schreibst du es ins Template index hinter <body> und vor $header.
Das Javascript feuerwerk.js und der Ordner fireimages mit den Bildern des Feuerwerks, das du da runterladen sollst, müssen in den Hauptordner des Boards.
__________________
|
|
24.12.07 00:41 |
Finden
Als Freund hinzufügen
|
|
spider30
Mitglied
Dabei seit: 31.03.05
Beiträge: 136
Herkunft: Zöbing Forenversion: 2.3
Themenstarter
|
|
js datei und Ordner sind im Hauptverzeichnis.
funzt aber irgend wie immer noch nicht.
anbei die headerinclude
code: |
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:
|
<div id='waitDiv' style='position:absolute;left:40%;top:50%;visibility:hidden;text-align:center;'>
<table cellpadding='6' border='0'>
<tr>
<td align='center' >
<b>
<font face="Tahoma,Helvetica" size="2">
Loading...
</font>
</b>
<br>
<img src='./images/wait.gif' alt='bitte warten'>
<br>
<b>
<font face="Tahoma,Helvetica" size="1">
Bitte Warten
</font>
</b>
</td>
</tr>
</table>
</div>
<script>
ap_showWaitMessage('waitDiv', 1);
</script>
<body topmargin="0" onLoad="StartEffects()">
<table style="width:{$style['tableoutwidth']}" cellpadding="{$style['tableoutcellpadding']}" cellspacing="{$style['tableoutcellspacing']}" align="center" border="{$style['tableoutborder']}" class="tableoutborder">
<tr>
<td class="mainpage" align="center">
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
<!-- Infobar v.2.0 für Gäste www.beziehungs-kiste.net -->
<if($infobar_status==1 && $infobar!="")><then><if(!$wbbuserdata['userid'])><then><div id="infobar" align="center"><a href="register.php">$infobar</a></div>
</then></if></then></if>
<!-- Infobar v.2.0 für Gäste www.beziehungs-kiste.net -->
<tr>
<td class="logobackground" align="center"><if($style['logoimage']!="")><then><a href="index.php{$SID_ARG_1ST}"><img src="{$style['logoimage']}" border="0" alt="$master_board_name" title="$master_board_name" /></a></then></if><br><br></td>
</tr>
<tr>
<td align="center"><img border="0" src="{$style['imagefolder']}/top_left.gif" width="45" height="42"><span class="smallfont"><if($wbbuserdata['userid'])><then><a href="usercp.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_usercp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_USERCP']}" title="{$lang->items['LANG_GLOBAL_USERCP']}" /></a><a href="pms.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/$pmbild" border="0" alt="{$lang->items['LANG_GLOBAL_PMS']}" title="{$lang->items['LANG_GLOBAL_PMS']}" /></a></then><else><a href="register.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_register.gif" border="0" alt="{$lang->items['LANG_GLOBAL_REGISTER']}" title="{$lang->items['LANG_GLOBAL_REGISTER']}" /></a></else></if><a href="calendar.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_calendar.gif" border="0" alt="{$lang->items['LANG_GLOBAL_CALENDAR']}" title="{$lang->items['LANG_GLOBAL_CALENDAR']}" /></a><a href="memberslist.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_members.gif" border="0" alt="{$lang->items['LANG_GLOBAL_MEMBERSLIST']}" title="{$lang->items['LANG_GLOBAL_MEMBERSLIST']}" /></a><a href="team.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_team.gif" border="0" alt="{$lang->items['LANG_GLOBAL_TEAM']}" title="{$lang->items['LANG_GLOBAL_TEAM']}" /></a><a href="search.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_search.gif" border="0" alt="{$lang->items['LANG_GLOBAL_SEARCH']}" title="{$lang->items['LANG_GLOBAL_SEARCH']}" /></a><a href="misc.php?action=faq{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/top_faq.gif" border="0" alt="{$lang->items['LANG_GLOBAL_FAQ']}" title="{$lang->items['LANG_GLOBAL_FAQ']}" /></a><if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==1)><then><a href="acp/index.php" target="_blank"><img src="{$style['imagefolder']}/top_acp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_ACP']}" title="{$lang->items['LANG_GLOBAL_ACP']}" /></a></then></if><if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==0)><then><a href="acp/index.php" target="_blank"><img src="{$style['imagefolder']}/top_modcp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_MODCP']}" title="{$lang->items['LANG_GLOBAL_MODCP']}" /></a></then></if><a href="index.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_start.gif" border="0" alt="{$lang->items['LANG_GLOBAL_TOINDEX']}" title="{$lang->items['LANG_GLOBAL_TOINDEX']}" /></a><if($wbbuserdata['can_guthaben_shop'])><then><a href="lottozahlen.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_lottozahlen.gif" border="0" alt="{$lang->items['LANG_GLOBAL_GUT_LOTTO']}" title="{$lang->items['LANG_GLOBAL_GUT_LOTTO']}" /></a></then></if><if($wbbuserdata['userid'])><then><a href="guthaben.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_guthaben.gif" border="0" alt="{$lang->items['LANG_GLOBAL_GUT_GUT']}" title="{$lang->items['LANG_GLOBAL_GUT_GUT']}" /></a></then></if><if($wbbuserdata['can_guthaben_werben'])><then><a href="empfehlen.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_empfehlen.gif" border="0" alt="{$lang->items['LANG_GLOBAL_GUT_WERBEN']}" title="{$lang->items['LANG_GLOBAL_GUT_WERBEN']}" /></a></then></if><if($wbbuserdata['can_kicktipp_play'] == 1) || ($wbbuserdata['can_kicktipp_admin'] == 1) || ($wbbuserdata['a_can_kicktipp_edit'] == 1)><then><a href="kt_main.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_kicktipp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_KICKTIPP']}" title="{$lang->items['LANG_GLOBAL_KICKTIPP']}" /></a></then></if><a href="game_menue.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_game.gif" border="0" alt="Game Menü" title="Game Menü" /></a><a href="map.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_usermap.gif" border="0" alt="{$lang->item['LANG_GLOBAL_USER_MAP']}" title="Zur User-Map" /></a></span><img border="0" src="{$style['imagefolder']}/top_right.gif" width="45" height="42"></td>
</tr>
</table><br /> |
|
sowie die header.tpl
code: |
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:
|
<div id='waitDiv' style='position:absolute;left:40%;top:50%;visibility:hidden;text-align:center;'>
<table cellpadding='6' border='0'>
<tr>
<td align='center' >
<b>
<font face="Tahoma,Helvetica" size="2">
Loading...
</font>
</b>
<br>
<img src='./images/wait.gif' alt='bitte warten'>
<br>
<b>
<font face="Tahoma,Helvetica" size="1">
Bitte Warten
</font>
</b>
</td>
</tr>
</table>
</div>
<script>
ap_showWaitMessage('waitDiv', 1);
</script>
<body topmargin="0" onLoad="StartEffects()">
<table style="width:{$style['tableoutwidth']}" cellpadding="{$style['tableoutcellpadding']}" cellspacing="{$style['tableoutcellspacing']}" align="center" border="{$style['tableoutborder']}" class="tableoutborder">
<tr>
<td class="mainpage" align="center">
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
<!-- Infobar v.2.0 für Gäste www.beziehungs-kiste.net -->
<if($infobar_status==1 && $infobar!="")><then><if(!$wbbuserdata['userid'])><then><div id="infobar" align="center"><a href="register.php">$infobar</a></div>
</then></if></then></if>
<!-- Infobar v.2.0 für Gäste www.beziehungs-kiste.net -->
<tr>
<td class="logobackground" align="center"><if($style['logoimage']!="")><then><a href="index.php{$SID_ARG_1ST}"><img src="{$style['logoimage']}" border="0" alt="$master_board_name" title="$master_board_name" /></a></then></if><br><br></td>
</tr>
<tr>
<td align="center"><img border="0" src="{$style['imagefolder']}/top_left.gif" width="45" height="42"><span class="smallfont"><if($wbbuserdata['userid'])><then><a href="usercp.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_usercp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_USERCP']}" title="{$lang->items['LANG_GLOBAL_USERCP']}" /></a><a href="pms.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/$pmbild" border="0" alt="{$lang->items['LANG_GLOBAL_PMS']}" title="{$lang->items['LANG_GLOBAL_PMS']}" /></a></then><else><a href="register.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_register.gif" border="0" alt="{$lang->items['LANG_GLOBAL_REGISTER']}" title="{$lang->items['LANG_GLOBAL_REGISTER']}" /></a></else></if><a href="calendar.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_calendar.gif" border="0" alt="{$lang->items['LANG_GLOBAL_CALENDAR']}" title="{$lang->items['LANG_GLOBAL_CALENDAR']}" /></a><a href="memberslist.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_members.gif" border="0" alt="{$lang->items['LANG_GLOBAL_MEMBERSLIST']}" title="{$lang->items['LANG_GLOBAL_MEMBERSLIST']}" /></a><a href="team.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_team.gif" border="0" alt="{$lang->items['LANG_GLOBAL_TEAM']}" title="{$lang->items['LANG_GLOBAL_TEAM']}" /></a><a href="search.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_search.gif" border="0" alt="{$lang->items['LANG_GLOBAL_SEARCH']}" title="{$lang->items['LANG_GLOBAL_SEARCH']}" /></a><a href="misc.php?action=faq{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/top_faq.gif" border="0" alt="{$lang->items['LANG_GLOBAL_FAQ']}" title="{$lang->items['LANG_GLOBAL_FAQ']}" /></a><if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==1)><then><a href="acp/index.php" target="_blank"><img src="{$style['imagefolder']}/top_acp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_ACP']}" title="{$lang->items['LANG_GLOBAL_ACP']}" /></a></then></if><if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==0)><then><a href="acp/index.php" target="_blank"><img src="{$style['imagefolder']}/top_modcp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_MODCP']}" title="{$lang->items['LANG_GLOBAL_MODCP']}" /></a></then></if><a href="index.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_start.gif" border="0" alt="{$lang->items['LANG_GLOBAL_TOINDEX']}" title="{$lang->items['LANG_GLOBAL_TOINDEX']}" /></a><if($wbbuserdata['can_guthaben_shop'])><then><a href="lottozahlen.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_lottozahlen.gif" border="0" alt="{$lang->items['LANG_GLOBAL_GUT_LOTTO']}" title="{$lang->items['LANG_GLOBAL_GUT_LOTTO']}" /></a></then></if><if($wbbuserdata['userid'])><then><a href="guthaben.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_guthaben.gif" border="0" alt="{$lang->items['LANG_GLOBAL_GUT_GUT']}" title="{$lang->items['LANG_GLOBAL_GUT_GUT']}" /></a></then></if><if($wbbuserdata['can_guthaben_werben'])><then><a href="empfehlen.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_empfehlen.gif" border="0" alt="{$lang->items['LANG_GLOBAL_GUT_WERBEN']}" title="{$lang->items['LANG_GLOBAL_GUT_WERBEN']}" /></a></then></if><if($wbbuserdata['can_kicktipp_play'] == 1) || ($wbbuserdata['can_kicktipp_admin'] == 1) || ($wbbuserdata['a_can_kicktipp_edit'] == 1)><then><a href="kt_main.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_kicktipp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_KICKTIPP']}" title="{$lang->items['LANG_GLOBAL_KICKTIPP']}" /></a></then></if><a href="game_menue.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_game.gif" border="0" alt="Game Menü" title="Game Menü" /></a><a href="map.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_usermap.gif" border="0" alt="{$lang->item['LANG_GLOBAL_USER_MAP']}" title="Zur User-Map" /></a></span><img border="0" src="{$style['imagefolder']}/top_right.gif" width="45" height="42"></td>
</tr>
</table><br /> |
|
__________________ Besuche uns doch mal unter www.zoebinger.com/forum
|
|
24.12.07 11:42 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
Biggi
Mitglied
Dabei seit: 08.01.07
Beiträge: 3.479
Fähigkeiten: WBB2 Profi Forenversion: 2.3
|
|
Du hast zweimal das gleiche Template gepostet.
Hm, jetzt bin ich mir gerade nicht sicher...
Ins Template header gehört jedenfalls kein <body>-Tag.
Ich weiß jetzt aber gerade nicht, ob onLoad="StartEffects()" in das <body>-Tag oder innerhalb des Bodys gehört, also zwischen <body> und </body>.
Probier mal aus, es einfach lose, ohne <body>-Tag, ins Template header zu schreiben oder es im Template index in den <body>-Tag reizuschreiben, wie du es jetzt beim header gemacht hattest.
__________________
|
|
24.12.07 14:30 |
Finden
Als Freund hinzufügen
|
|
spider30
Mitglied
Dabei seit: 31.03.05
Beiträge: 136
Herkunft: Zöbing Forenversion: 2.3
Themenstarter
|
|
also ohne <body wird der Text nur oben angezeigt.
hier die Headerinclude.tpl
code: |
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:
|
<meta http-equiv="Content-Type" content="text/html; charset={$lang->items['LANG_GLOBAL_ENCODING']}" />
<link rel="index" href="index.php{$SID_ARG_1ST}" />
<link rel="help" href="misc.php?action=faq{$SID_ARG_2ND}" />
<link rel="search" href="search.php{$SID_ARG_1ST}" />
<link rel="up" href="javascript:self.scrollTo(0,0);" />
<link rel="copyright" href="http://www.woltlab.de" />
$metatags
$css
<if($wbbuserdata['userid'] == "0")><then>
<script type='text/javascript'>
<!--
document.onselectstart=new Function("return false;");
//-->
</script>
</then></if>$metatags
<script>
var DHTML = (document.getElementById || document.all || document.layers);
function ap_getObj(name)
{
if (document.getElementById)
{
return document.getElementById(name).style;
}
else if (document.all)
{
return document.all[name].style;
}
else if (document.layers)
{
return document.layers[name];
}
}
function ap_showWaitMessage(div,flag)
{
if (!DHTML) return;
var x = ap_getObj(div);
x.visibility = (flag) ? 'visible':'hidden'
if(! document.getElementById)
if(document.layers)
x.left=280/2;
return true;
}
<SCRIPT LANGUAGE="JavaScript" SRC="feuerwerk.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
function StartEffects()
{
JSFX.FireworkDisplay(15);
}
// -->
</SCRIPT>
</script>
<script type="text/javascript">
function doIt(bbform)
{
window.open("sm.php", "smiliemaker", "toolbar=no,scrollbars=yes,resizable=no,width=410,height=360");}
</script>
|
|
__________________ Besuche uns doch mal unter www.zoebinger.com/forum
|
|
25.12.07 12:08 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
Biggi
Mitglied
Dabei seit: 08.01.07
Beiträge: 3.479
Fähigkeiten: WBB2 Profi Forenversion: 2.3
|
|
Du hast den Aufruf für das Feuerwerk-Script innerhalb der Script-Tags eines anderen Scripts notiert.
Hier mal Zeile 16 - 52, wie sie richtig sein sollten:
code: |
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:
|
<script>
var DHTML = (document.getElementById || document.all || document.layers);
function ap_getObj(name)
{
if (document.getElementById)
{
return document.getElementById(name).style;
}
else if (document.all)
{
return document.all[name].style;
}
else if (document.layers)
{
return document.layers[name];
}
}
function ap_showWaitMessage(div,flag)
{
if (!DHTML) return;
var x = ap_getObj(div);
x.visibility = (flag) ? 'visible':'hidden'
if(! document.getElementById)
if(document.layers)
x.left=280/2;
return true;
}
</script>
<SCRIPT LANGUAGE="JavaScript" SRC="feuerwerk.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
function StartEffects()
{
JSFX.FireworkDisplay(15);
}
// -->
</SCRIPT> |
|
__________________
|
|
25.12.07 12:38 |
Finden
Als Freund hinzufügen
|
|
|