Php et javascript
billy67
-
Erdnax Messages postés 2279 Statut Contributeur -
Erdnax Messages postés 2279 Statut Contributeur -
<?
$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>
$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:
- Php et javascript
- Easy php - Télécharger - Divers Web & Internet
- Telecharger javascript - Télécharger - Langages
- Expert php pinterest - Télécharger - Langages
- A javascript error occurred in the main process - Forum Handicap / Accessibilté
- Javascript echo ✓ - Forum PHP