Bonjour,
petite question (je ne suis pas connaisseuse) : pourquoi les images scrollable de jquery ne fonctionnent plus avec ce code?
merci pour l'aide!
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67 <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> <script src="http://cdn.jquerytools.org/1.2.6/jquery.tools.min.js"></script> <script> $(document).ready(function(){ $(".scroll").scrollable({ circular: true, speed:2500 }).click(function() { $(this).data("scrollable").next(); }); }); </script> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Soutiens</title> <style type="text/css"> /* root element for single scroll */ * {margin:1000;padding:1000;} .scroll { position:relative; overflow:hidden; width: 1000px; height:1000px; float:left; } /* root element for the scroll pics */ .scroll .pics { width:20000em; position:absolute; clear:both; } /* single scroll item */ .pics div { float:left; cursor:pointer; width:1000px !important; height:1000px; margin:75px; } </style> </head> <body> <center> <div class="scroll"> <div class="pics"> <div> <img src="enattente.jpg" alt="1" /> </div> <div> <img src="enattente1.jpg" alt="2" /> </div> <div> <img src="enattente2.jpg" alt="2" /> </div> </body> </html>
Partager