Hallo,
also ich habe so einige Problem mit Java. Ich habe auch schon in einem anderem Thema was geschrieben wegen der Schrift die sich bei Mouse Over verändern soll.Habe ich leider noch ncicht hingekriegt.
Aber jetzt zum nächsten Problem. Ich habe einen Java Script in eine Zelle von einer Tabelle eingefügt. Es funktioniert auch, aber die Zelle wird viel höher als sie eigentlich sein müsste und als ich sie eingestellt habe. Auch wenn ich height="0" angebe ist sie noch so groß.
So sieht es aus:
[Blockierte Grafik: http://mitglied.lycos.de/hihamster/tabjava.jpg]
Ich habe im Bild beschrieben welcher Abstand weg soll. Wenn ihr wisst wie es geht dann sagt es mir bitte.
Das ist mein kompletter HTML Code:
Code
<body link="#00FF00" vlink="#00FF00" alink="#00FF00" text="#FFFFFF" bgcolor="#000080">
<table width=550 border=0 cellpadding=0 cellspacing=5 style="border-collapse: collapse" bordercolor="#111111" height="40" bgcolor="#000000">
<tr>
<td align="center" bgcolor="#000080" width="525" height="19" colspan="4">
<SCRIPT language=javascript>
<!--
var delay=20;
var nextm=0;
var msg=new Array
(
'!!!Text!!!',
''
);
function start_ticker()
{
do_ticker(msg[0], 0, 1);
}
function do_ticker(text, pos, dir)
{
var out='<font face="Arial, Helvetica" color=#00ff00>. . : :<font color=#ffffff>[b]<font size=2>'+text.substring(0, pos)+'</font></font>[/b]: : . .</font>';
if(navigator.appName=="Netscape")
with(document.ticker.document)
{
open(); write(out); close();
}
else
ticker.innerHTML=out;
pos+=dir;
if(pos>text.length)
setTimeout('do_ticker("'+text+'",'+pos+','+(-dir)+')', delay*100);
else
{
if(pos<0)
{
if(++nextm>=msg.length)
nextm=0;
text=msg[nextm];
dir=-dir;
}
setTimeout('do_ticker("'+text+'",'+pos+','+dir+')', delay);
}
}
// -->
</SCRIPT>
<BODY bgColor=#000080 onload=start_ticker()>
<CENTER>
<DIV id=ticker></DIV></CENTER>
</BODY></HTML></td>
</a> <bgcolor="#C0C0C0" height="9" width="19" align="center">
</bgcolor="#c0c0c0">
<bgcolor="#C0C0C0" height="9" width="19" align="center">
<tr>
<td align="center" bgcolor="#000080" width="19" height="11">
</td></a> <bgcolor="#C0C0C0" height="9" width="19" align="center">
</bgcolor="#c0c0c0">
<td align="center" bgcolor="#000080" width="165" height="11">
</td></a> <bgcolor="#C0C0C0" height="9" width="19" align="center">
</bgcolor="#c0c0c0">
</font>
<td align="center" bgcolor="#000080" width="213" height="11">
</td></a> <bgcolor="#C0C0C0" height="9" width="19" align="center">
</bgcolor="#c0c0c0">
</font>
</table>
Alles anzeigen
Gruß
Agent.Hamster