• Das Erstellen neuer Accounts wurde ausgesetzt. Bei berechtigtem Interesse bitte Kontaktaufnahme über die üblichen Wege. Beste Grüße der Admin

Mit onmouseover ein neues Fenster öffnen

Gloem

New member
Hi, ich hab leider von JS-Programmierung keine Ahnung. Wollte jetzt aber mit onmouseover versuchen ein neues Fenster öffnen. Hab den Code von einer Seite kopiert und auf meiner eingefügt. Leider tut sich da aber nix. Kann mir da wer weiterhelfen?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>LANPlan</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE="JavaScript">
<!--//
//Tooltips 1.0
//Created by Manuel Huerta <al601402@academ01.mty.itesm.mx>
//
var tooltip_window = null;
function tooltip(mensaje, status)
{
if(document.forma.ett.checked)
{
if(status != 0)
{
if(tooltip != null) tooltip.focus();
else
{
var tooltip = open('', 'Tooltip', 'width='+ (mensaje.length * 8) + ',height=10');
tooltip_window = tooltip;
tooltip.document.open();
tooltip.document.writeln('<html><head><title>Info-Fenster</title></head><body text=black bgcolor=#FFFFE1>');
tooltip.document.writeln('<CENTER><FONT size=3><B>' + mensaje + '</B></FONT></CENTER>');
tooltip.document.writeln('</body></html>');
tooltip.document.close();
}
}
else
{
if(tooltip_window != null) tooltip_window.close();
}
}
}

//-->
</SCRIPT>
</head>



<body bgcolor="#FFFFFF" background="background.jpg">
<center>
<H1 align="center"><font face="Courier New, Courier, mono"><u>LANPlan</u></font></H1>
<H3 align="center"><font face="Courier New, Courier, mono">Für weiter Infos bitte auf den entsprechenden Punkt klicken</font></H3>
<img src="lan.jpg" width="957" height="697" border="0" align="absmiddle" usemap="#Map">
<map name="Map">
<area shape="circle" coords="430,358,8" onMouseover="tooltip('Ändern Sie den Text für Ihre Seiten ab!', 1)" onMouseout="tooltip('', 0)" href="Der%20Teufelsbrunnen.htm">
<area shape="circle" coords="508,441,8" href="Die%20Jungfrau%20von%20der%20Lauenburg.htm">
</map>
</center>
</body>
</html>
 
Ok, soweit bin ich schonmal:

Aber ich möchte jetzt gerne einen Hintergrund einbinden und ich möchte gerne die Schriftart auf Comic Sans MS umstellen. Sobald ich irgendetwas darauf änder, geht das Fenster nict mehr auf. Warum?

Und noch eine wahrscheinlich etwas leichtere Frage: Was mach ich mit den beiden Parametern falsch? Wie werden die übergeben und wie mach ich eine neue Zeile?




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>LANPlan</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script
language="JavaScript">
<!--

function fenster(lan,ort){

self.name = "beschreibung";

info = window.open ('', 'fenster','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,WIDTH=300,HEIGHT=40')
/*diese lange Anweisung muss in einer Zeile stehen*/


if(info != null){

if(info.opener == null){

info.opener = self;

}

}
info.document.clear()

info.document.open()
info.document.write("<HTML><HEAD><TITLE>LANParty</TITLE>");
info.document.write("<BODY BGCOLOR=#3399cc TEXT=#ffffff >")
info.document.write("<CENTER><FONT FACE=ARIAL SIZE=4>")
info.document.write('Name: ' +lan);
info.document.write('PLZ/Ort: ' +ort);
info.document.write("</BODY></HTML>")
info.document.close()
return true;
}

function fensterzu(){
info.close()
return true;
}


//-->
</script>

</head>



<body background="background.jpg">
<center>
<H1 align="center"><font face="Comic Sans MS"><u>LANPlan</u></font></H1>
<H3 align="center"><font face="Comic Sans MS">Für weiter Infos bitte auf den entsprechenden
Punkt klicken</font></H3>
<H3 align="center"><font face="Comic Sans MS">(sollten wir in einem Ort auf
mehreren LANs zu Gast gewesen sein, so wird immer zur letzten weitergeleitet)</font></H3>
<img src="lan.jpg" width="957" height="697" border="0" align="absmiddle" usemap="#Map">
<map name="Map">
<area shape="circle" coords="430,358,8" href="lans.htm#lana6">
<area shape="circle" coords="508,441,8" href="lans.htm#evil" onmouseover="fenster('Evil-LAN','Rahden')", onmouseout="fensterzu()">>
<area shape="rect" coords="374,95,389,110" href="lans.htm#nfrag">
<area shape="rect" coords="459,108,468,119" href="lans.htm#north">
<area shape="circle" coords="565,122,6" href="lans.htm#frag">
<area shape="circle" coords="692,190,8" href="lans.htm#lanas8">
<area shape="rect" coords="707,203,720,215" href="lans.htm#lanas4">
<area shape="rect" coords="313,239,326,253" href="lans.htm#tnt">
<area shape="circle" coords="316,342,6" href="lans.htm#def">
<area shape="rect" coords="875,486,893,500" href="lans.htm#act">
<area shape="circle" coords="418,545,5" href="lans.htm#king2">
<area shape="rect" coords="312,542,322,551" href="lans.htm#xtrema">
<area shape="circle" coords="309,475,5" href="lans.htm#ttl">
<area shape="rect" coords="181,658,192,669" href="lans.htm#xolon">
<area shape="rect" coords="116,505,131,518" href="lans.htm#lant">
<area shape="rect" coords="34,540,48,554" href="lans.htm#lana8">
<area shape="circle" coords="144,603,5" href="lans.htm#northwood">
<area shape="circle" coords="180,467,7" href="lans.htm#boh">
</map>
</center>
</body>
</html>
 
Zurück
Oben