1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
...
<script language=javascript>
function ImageMax(chemin) {
html='<html> <head> <title>Titre</title> </head> <body bgcolor=black><IMG src="'+chemin+'" BORDER=0 NAME=ImageMax onLoad="window.resizeTo(document.ImageMax.width+40, document.ImageMax.height+400)"></body></html>';
popupImage = window.open('','_blank','toolbar=0, location=0, directories=0, menuBar=0, scrollbars=0, resizable=1');
popupImage.document.open();
popupImage.document.write(html);
popupImage.document.close()
};
</script>
....
$sql = "SELECT url_photo FROM film WHERE genre_film = 'Comédie'";
echo $sql;
$quer = mysql_query($sql);
$fe = mysql_fetch_array($quer);
extract($fe);
echo "<a href= \"#\" onclick= ImageMax(\"C:\wamp\www\PHOTO/",$image,"\");>
<img src= C:\wamp\www\PHOTO/",$image," width=\"213\" height=\"180\" border=\"0\" hspace=\"40\" Hspace=10 align = 'left' title = 'Cliquez pour agrandire la photo' ></a>"; |
Partager