Un scrollbar comme facebook.
Fermé
djun1
Messages postés
28
Date d'inscription
mardi 30 octobre 2012
Statut
Membre
Dernière intervention
29 octobre 2016
-
Modifié par djun1 le 17/02/2013 à 01:59
djun1 Messages postés 28 Date d'inscription mardi 30 octobre 2012 Statut Membre Dernière intervention 29 octobre 2016 - 17 févr. 2013 à 13:35
djun1 Messages postés 28 Date d'inscription mardi 30 octobre 2012 Statut Membre Dernière intervention 29 octobre 2016 - 17 févr. 2013 à 13:35
A voir également:
- Un scrollbar comme facebook.
- Facebook lite gratuit - iam - Télécharger - Messagerie
- Story facebook - Guide
- Comment récupérer un compte facebook piraté - Guide
- Qui regarde mon profil facebook - Guide
- Compte facebook suspendu 180 jours - Guide
1 réponse
djun1
Messages postés
28
Date d'inscription
mardi 30 octobre 2012
Statut
Membre
Dernière intervention
29 octobre 2016
17 févr. 2013 à 13:35
17 févr. 2013 à 13:35
J'ai améliorer mon code. Voila, je pense que ce sera plus simple pour m'aider.
<!doctype HTML> <html> <head> <title>Creation d'un scrollbar comme facebook</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script src="jquery.mousewheel.js"></script> <script src="jquery.jscrollpane.min.js"></script> <linl rel="stylesheet" type="text/css" href="jquery.jscrollpane.css"> <script> $(function() { $('.content-area').jScrollPane(); }); $('.content-area').jScrollPane({ horizontalGutter:5, verticalGutter:5, 'showArrows': false }); $('.jspDrag').hide(); $('.jspScrollable').mouseenter(function(){ $(this).find('.jspDrag').stop(true, true).fadeIn('slow'); }); $('.jspScrollable').mouseleave(function(){ $(this).find('.jspDrag').stop(true, true).fadeOut('slow'); }); </script> <style type="text/css"> #contenue { background-color:green; width:150px; height:150px; } .jspVerticalBar { width: 8px; background: transparent; right:10px; } .jspHorizontalBar { bottom: 5px; width: 100%; height: 8px; background: transparent; } .jspTrack { background: transparent; } .jspDrag { background: url(transparent-black.png) repeat; -webkit-border-radius:4px; -moz-border-radius:4px; border-radius:4px; } .jspHorizontalBar .jspTrack, .jspHorizontalBar .jspDrag { float: left; height: 100%; } .jspCorner { display:none } </style> </head> <body> <div id="contenue" class="content-area"> a<br> a<br> a<br> a<br> a<br> a<br> a<br> a<br> a<br> a<br> a<br> a<br> a<br> a<br> a<br> a<br> a<br> a<br> a<br> a<br> a<br> a<br> a<br> a<br> a<br> a<br> a<br> a<br> </div> </body> </html>