problem med skift af billedet
Hejsajeg er ved at lave en galleri...
men har et problem den vil ikke skifte billedet med den kode jeg har prøvet at sætte sammen
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script language="javascript">
function showimage()
{
if (!document.images)
return
document.images.pictures.src=
document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value
}
//-->
</script>
</head>
<body>
<?php
include("dbconnect.php");
$getnews = mysql_query("SELECT * FROM brugergalleri WHERE brugerid = '$_GET[id]' ORDER BY id DESC LIMIT 1");
while($row=mysql_fetch_array($getnews))
{
?>
<?php
extract($row);
?>
<div align="center"><img src="http://privat.mr-xmas.dk/arto/galleri/<?php echo("$upname"); ?>" name="pictures" width="250" height="250" />
<?php
}
?>
<br />
Klik på billedet nedenfor for at se den stor :-) <br />
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><form name="mygallery"> <?php
include("dbconnect.php");
$getnews = mysql_query("SELECT * FROM brugergalleri WHERE brugerid = '$_GET[id]' ORDER BY id DESC");
while($row=mysql_fetch_array($getnews))
{
?>
<?php
extract($row);
?>
<A HREF="" onChange="showimage()"><IMG SRC="http://privat.mr-xmas.dk/arto/galleri/<?php echo("$upname"); ?>"
HEIGHT=100 WIDTH=100 ALT="img" HSPACE=4 BORDER=0></A>
<?php
}
?>
</form> </td>
</tr>
<tr>
<td width="100%"><p align="center"></td>
</tr>
</table>
