Hallo Leute
Ich bin kurz vorm verzweifeln !!
Ich bin mir nicht gewohnt mit Layern zu arbeiten. Nur komme ich nun nicht darum herum :(
Ich habe nach langer suche ein geeignetes script gefunden nur bringe ich es nicht korrekt zum laufen.
So schauts aus:
<script LANGUAGE="JavaScript">
<!--
netscape = (document.layers) ? 1:0
goodIE = (document.all) ? 1:0
opera = (document.layers) ? 1:0
mozilla = (document.layers) ? 1:0
if (netscape) {
var x1 = 0;
var y1 = window.innerHeight - 392;
}
if (goodIE) {
x1 = 0;
y1 = document.body.clientHeight- 392;
}
if (opera) {
var x1 = 0;
var y1 = window.innerHeight - 392;
}
if (mozilla) {
var x1 = 0;
var y1 = window.innerHeight - 392;
}
document.write("<div style="position:absolute; top:"+y1+"px; left:"+x1+"px;">");
document.write("<img src="img/girls_gross.jpg" width="177" height="392" alt="Girls" border="0" hspace="0" vspace="0">");
document.write("</div>");
//-->
</script>
Das ergebniss:
NS 4.7 = OK
IE 6.0 = OK
Opera = Hier wird das bild anstelle unten, oben links angezeigt
NS 6.2 = Hier wird das bild anstelle unten, oben links angezeigt
Mozilla= Hier wird das bild anstelle unten, oben links angezeigt
Findet jemand einen Fehler?
Giebt es überhaubt ne möglichkeit (mit JS oder CSS) ein bild unten links einzufügen, so dass es auf den oben genannten Browsern Klapt?
Thanx zum voraus Andreas