menu accordion qui marche on local seulement
salut j'ai intégré un menu accordion dans un site ça marche tres bien on local mais quand il est hébergé ça marche pas :( voici erreur sur js
Citation:
Erreur*: $("#example2").collapsible is not a function
voici mon code
Code:
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Document sans nom</title>
<script type="text/javascript" src="js/jquery-1.4.2.js"></script>
<script type="text/javascript" src="js/jcollapsible.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#example2').collapsible({xoffset:'-20', defaulthide: true, imagehide: 'images/arrow-down.png', imageshow: 'images/arrow-right.png'});
});
</script>
<style type="text/css">
body{margin:0; padding:0;}
ul,li { margin: 0; padding: 0; }
ul { padding-left: 20px; line-height: 18px; border:1px solid #F00; }
#example2 { width: 600px; float: left; margin-right: 40px; }
#example2, #example2 ul { list-style-type: none; }
#example2 li{border:1px solid #03F;}
</style>
</head>
<body>
<ul id="example2">
<li>Parent Object 1
<ul>
<li>Child Object 1</li>
<li>Child Object 2</li>
</ul>
</li>
<li>Childless Object</li>
<li>Parent Object 2
<ul>
<li>Child/Parent 1
<ul>
<li>Grandchild 1</li>
<li>Grandchild 2</li>
</ul>
</li>
<li>Child Object 2</li>
</ul>
</li>
</ul>
</body>
</html> |
j'ai vérifier les chemins de mes fichier js ils sont bon sinon le l'accordion ne marchera plus :(