Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Afficher la balise image formatée


{filelink=12627}

<?php

function imageHTML($fichier, $alt = '', $height = 0, $width = 0) {

    print '<img src="' . $GLOBALS['cheminFichier'] . $fichier . '"';
    if (strlen($alt)) {
        print ' alt="' . $alt . '"';
    }
    if ($height) {
        print ' height="' . $height . '"';
    }
    if ($width) {
        print ' width="' . $width . '"';
    }
    print '>';
}

         ?>

No comments yet.

Leave a Comment