par
cyruskafaiwu » 07 déc. 2011, 02:24
J'ai un problème avec le fonction de append().
Voici mon code:
Code : Tout sélectionner
function open_lightbox(url) {
var content = '<div class="lightbox"><iframe src="http://toptopgames.com" width="100%" height="100%"></iframe></div>
<div class="lightbox_outer_background"></div>';
$(".wrapper").append(content);
alert("salut");
}
Ce code a des erreurs. Je pense que «var content = '<div class="lightbox"><iframe src="
http://toptopgames.com" width="100%" height="100%"></iframe></div>
<div class="lightbox_outer_background"></div>';» est mon probleme. Mais, je ne sais pas comment y résoudre.
J'ai un problème avec le fonction de append().
Voici mon code:
[code]function open_lightbox(url) {
var content = '<div class="lightbox"><iframe src="http://toptopgames.com" width="100%" height="100%"></iframe></div>
<div class="lightbox_outer_background"></div>';
$(".wrapper").append(content);
alert("salut");
}[/code]
Ce code a des erreurs. Je pense que «var content = '<div class="lightbox"><iframe src="http://toptopgames.com" width="100%" height="100%"></iframe></div>
<div class="lightbox_outer_background"></div>';» est mon probleme. Mais, je ne sais pas comment y résoudre.