Php bdd jquery
Résolu/Fermé
zeckiis
Messages postés
197
Date d'inscription
mercredi 16 janvier 2008
Statut
Membre
Dernière intervention
24 octobre 2013
-
12 sept. 2012 à 18:11
A.Nonymous - 14 sept. 2012 à 16:56
A.Nonymous - 14 sept. 2012 à 16:56
A voir également:
- Php bdd jquery
- Easy php - Télécharger - Divers Web & Internet
- \R php ✓ - Forum PHP
- Br php ✓ - Forum PHP
- Expert php - Télécharger - Langages
- Php echo image ✓ - Forum PHP
2 réponses
Le plugin jQuery ColorBox ( http://www.jacklmoore.com/colorbox/ ) peut répondre à la demande :
HTML :
<table>
<tr>
<td>Demo</td>
<td><a class='iframe' href="http://www.commentcamarche.net/forum/affich-26059568-php-bdd-jquery">Php bdd jquery</a></td>
</tr>
<tr>
<td>ColorBox</td>
<td><a class="iframe" href="http://www.jacklmoore.com/colorbox/">http://www.jacklmoore.com/colorbox/</a>
</td>
</tr>
</table>
Javascript :
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});?
Demo : http://jsfiddle.net/ah6D3/
HTML :
<table>
<tr>
<td>Demo</td>
<td><a class='iframe' href="http://www.commentcamarche.net/forum/affich-26059568-php-bdd-jquery">Php bdd jquery</a></td>
</tr>
<tr>
<td>ColorBox</td>
<td><a class="iframe" href="http://www.jacklmoore.com/colorbox/">http://www.jacklmoore.com/colorbox/</a>
</td>
</tr>
</table>
Javascript :
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});?
Demo : http://jsfiddle.net/ah6D3/
zeckiis
Messages postés
197
Date d'inscription
mercredi 16 janvier 2008
Statut
Membre
Dernière intervention
24 octobre 2013
2
14 sept. 2012 à 04:24
14 sept. 2012 à 04:24
super, ca marche au bout de 2 jours de test. merci, en effet il a fallu que j'ajoute tt le code javascript:
<script type="text/javascript">
$(document).ready(function(){
//Examples of how to assign the ColorBox event to elements
$(".group1").colorbox({rel:'group1'});
$(".group2").colorbox({rel:'group2', transition:"fade"});
$(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
$(".group4").colorbox({rel:'group4', slideshow:true});
$(".ajax").colorbox();
$(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
$(".iframe").colorbox({iframe:true, width:"60%", height:"60%"});
$(".inline").colorbox({inline:true, width:"50%"});
$(".callbacks").colorbox({
onOpen:function(){ alert('onOpen: colorbox is about to open'); },
onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
});
//Example of preserving a JavaScript event for inline calls.
$("#click").click(function(){
$('#click').css({"background-color":"#fff000", "color":"#999", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
return false;
});
});
</script>
<script type="text/javascript">
$(document).ready(function(){
//Examples of how to assign the ColorBox event to elements
$(".group1").colorbox({rel:'group1'});
$(".group2").colorbox({rel:'group2', transition:"fade"});
$(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
$(".group4").colorbox({rel:'group4', slideshow:true});
$(".ajax").colorbox();
$(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
$(".iframe").colorbox({iframe:true, width:"60%", height:"60%"});
$(".inline").colorbox({inline:true, width:"50%"});
$(".callbacks").colorbox({
onOpen:function(){ alert('onOpen: colorbox is about to open'); },
onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
});
//Example of preserving a JavaScript event for inline calls.
$("#click").click(function(){
$('#click').css({"background-color":"#fff000", "color":"#999", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
return false;
});
});
</script>