seb1972ca
Messages postés2Date d'inscriptionmercredi 30 novembre 2011StatutMembreDernière intervention30 novembre 2011
-
30 nov. 2011 à 15:18
seb1972ca
Messages postés2Date d'inscriptionmercredi 30 novembre 2011StatutMembreDernière intervention30 novembre 2011
-
30 nov. 2011 à 15:33
Bonjour,
Besoin d'aide d'un programmeur (e)... Sur une page web, j'ai ajouté 2 menus accordéons verticaux. Celui du haut va très bien et l'autre en-dessous non... Et je ne comprends pas pourquoi ! Vous pourriez me donner un coup de main svp ?
Mon code :
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<!--Make sure your page contains a valid doctype at the very top-->
<link rel="stylesheet" type="text/css" href="haccordion.css">
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="haccordion.js">
/***********************************************
* Horizontal Accordion script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<style type="text/css">
/*CSS for example Accordion #hc2*/
#hc2 li{
margin:0 0 0 0; /*Spacing between each LI container*/
border: 2px solid black;
background: #000;
}
#hc2 li .hpanel{
padding: 2px; /*Padding inside each content*/
background: #0099FF;
}
/*CSS for example Accordion #hc3*/
#hc3 li{
margin:0 0 0 0; /*Spacing between each LI container*/
border: 2px solid black;
background: #000;
}
#hc3 li .hpanel{
padding: 2px; /*Padding inside each content*/
background: #0099FF;
}
</style>
<script type="text/javascript">
haccordion.setup({
accordionid: 'hc2', //main accordion div id
paneldimensions: {peekw:'25px', fullw:'450px', h:'150px'},
selectedli: [-1, true], //[selectedli_index, persiststate_bool]
collapsecurrent: true //<- No comma following very last setting!
})
haccordion.setup({
accordionid: 'hc3', //main accordion div id
paneldimensions: {peekw:'25px', fullw:'450px', h:'150px'},
selectedli: [-1, true], //[selectedli_index, persiststate_bool]
collapsecurrent: true //<- No comma following very last setting!
})