-5
我有這個代碼,我想問我怎麼可以使用按鈕(左,右)來滑動小圖像,我從數據庫像幻燈片使用jquery ?感謝您的幫助網站我怎麼可以做一個圖像幻燈片
$PARAM_hote='localhost';
$PARAM_nom_bd='venteformation';
$PARAM_utilisateur='root';
$PARAM_mot_passe='';
try{
$connexion = new PDO('mysql:host='.$PARAM_hote.';dbname='.$PARAM_nom_bd, $PARAM_utilisateur, $PARAM_mot_passe);
}
catch(Exception $e) {
echo 'Erreur : '.$e->getMessage().'<br />'; echo 'N° : '.$e->getCode();
}
if (mysqli_connect_errno()) {
echo "Echec de la connexion" ;
exit();
}
else
{
$RequetLivre = $connexion->query("select * from livre");
?>
<div id="wrapper" class="col-lg-12">
<div id="page-wrapper" >
<div class="container-fluid">
<?php /**Block ROW 1 *****/?>
<div class="row">
<div class="col-lg-12">
<form name="f_livre" method="POST" action="verification.php">
<fieldset>
<table width="" border="0">
<tr>
<?php
while ($LivreRow = $RequetLivre->fetch(PDO::FETCH_ASSOC))
{
echo "<div class='slideshow'>";
echo"<td>";
echo '<button type="submit" name="idl" value="'.$LivreRow['IDL'].'"><img src="data:image/jpeg;base64,'.base64_encode($LivreRow['IL']).'" width="240" height="300" id="'.$LivreRow['IDL'].'" /></button>';
echo"</td></div>";
}
</tr>
</table>
</fieldset>
</form>
</div>
</div><!-- /#ROW 1 -->
</div>
</div><!-- /#page-wrapper -->
使用分頁調查 –
不難在全網查找內容滑塊腳本或教程。這不是一個*「如何」*教程網站 – charlietfl
問題是,我什麼都不知道jQuery中,爲什麼我不知道這個動畫的技術字:/ –