hi
ich hab folgendes problem. Ich habe ein js eingebaut um ein random image zu bekommen. dieses bild ist in einer tabelle. leider rückt sich das random image im IE um 2 - 3 pixel nach oben, sodass das design nicht mehr stimmig ist.
weiss einer woran das liegen kann?
seite: http://www.tomcoffee.de/upser
code:
<SCRIPT LANGUAGE="Javascript"><!--
function image() { };
image = new image();
number = 0;
// imageArray
image[number++] = "<img src='themes/upser/ico/1.JPG' width='117' height='71' border='0'>"
image[number++] = "<img src='themes/upser/ico/2.JPG' width='117' height='71' border='0'>"
image[number++] = "<img src='themes/upser/ico/3.JPG' width='117' height='71' border='0'>"
image[number++] = "<img src='themes/upser/ico/4.JPG' width='117' height='71' border='0'>"
image[number++] = "<img src='themes/upser/ico/5.JPG' width='117' height='71' border='0'>"
image[number++] = "<img src='themes/upser/ico/6.JPG' width='117' height='71' border='0'>"
image[number++] = "<img src='themes/upser/ico/7.JPG' width='117' height='71' border='0'>"
image[number++] = "<img src='themes/upser/ico/8.JPG' width='117' height='71' border='0'>"
image[number++] = "<img src='themes/upser/ico/9.JPG' width='117' height='71' border='0'>"
image[number++] = "<img src='themes/upser/ico/10.JPG' width='117' height='71' border='0'>"
increment = Math.floor(Math.random() * number); document.write(image[increment]);
//-->
</SCRIPT>
gruß,
tom
ich hab folgendes problem. Ich habe ein js eingebaut um ein random image zu bekommen. dieses bild ist in einer tabelle. leider rückt sich das random image im IE um 2 - 3 pixel nach oben, sodass das design nicht mehr stimmig ist.
weiss einer woran das liegen kann?
seite: http://www.tomcoffee.de/upser
code:
<SCRIPT LANGUAGE="Javascript"><!--
function image() { };
image = new image();
number = 0;
// imageArray
image[number++] = "<img src='themes/upser/ico/1.JPG' width='117' height='71' border='0'>"
image[number++] = "<img src='themes/upser/ico/2.JPG' width='117' height='71' border='0'>"
image[number++] = "<img src='themes/upser/ico/3.JPG' width='117' height='71' border='0'>"
image[number++] = "<img src='themes/upser/ico/4.JPG' width='117' height='71' border='0'>"
image[number++] = "<img src='themes/upser/ico/5.JPG' width='117' height='71' border='0'>"
image[number++] = "<img src='themes/upser/ico/6.JPG' width='117' height='71' border='0'>"
image[number++] = "<img src='themes/upser/ico/7.JPG' width='117' height='71' border='0'>"
image[number++] = "<img src='themes/upser/ico/8.JPG' width='117' height='71' border='0'>"
image[number++] = "<img src='themes/upser/ico/9.JPG' width='117' height='71' border='0'>"
image[number++] = "<img src='themes/upser/ico/10.JPG' width='117' height='71' border='0'>"
increment = Math.floor(Math.random() * number); document.write(image[increment]);
//-->
</SCRIPT>
gruß,
tom