Php et javascript

Fermé
billy67 - 29 août 2005 à 13:51
Erdnax Messages postés 2273 Date d'inscription mercredi 1 octobre 2003 Statut Contributeur Dernière intervention 1 octobre 2007 - 29 août 2005 à 14:08
<?
$tab = array();
while ($row = mysql_fetch_array($result_prod, MYSQL_ASSOC)) {
array_push ($tab,$row['products_image']);
?>)

<script language ="javascript">
myPix =new array(); // ici comment initialiser myPix avec $tab
thisPic = 0;
imgCt = myPix.lenght -1

function Preview (){
if(document.images && thisPic >0){
thisPic--
document.mypicture.src = myPix[thisPic];
}
}

function Preview (){
if(document.images && thisPic < imgCt){
thisPic++
document.mypicture.src = myPix[thisPic];
}
}
</script>
A voir également:

1 réponse

Erdnax Messages postés 2273 Date d'inscription mercredi 1 octobre 2003 Statut Contributeur Dernière intervention 1 octobre 2007 497
29 août 2005 à 14:08
Sympa...

Kestuveux ?
0