thomas: kann ich in einem tag entweder width oder height eingeben

Beitrag lesen

hallo zusammen,

ich habe mir eine image gallery gebaut(zusamenkopiert) und will nun für hochkantbilder eine maximale höhe und für querbilder eine maximale breite angeben

mein skript:
<html>

<head>
<title>Neue Seite 1</title>
<script language="JavaScript">
<!--
var myPix = new Array('http://www.golf-rakete.de/Thumbnail/localheroes04/lh04-1.jpg',
'http://www.golf-rakete.de/Thumbnail/localheroes04/lh04-2.jpg',
'http://www.golf-rakete.de/Thumbnail/localheroes04/lh04-3.jpg',
'http://www.golf-rakete.de/Thumbnail/localheroes04/lh04-4.jpg',
'http://www.golf-rakete.de/Thumbnail/localheroes04/lh04-5.jpg',
'http://www.golf-rakete.de/Thumbnail/localheroes04/lh04-6.jpg',
'http://www.golf-rakete.de/Thumbnail/localheroes04/lh04-7.jpg',
'http://www.golf-rakete.de/Thumbnail/localheroes04/lh04-8.jpg',
'http://www.golf-rakete.de/Thumbnail/localheroes04/lh04-9.jpg',
'http://www.golf-rakete.de/Thumbnail/localheroes04/lh04-10.jpg',
'http://www.golf-rakete.de/Thumbnail/localheroes04/lh04-11.jpg',
'http://www.golf-rakete.de/Thumbnail/localheroes04/lh04-12.jpg',
'http://www.golf-rakete.de/Thumbnail/localheroes04/lh04-13.jpg')
var thisPic = 0

function doPrevious() {
    if (document.images && thisPic > 0) {
        thisPic--
        document.myPicture.src=myPix[thisPic]
    }
}

function doNext() {
    if (document.images && thisPic < 12) {
        thisPic++
        document.myPicture.src=myPix[thisPic]
    }
}
// -->
</script>

</head>

<body text="#FF9900" bgcolor="#000000">
<center>
<br><font face="Verdana" color="#ff9900"><small>
<a href="javascript:doPrevious()"><font color="#ff9900">vorheriges Bild</font></a><font color="#ff9900">&nbsp;-&nbsp;
<a href="javascript:doNext()"><font color="#ff9900">nächstes Bild</font></a></font></small><font color="#ff9900">
</font></font>
<p>&nbsp;</p>
</center>
<div align="center">
  <center>
  <p align="center"><font color="#ff9900" face="Verdana">
  <img name="myPicture" src="http://www.golf-rakete.de/Thumbnail/localheroes04/lh04-1.jpg" height="50%"></td>
  </center>
</div>
</body>

</html>

kann mir jemand helfen?