Hallo zusammen,
wie kann foglende Funktionen im Body über onload verbinden?!
Es scheiter an der Kombination aus beiden. Die erste Funktione würde ich über so aufrufen:
<img border="0" src="Buttons/Aktionen2.JPG" name="Link2" width="58" height="27"
a href="javascript:;" onClick="MM_goToURL('parent.frames['High']','Banner/Aktionen.htm','parent.frames['Body']','Body/Aktionen.htm','parent.frames['Navi']','Menue.htm');return document.MM_returnValue">
Aber wie bei ich den mouseover ein?! Help wanted, please.
<SCRIPT language=JavaScript>
//Disable right click
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
<!--
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
<!-- hide
browserName = navigator.appName; browserVer =
parseInt(navigator.appVersion); browser = "NotOk";
if (browserName == "Netscape" && browserVer >= 3) { browser = "ok"}
if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) {
browser = "ok"}
if (browser == "ok") {
Link1= new Image(); Link1.src = "Buttons/Startseite2.jpg";
Link1on = new Image(); Link1on.src = "Buttons/Startseite.jpg";
Link2= new Image(); Link2.src = "Buttons/Aktionen2.jpg";
Link2on = new Image(); Link2on.src = "Buttons/Aktionen.jpg";
Link3= new Image(); Link3.src = "Buttons/Galerie2.jpg";
Link3on = new Image(); Link3on.src = "Buttons/Galerie.jpg";
Link4= new Image(); Link4.src = "Buttons/Atelier2.jpg";
Link4on = new Image(); Link4on.src = "Buttons/Atelier.jpg";
Link5= new Image(); Link5.src = "Buttons/Wir2.jpg";
Link5on = new Image(); Link5on.src = "Buttons/Wir.jpg";
Link6= new Image(); Link6.src = "Buttons/Referenzen2.jpg";
Link6on = new Image(); Link6on.src = "Buttons/Referenzen.jpg";
Link7= new Image(); Link7.src = "Buttons/Preise2.jpg";
Link7on = new Image(); Link7on.src = "Buttons/Preise.jpg";
Link8= new Image(); Link8.src = "Buttons/Links2.jpg";
Link8on = new Image(); Link8on.src = "Buttons/Links.jpg";
Link9= new Image(); Link9.src = "Buttons/Kontakt2.jpg";
Linkon = new Image(); Link9on.src = "Buttons/Kontakt.jpg";
Link10= new Image(); Link10.src = "Buttons/Impressum2.jpg";
Link10on = new Image(); Link10on.src = "Buttons/Impressum.jpg";
}
function swap(imgName,select)
{ if (browser == "ok") {imgOn = eval(select+ ".src");
document.images[imgName].src = imgOn; }}
// -->
</script>