Ich habe als alternative Lösung das hier gemacht, aber es funktioniert auch nicht:
Code:
<script language="javascrip">
document.write('<a href="document.URL + '?picture=<?php echo $o->Id; ?>'">
<img src="<?php echo $thumbdir . $o->path . $o->filename; ?>" title="<?php echo $o->title; ?>" alt="Vorschaubild: <?php echo $o->title; ?>" \/><\/a>')
</script>