22.04.2010, 19:07
Ich würde gerne einstellen, daß wenn jemand auf das Symbol "Chat" (Ajax-Chat) oder "Game Section" klickt, daß sich bei jedem ein neues Fenster im Browser öffnet, also der Blick aufs Forum bleibt. Wie geht so etwas???
target="_blank"
<a href="index.html" target="_blank">Index</a>
<script type="text/javascript">
// <![CDATA[
function openWindow(url,width,height,options,name) {
width = width ? width : 800;
height = height ? height : 600;
options = options ? options : 'resizable=yes';
name = name ? name : 'openWindow';
window.open(
url,
name,
'screenX='+(screen.width-width)/2+',screenY='+(screen.height-height)/2+',width='+width+',height='+height+','+options
)
}
// ]]>
</script>
<li><a href="{$mybb->settings['bburl']}/chat/"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" />Chat</a></li>
<li><a href="{$mybb->settings['bburl']}/chat/" onclick="openWindow(this.href);this.blur();return false;"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" />Chat</a></li>
<ul> <scripttype="text/javascript">//<![CDATA[functionopenWindow(url,width,height,options,name){width=width?width:800;height=height?height:600;options=options?options:'resizable=yes';name=name?name:'openWindow';window.open(url,name,'screenX='+(screen.width-width)/2+',screenY='+(screen.height-height)/2+',width='+width+',height='+height+','+options)}//]]></script> <li><a href="{$mybb->settings['bburl']}/chat/"onclick="openWindow(this.href);this.blur();returnfalse;"><imgsrc="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif"alt=""/>Chat</a></li> <li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li> <li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li> <li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$lang->toplinks_calendar}</a></li> <li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>
(24.04.2010, 08:47)Paccy schrieb: [ -> ]Muß ich den Code aus Beitrag 5 in eine bestimmte Zeile kopieren?
<div id="container"> <a name="top" id="top"></a> <div id="header"> <div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div> <div class="menu"> <ul> <li><a href="{$mybb->settings['bburl']}/chat/"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" />Chat</a></li> <li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li> <li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li> <li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$lang->toplinks_calendar}</a></li> <li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li> <li class="impressum_link"><a href="{$mybb->settings['bburl']}/misc.php?action=impressum"><img src="{$theme['imgdir']}/toplinks/impressum.gif" border="0" alt="" />Impressum</a></li> </ul> </div> <hr class="hidden" /> <div id="panel"> {$welcomeblock} </div> </div> <hr class="hidden" /> <br class="clear" /> <div id="content"> {$pm_notice} {$bannedwarning} {$bbclosedwarning} {$unreadreports} <navigation> <br />