Hallo!
Ich habe in den NW 1.2 vor langer Zeit mit Bastis Hilfe ein Popup für
die Anzeige der Artikel eingebaut, was ich nun im NW 1.42 nicht mehr gebacken krieg.
Im NW 1.2 waren dazu in der showfunc.ink.php diese Codes eingefügt :
Function<SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
<!--
var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no";win=window.open(mypage,myname,settings);
win.focus();}
// -->
</script>
PopUp-Aufruf# Zusatzlink Ende ##### JavaScript PopUp integriert #####
elseif (isset($file_entries['ARTICLE'])) {
$link = '<nobr>'.$NW_TRANSLATION['layout_readonleft'].'<a href="javascript:NewWindow(\'';
$link .= $articleurl;
$link .= '\',\'mypopup\',\'585\',\'500\',\'center\',\'front\');">'.$NW_TRANSLATION['show_more'].'</a>'.$NW_TRANSLATION['layout_readonright'].'</nobr>';
$line = str_replace('[--LINK--]', $link, $line);
}
else {
$line = str_replace('[--LINK--]','',$line);
}
Ich weiß nicht, wo ich das in die "neue" showfunc.inc.php einbauen soll
und ob ich das so übernehmen kann usw. ^^

no idea
Kann mir da jemand auf die Sprünge helfen?
Vielen dank schon mal von BitMan
