Bonjour
je n'arrive pas a ajouter la variable urlfoto...il y a une méthode ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 function zomfoto(e){ var urlfoto = "<?php echo $repfoto; ?>"+e; console.log(urlfoto); $(document).ready(function() { $('<figure class="zoom" onmousemove="zoom(event)" style="background-image: url('+urlfoto')"><img src="'+urlfoto'"/></figure>').appendTo('#outerdiv'); }); }
Partager