Was ist falsch ???
Florian Liebscher
- javascript
HI all
ich bin ein ziehmlicher noob was ist hieran falsch ??? wenn dei UHr geht, geht mein Menü (mit den Mouseovereffekten) nicht ...
<HTML>
<HEAD>
<TITLE>Lohnde02</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<style type="text/css">#divMessage {position:relative; visibility:visible;}</style>
<script language="JavaScript" type="text/javascript">
function lib_bwcheck(){ //Browsercheck (needed)
this.ver=navigator.appVersion
this.agent=navigator.userAgent
this.dom=document.getElementById?1:0
this.opera5=(navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?1:0
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
this.ie=this.ie4||this.ie5||this.ie6
this.mac=this.agent.indexOf("Mac")>-1
this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
return this
}
var bw=lib_bwcheck()
if(document.layers){ //NS4 resize fix...
scrX= innerWidth; scrY= innerHeight;
onresize= function(){if(scrX!= innerWidth || scrY!= innerHeight){history.go(0)} }
}
/****
Variables to set
****/
msgFont= "arial,helvetiva" // The font for the message
msgFontSize= 13 // Set the fontSize in px
msgFontColor="#000000" // Set the fontColor
msgWidth= "300" // Set the width of the messageblock here for netscape 4
//Set the text you want to display on mouseover here.
messages=new Array()
messages[0]="Wählen" //This is the default text that appears when you mouse out.
messages[1]="Home"
messages[2]="Geschichte"
messages[3]="Fotos"
messages[4]="Members"
messages[5]="News"
messages[6]="Termine"
messages[7]="Gästebuch"
messages[8]="Tabelle"
/********************************************************************************
You don't have to change anything below this
********************************************************************************/
//ChangeText object constructor.
function makeChangeTextObj(obj){
this.css = bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?document.layers[obj]:0;
// this.css = bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:document.layers[obj];
this.writeref = bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj].document:0;
this.writeIt = b_writeIt;
}
function b_writeIt(text,num){
if (bw.ns4){
this.writeref.write(text)
this.writeref.close()
}
else this.writeref.innerHTML = messages[num]
}
//The mouoseover function. Calls the writeIt method to write the text to the div.
function changeText(num){
if(bw.bw) oMessage.writeIt('<table width="'+msgWidth+'" border="0" cellpadding="0" cellspacing="0"><tr><td><span style="font-size:'+msgFontSize+'px; font-family:'+msgFont+'; color:'+msgFontColor+'">'+messages[num]+'</span></td></tr></table>', num)
}
//The init function. Calls the object constructor and initiates some properties.
function changeTextInit(){
//Fixing the browsercheck for opera... this can be removed if the browsercheck has been updated!!
bw.opera5 = (navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?true:false
if (bw.opera5) bw.ns6 = 0
oMessage = new makeChangeTextObj('divMessage')
// oLinks = new makeChangeTextObj('divLinks')
//Setting the style properties of the text layer.
if(bw.dom || bw.ie4){
with(oMessage.writeref.style){fontFamily=msgFont; fontSize=msgFontSize+"px"; color=msgFontColor}
}
//Both layers are hidden by default to prevent users from mousing over them and creating errors while the page loads.
oMessage.css.visibility= "visible"
//oLinks.css.visibility= "visible"
}
//If the browser is ok, the init function is called on pageload.
if (bw.bw) onload = changeTextInit
</script>
</HEAD>
<BODY onLoad="show5()" BGCOLOR=#FFFFFF>
<span id="liveclock" style="position:absolute;right:108;top:118;"> </span>
<script language="JavaScript">
<!--
function show5(){
if (!document.layers&&!document.all)
return
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()
var dn=""
if (hours>12){
dn=""
hours=hours-0
}
if (hours==0)
hours=24
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here to your desire
myclock="<font size='2' face='Arial' ></font></br>"+hours+":"+minutes+":"
+seconds+" "+dn+"</b></font>"
if (document.layers){
document.layers.liveclock.document.write(myclock)
document.layers.liveclock.document.close()
}
else if (document.all)
liveclock.innerHTML=myclock
setTimeout("show5()",1000)
}
//-->
</script>
<TABLE WIDTH=800 BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
<TR>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=1 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=4 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=23 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=6 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=24 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=2 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=18 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=6 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=4 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=24 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=32 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=4 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=13 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=13 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=4 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=29 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=4 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=24 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=6 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=1 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=1 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=428 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=129 HEIGHT=1></TD>
<TD></TD>
</TR>
<TR>
<TD COLSPAN=23>
<IMG SRC="images/Lohnde02_01.jpg" WIDTH=800 HEIGHT=98></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=1 HEIGHT=98></TD>
</TR>
<TR>
<TD COLSPAN=22>
<IMG SRC="images/Lohnde02_02.jpg" WIDTH=671 HEIGHT=14></TD>
<TD>
<IMG SRC="images/Uhr.jpg" WIDTH=129 HEIGHT=14></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=1 HEIGHT=14></TD>
</TR>
<TR>
<TD COLSPAN=20 ROWSPAN=2>
<IMG SRC="images/Tabelle.jpg" WIDTH=242 HEIGHT=39></TD>
<TD COLSPAN=3>
<IMG SRC="images/NavBar.jpg" WIDTH=558 HEIGHT=30></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=1 HEIGHT=30></TD>
</TR>
<TR>
<TD COLSPAN=3 ROWSPAN=9>
<IMG SRC="images/Main.jpg" WIDTH=558 HEIGHT=86></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=1 HEIGHT=9></TD>
</TR>
<TR>
<TD COLSPAN=9>
<IMG SRC="images/Lohnde02_07.jpg" WIDTH=88 HEIGHT=1></TD>
<TD ROWSPAN=4> <a href="#" onmouseover="changeText(5)" onmouseout="changeText(0)"><IMG SRC="images/Members.jpg" WIDTH=24 HEIGHT=22 border="0"></a></TD>
<TD ROWSPAN=5> <a href="#" onmouseover="changeText(6)" onmouseout="changeText(0)"><IMG SRC="images/News.jpg" WIDTH=32 HEIGHT=24 border="0"></a></TD>
<TD>
<IMG SRC="images/termine.jpg" WIDTH=4 HEIGHT=1></TD>
<TD COLSPAN=2 ROWSPAN=4> <a href="#" onmouseover="changeText(7)" onmouseout="changeText(0)"><IMG SRC="images/Lohnde02_11.jpg" WIDTH=26 HEIGHT=22 border="0"></a></TD>
<TD>
<IMG SRC="images/termine-13.jpg" WIDTH=4 HEIGHT=1></TD>
<TD ROWSPAN=2> <a href="#" onmouseover="changeText(8)" onmouseout="changeText(0)"><IMG SRC="images/Lohnde02_13.jpg" WIDTH=29 HEIGHT=20 border="0"></a></TD>
<TD COLSPAN=4>
<IMG SRC="images/termine-15.jpg" WIDTH=35 HEIGHT=1></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=1 HEIGHT=1></TD>
</TR>
<TR>
<TD COLSPAN=2 ROWSPAN=9>
<IMG SRC="images/Lohnde02_15.jpg" WIDTH=5 HEIGHT=342></TD>
<TD ROWSPAN=2> <a href="Lohnde02.html"><IMG SRC="images/Home.jpg" WIDTH=23 HEIGHT=20 border="0" onmouseover="changeText(1)" onmouseout="changeText(0)"></a></TD>
<TD ROWSPAN=9>
<IMG SRC="images/Lohnde02_17.jpg" WIDTH=6 HEIGHT=342></TD>
<TD> <a href="#" onmouseover="changeText(2)" onmouseout="changeText(0)"><IMG SRC="images/Lohnde02_18.jpg" WIDTH=24 HEIGHT=19 border="0"></a></TD>
<TD ROWSPAN=9>
<IMG SRC="images/Lohnde02_19.jpg" WIDTH=2 HEIGHT=342></TD>
<TD COLSPAN=2 ROWSPAN=3> <a href="#" onmouseover="changeText(3)" onmouseout="changeText(0)"><IMG SRC="images/Fotos.jpg" WIDTH=24 HEIGHT=21 border="0"></a></TD>
<TD ROWSPAN=5>
<IMG SRC="images/Lohnde02_21.jpg" WIDTH=4 HEIGHT=47></TD>
<TD ROWSPAN=5>
<IMG SRC="images/Kontakt.jpg" WIDTH=4 HEIGHT=47></TD>
<TD ROWSPAN=9>
<IMG SRC="images/Lohnde02_23.jpg" WIDTH=4 HEIGHT=342></TD>
<TD ROWSPAN=9>
<IMG SRC="images/Lohnde02_24.jpg" WIDTH=4 HEIGHT=342></TD>
<TD> <a href="#" onmouseover="changeText(4)" onmouseout="changeText(0)"><IMG SRC="images/Lohnde02_25.jpg" WIDTH=24 HEIGHT=19 border="0"></a></TD>
<TD COLSPAN=2 ROWSPAN=8>
<IMG SRC="images/Lohnde02_26.jpg" WIDTH=7 HEIGHT=78></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=1 HEIGHT=19></TD>
</TR>
<TR>
<TD ROWSPAN=8 background="images/Lohnde02_27.jpg"> </TD>
<TD ROWSPAN=8>
<IMG SRC="images/Lohnde02_28.jpg" WIDTH=29 HEIGHT=323></TD>
<TD ROWSPAN=8>
<IMG SRC="images/Lohnde02_29.jpg" WIDTH=24 HEIGHT=323></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=1 HEIGHT=1></TD>
</TR>
<TR>
<TD ROWSPAN=7 background="images/Lohnde02_30.jpg"> </TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=1 HEIGHT=1></TD>
</TR>
<TR>
<TD COLSPAN=2 ROWSPAN=2>
<IMG SRC="images/Hover.jpg" WIDTH=24 HEIGHT=26></TD>
<TD ROWSPAN=2>
<IMG SRC="images/Lohnde02_32.jpg" WIDTH=24 HEIGHT=26></TD>
<TD COLSPAN=2 ROWSPAN=2>
<IMG SRC="images/Lohnde02_33.jpg" WIDTH=26 HEIGHT=26></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=1 HEIGHT=2></TD>
</TR>
<TR>
<TD>
<IMG SRC="images/Lohnde02_34.jpg" WIDTH=32 HEIGHT=24></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=1 HEIGHT=24></TD>
</TR>
<TR>
<TD ROWSPAN=4 background="images/Lohnde02_35.jpg"> </TD>
<TD COLSPAN=6 align="center" background="images/Lohnde02_36.jpg">
<div id="divMessage">Wählen</div></TD>
<TD ROWSPAN=4>
<IMG SRC="images/Lohnde02_37.jpg" WIDTH=13 HEIGHT=295></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=1 HEIGHT=20></TD>
</TR>
<TR>
<TD COLSPAN=4 ROWSPAN=3>
<IMG SRC="images/Lohnde02_38.jpg" WIDTH=66 HEIGHT=275></TD>
<TD ROWSPAN=3>
<IMG SRC="images/Kontakt-40.jpg" WIDTH=4 HEIGHT=275></TD>
<TD ROWSPAN=3>
<IMG SRC="images/Lohnde02_40.jpg" WIDTH=13 HEIGHT=275></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=1 HEIGHT=9></TD>
</TR>
<TR>
<TD>
<IMG SRC="images/Main-42.jpg" WIDTH=1 HEIGHT=2></TD>
<TD COLSPAN=2 ROWSPAN=5>
<IMG SRC="images/Lohnde02_42.jpg" WIDTH=557 HEIGHT=282></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=1 HEIGHT=2></TD>
</TR>
<TR>
<TD>
<IMG SRC="images/Lohnde02_43.jpg" WIDTH=6 HEIGHT=264></TD>
<TD COLSPAN=2 ROWSPAN=3>
<IMG SRC="images/Lohnde02_44.jpg" WIDTH=2 HEIGHT=279></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=1 HEIGHT=264></TD>
</TR>
<TR>
<TD ROWSPAN=4>
<IMG SRC="images/Lohnde02_45.jpg" WIDTH=1 HEIGHT=106></TD>
<TD COLSPAN=18>
<IMG SRC="images/Strech.jpg" WIDTH=240 HEIGHT=14></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=1 HEIGHT=14></TD>
</TR>
<TR>
<TD COLSPAN=10 ROWSPAN=3>
<IMG SRC="images/Lohnde02_47.jpg" WIDTH=143 HEIGHT=92></TD>
<TD ROWSPAN=3>
<IMG SRC="images/Kontakt-49.jpg" WIDTH=4 HEIGHT=92></TD>
<TD COLSPAN=7 ROWSPAN=3>
<IMG SRC="images/Lohnde02_49.jpg" WIDTH=93 HEIGHT=92></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=1 HEIGHT=1></TD>
</TR>
<TR>
<TD COLSPAN=2 ROWSPAN=2>
<IMG SRC="images/Lohnde02_50.jpg" WIDTH=2 HEIGHT=91></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=1 HEIGHT=1></TD>
</TR>
<TR>
<TD COLSPAN=2>
<IMG SRC="images/Lohnde02_51.jpg" WIDTH=557 HEIGHT=90></TD>
<TD>
<IMG SRC="images/Abstandhalter.gif" WIDTH=1 HEIGHT=90></TD>
</TR>
</TABLE>
<!-- End ImageReady Slices -->
</BODY>
</HTML>
Danke im vorraus
MfG
Florian aus Hannover
Und du erwartest jetzt, dass wir die 2 Posts lesen und dort einen nicht näher definierten Fehler suchen???
Gib mir Geld und ich machs...
Aber so quäle ich mich nicht durch so einen Quelltext...