Diese Code was ich schicke ist ein Template meines Forums. Ich möchte ein Zufallsbanner einbauen, aber weiss nicht wo ich diese Script einfüge?
Da diese Code sehrrr lang ist, werde ich das in spoiler setzen.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}"> <head> <!-- INCLUDE ca_config.html --> <meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" /> <meta http-equiv="content-language" content="{S_USER_LANG}" /> <meta http-equiv="content-style-type" content="text/css" /> <meta http-equiv="imagetoolbar" content="no" /> <meta name="resource-type" content="document" /> <meta name="distribution" content="global" /> <meta name="copyright" content="2000, 2002, 2005, 2007 phpBB Group" /> <meta name="keywords" content="" /> <meta name="description" content="" /> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> {META} <title>{SITENAME} • <!-- IF S_IN_MCP -->{L_MCP} • <!-- ELSEIF S_IN_UCP -->{L_UCP} • <!-- ENDIF -->{PAGE_TITLE}</title> <!-- IF T_STYLESHEET_LINK --> <link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" /> <!-- ELSE --> <style type="text/css"> {T_THEME_DATA} </style> <!-- ENDIF --> <!--[if IE 7]> <link rel="stylesheet" type="text/css" href="{T_THEME_PATH}/ie7.css" /> <![endif]--> <script type="text/javascript"> // <![CDATA[ <!-- IF S_USER_PM_POPUP --> if ({S_NEW_PM}) { popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg'); } <!-- ENDIF --> function popup(url, width, height, name) { if (!name) { name = '_popup'; } window.open(url.replace(/&/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width); return false; } function jumpto() { var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}'); var per_page = '{PER_PAGE}'; var base_url = '{A_BASE_URL}'; if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0) { if (base_url.indexOf('?') == -1) { document.location.href = base_url + '?start=' + ((page - 1) * per_page); } else { document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page); } } } /** * Find a member */ function find_username(url) { popup(url, 760, 570, '_usersearch'); return false; } /** * Mark/unmark checklist * id = ID of parent container, name = name prefix, state = state [true/false] */ function marklist(id, name, state) { var parent = document.getElementById(id); if (!parent) { eval('parent = document.' + id); } if (!parent) { return; } var rb = parent.getElementsByTagName('input'); for (var r = 0; r < rb.length; r++) { if (rb[r].name.substr(0, name.length) == name) { rb[r].checked = state; } } } <!-- IF ._file --> /** * Play quicktime file by determining it's width/height * from the displayed rectangle area * * Only defined if there is a file block present. */ function play_qt_file(obj) { var rectangle = obj.GetRectangle(); if (rectangle) { rectangle = rectangle.split(',') var x1 = parseInt(rectangle[0]); var x2 = parseInt(rectangle[2]); var y1 = parseInt(rectangle[1]); var y2 = parseInt(rectangle[3]); var width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1; var height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1; } else { var width = 200; var height = 0; } obj.width = width; obj.height = height + 16; obj.SetControllerVisible(true); obj.Play(); } <!-- ENDIF --> if(navigator.userAgent && navigator.userAgent.indexOf('Mac OS X') > 0) { document.write('<link rel="stylesheet" href="{T_THEME_PATH}/mac.css" type="text/css" />'); } // ]]> </script> </head> <body class="{S_CONTENT_DIRECTION}"> <div id="wrapper"> <a name="top"></a> <table border="0" cellspacing="0" cellpadding="0" width="{$CA_WIDTH}" id="maintable" align="center"> <tr> <td id="logorow" align="center"> <a href="{U_INDEX}">{SITE_LOGO_IMG}</a> </td> </tr> <tr> <td class="navtd"> <div class="navrow"> <div class="navrow-right"> <!-- MULTIMOD Added Links --> <!-- IF S_CALENDAR--><a href="{U_CALENDAR}">{L_CALENDAR}</a> • <!-- ENDIF --> <!-- IF S_USER_MAP --><a href="{U_USER_MAP}">{L_USER_MAP}</a> • <!-- ENDIF --> <a href="{U_FAQ}">{L_FAQ}</a> <!-- IF U_RESTORE_PERMISSIONS --> • <a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a><!-- ENDIF --> <!-- IF S_DISPLAY_SEARCH --> • <a href="{U_SEARCH}">{L_SEARCH}</a><!-- ENDIF --> <!-- IF not S_IS_BOT --> <!-- IF S_DISPLAY_MEMBERLIST --> • <a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a><!-- ENDIF --> <!-- ENDIF --> <!-- IF not S_IS_BOT --> • <a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- ENDIF --> </div> <!-- IF not S_IS_BOT --> <!-- IF S_USER_LOGGED_IN --><a href="{U_PROFILE}">{L_PROFILE}</a><!-- ENDIF --> <!-- IF S_USER_LOGGED_IN --> <!-- IF S_DISPLAY_PM --> • <a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a><!-- ENDIF --> <!-- ELSEIF S_REGISTER_ENABLED --><a href="{U_REGISTER}">{L_REGISTER}</a><!-- ENDIF --> <!-- ENDIF --> </div> </td> </tr> <tr> <td id="contentrow"> <!-- IF not S_IS_BOT && not $CA_SKIP_PM_NOTIFY && S_USER_LOGGED_IN && S_DISPLAY_PM --> <!-- IF S_USER_NEW_PRIVMSG --> <div class="pm-notify-new"><div class="pm-notify-header">{L_PRIVATE_MESSAGES}</div><a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a></div> <!-- ELSEIF S_USER_UNREAD_PRIVMSG --> <div class="pm-notify-unread"><div class="pm-notify-header">{L_PRIVATE_MESSAGES}</div><a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a></div> <!-- ENDIF --> <!-- ENDIF --> <table width="100%" cellspacing="0"> <tr> <td class="gensmall"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ENDIF --></td> <td class="gensmall" align="{S_CONTENT_FLOW_END}">{CURRENT_TIME}<br /></td> </tr> </table> <!-- IF S_DISPLAY_SEARCH --> <p class="searchbar"> <span style="float: {S_CONTENT_FLOW_BEGIN};"><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a> | <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></span> <!-- IF S_USER_LOGGED_IN --> <span style="float: {S_CONTENT_FLOW_END};"><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> <!-- IF S_INC_UNREAD_LINK --><!-- IF S_EXISTS_UNREADS --> | <a href="{U_SEARCH_UNREAD}">{L_VIEW_UNREADS}</a><!-- ELSE --> | <a href="{U_SEARCH_UNREAD}">{L_NO_UNREADS}</a><!-- ENDIF --><!-- ENDIF --> | <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></span> <!-- **MULTIMOD start mod view or mark unread posts (and end mod too) ... added unread references in the preceding line --> <!-- ENDIF --> </p> <!-- ENDIF --> <br style="clear: both;" /> <!-- INCLUDE breadcrumbs.html --> <br />
In diese Template muss ich diese Script einfügen, aber weiss nicht wo..die Support meinte ich soll in den Zufallsbanner hinter {SITE_LOGO_IMG} einfügen, aber wo?
Formatier den Quelltext doch vorher bitte, sodass nicht alles in einem Block steht.
Ich glaub kaum, dass sich jemand die Mühe macht, den Quelltext da zu "entschlüsseln"
Außerdem kannst du den Quelltext auch in den [ CODE ] [ / CODE ] Tag packen, dann gibts auch Syntaxhighlighting und somit bessere Lesbarkeit
@fireball
das hab ich auch anfang gemacht, also ein Vorschau was ich poste, da hab ich gesehen das man nur lesen muss und das es lang ist. ich hab einfach so gemacht man nicht braucht um zu suchen.
@crac
das weiss ich, was du markiert hast ist ein andere Bild. ich meinte, aber wo ich diesen Script einfügen muss, wenn ich ne Zufallsbanner habe.
If you were enjoying this post and if you keen on reading more interesting stuff then do not hesitate to complete the free sign up.
After the free registration you will gain access to all areas and you will be able to communicate with other artists from all over the world.
In addition you will benefit from our Photoshop and coding section as well as from our huge (hundreds of gigabytes) free resource section where you can find everything you will need to be a successful (web) designer/artist.
Sign up now and enjoy the advantages as a registered member.
(This website will be ad-free after a complete free sign up.)