Seit gegrüßt,
Ich habe mal wieder ein Problem;
Dieses mal betrifft es eine durch Javascript erzeugte Kreisbewegung von drei Links um ein bestimmtes Bild. Es klappt prima mit dem Internet Explorer, nur Natscape scheint absout nichts damit anfangen zu können obwohl dieses script zusätlich für Netscape programmiert worden ist. Liegt das an der Version 6.0 des Netscape N. oder gibt es einen Tippfelher oder sonstiges?
Hier der Programmcode (Ihr könnt ihn ruhig ausprobieren, indem Ihr ihn einfach kopiert.):
<html><!-- Created by Thomas Häber --><head>
<title>... Transportation Services</title>
<meta name="description" content="... Transportation Services">
<meta name="keywords" content="transport, transportation, airways. airline, service,services, company, infos">
<script language="JavaScript" type="text/javascript">
<!--
var r = 90; // radius
var pi = Math.PI; // pi
var a=-1; // Startwinkel
var breite, hoehe;
var Bildbreite=60, Bildhoehe=60;
function Abfrage()
{
if (navigator.appName=='Netscape' && navigator.appVersion.charAt(0)>='4')
{ breite=screen.width;
hoehe=window.innerHeight;
window.document.logo.left=breite/2-Bildbreite/2;
window.document.logo.top=hoehe/2-Bildhoehe/2;
window.setTimeout ('rotation_nc()', 20);
}
if (navigator.appName=='Microsoft Internet Explorer' && navigator.appVersion.charAt(0)>='4')
{
breite=screen.width;
hoehe=screen.height;
logo.style.left=breite/2-Bildbreite/2;
logo.style.top=hoehe/2-Bildhoehe/2;
window.setTimeout ('rotation_ie()', 20);
}
}
function rotation_nc ()
{
a++;
window.document.neu.left=(r * Math.cos(a*(pi/180))) + breite/2-Bildbreite/2;
window.document.neu.top=(r * Math.sin(a*(pi/180))) + hoehe/2-Bildhoehe/2;
window.document.impressum.left=(r * Math.cos((a+120)*(pi/180))) + breite/2-Bildbreite/2;
window.document.impressum.top=(r * Math.sin((a+120)*(pi/180))) + hoehe/2-Bildhoehe/2;
window.document.feedback.left=(r * Math.cos((a+240)*(pi/180))) + breite/2-Bildbreite/2;
window.document.feedback.top=(r * Math.sin((a+240)*(pi/180))) + hoehe/2-Bildhoehe/2;
window.setTimeout ('rotation_nc()', 75);
}
function rotation_ie ()
{
a++;
neu.style.left=(r * Math.cos(a*(pi/180))) + breite/2-Bildbreite/2;
neu.style.top=(r * Math.sin(a*(pi/180))) + hoehe/2-Bildhoehe/2;
impressum.style.left=(r * Math.cos((a+120)*(pi/180))) + breite/2-Bildbreite/2;
impressum.style.top=(r * Math.sin((a+120)*(pi/180))) + hoehe/2-Bildhoehe/2;
feedback.style.left=(r * Math.cos((a+240)*(pi/180))) + breite/2-Bildbreite/2;
feedback.style.top=(r * Math.sin((a+240)*(pi/180))) + hoehe/2-Bildhoehe/2;
window.setTimeout ('rotation_ie()', 75);
}
//-->
</script>
</head>
<body onload="Abfrage()" bgcolor="#5555FF" text="#000000" link="#FFFF00" vlink="#FFFF00" alink="#FFFF00">
<pre>
</pre>
<div align="center" style="font-size:22px; font-family:Arial, Lucida Sans;">Wellcome to<br><h1>...,</h1>the Transportation Services</div>
<pre>
</pre>
<div id="neu" style="position: absolute; left:-100px; top:-100px; z-index:1;">
<a href="english.html" style="font-family:Arial, Lucida Sans;text-decoration:none;font-weight:600;">English</a>
</div>
<div id="impressum" style="position: absolute; left:-100px; top:-100px; z-index:1;">
<a href="index.html" style="font-family:Arial, Lucida Sans;text-decoration:none;font-weight:600;" onClick="alert('In a few weeks available.');">Ruski Jasyk</a>
</div>
<div id="feedback" style="position: absolute; left:-100px; top:-100px; z-index:1;">
<a href="index.html" style="font-family:Arial, Lucida Sans;text-decoration:none;font-weight:600;" onClick="alert('In a few weeks available.');">Deutsch</a>
</div>
<div id="logo" style="position: absolute; left:-100px; top:-100px; z-index:0;">
<img src="logo.gif" name="Bild" alt="...-Bild">
</div>
<div style="position:absolute; left:582px; right:0px; bottom:0px; z-index:0;">
<table align="right" width="200" height="50" bordercolor="#999999" cellspacing="0" cellpadding="1" border="1">
<tr>
<th colspan="3" align="left" style="font-family:Arial, Lucida Sans;">Select your Language:</th>
</tr>
<tr>
<td><a href="deutsch.html" style="font-family:Arial, Lucida Sans;">Deutsch</a></td>
<td><a href="english.html" style="font-family:Arial, Lucida Sans;">English</a></td>
<td><a href="russisch.html" style="font-family:Arial, Lucida Sans;">Russki</a></td>
</tr>
</table></div>
</body>
</html>