1) Script Title: Drop Down / Overlapping content script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...lapcontent.htm
3) Describe problem:
I cannot adapt this script for my own purpose. The demo works, but I couldn't go further, maybe because :
1) I can't ubnderstand which href should I give to the anchor
2) I would like to use <span> instead of <div>, because the box contain further explanations that some people already know, and I don(t want to break the text fort it.
Here is the code (file histoire3.xhtml)
Code:<!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" lang="fr"> <head> <link rel="stylesheet" type="text/css" href="../memoire.css" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>La Pologne des Jagellons</title> <meta content="Le règne des Jagellons marqua une nouvelle orientation, fondée sur le rapprochement polono-lituanien, le pluralisme national et religieux. Le Royaume des Jagellons devint une grande puissance européenne." name="description" /> <meta content="Jagellon,Lituanie,Pologne,tolérance,Witold,Ladislas,Sigismond,Hedwige,Czerwińsk,Nieszawa,Union de Lublin,Union de Krewo,nihil novi" name="keywords" /> <script type="text/javascript" src="dropdowncontent.js"> /*********************************************** * Drop Down/ Overlapping Content- © Dynamic Drive (www.dynamicdrive.com) * This notice must stay intact for legal use. * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/ </script> </head> <body style="direction: ltr;"> <div id="tete"> <div id="titre">Lieux de mémoire, Lieux d'histoire en Pologne<br /> </div> <div id="menu"> <a href="histoire1.xhtml"><img src="../icones/histoire.png" alt="Rappel historique" /></a><a href="../biblio.xhtml"><img src="../icones/lire.png" alt="À lire, à voir" /></a><a href="../sites.xhtml"><img src="../icones/index.png" alt="index" /></a><a href="../pourquoi.xhtml"><img src="../icones/Apropos.png" alt="À propos de..." /></a><a href="liens.xhtml"><img src="../icones/liens.png" alt="liens utiles" /></a></div> </div> <div id="colonne" class="histoire"> <a href="histoire1.xhtml">600-1300</a> <a href="histoire2.xhtml">1300-1382</a> <a href="histoire3.xhtml">1382-1569</a> <a href="histoire4.xhtml">1569-1696</a> <a href="histoire5.xhtml">1696-1795</a> <a href="histoire6.xhtml">1795-1864</a> <a href="histoire7.xhtml">1864-1918</a> <a href="histoire8.xhtml">1918-1939</a> <a href="histoire9.xhtml">1939-1945</a> <a href="histoire10.xhtml">1945-1989</a> </div> <div id="texte" class="histoire"> <h2>Vers la Pologne-Lituanie</h2> <p>Il fallut en fait beaucoup de temps pourconsolider cette union polono-lituanienne. Un nouveau pas fut franchi en 1413 (Union de Horodło) : les deux pays s'engageaient à s'entendre pour choisir leurs souverains ; cette union amorçait un rapprochement institutionnel, puisque le grand-duché adoptait certaines institutions polonaises comme la <a href="histoire3.xhtml" id="voievodie" rel="definition1">voïevodie</a> <span id="definition1" style="border: 1px solid black; padding: 2px; position: absolute; visibility: hidden; background-color: white; width: 400px;">, <p>La voievodie est une région</p> </span>tandis que 47 familles lithuaniennes entraient, à égalité de privilèges, dans les registres de noblesse polonais. </p> </div> <script type="text/javascript"> //Call dropdowncontent.init("anchorID", "positionString", glideduration, "revealBehavior") at the end of the page: dropdowncontent.init("searchlink", "right-bottom", 500, 'mouseover') </script> </body> </html>



Reply With Quote
...

Bookmarks