28173 sujets

CSS et mise en forme, CSS3

Bonjour,

Devant mettre à jour un nouveau menu, et après tests effectués sur différents navigateurs (Mozilla, Opera, IE 7.0), je m'aperçois que mon sous-menu ne s'affiche pas lors d'une navigation sous IE 6.0.

Ci-dessous des captures qui parleront plus qu'un long discours :

upload/13802-mozilla.jpg

upload/13802-IE6.0.jpg

J'imagine que j'aurai besoin d'apporter des compléments dans mon fichier css... mais étant à peu près ingnorant des modifications à apporter, je me réfère au savoir de la communauté.

Je vous remercie par avance pour les remarques qui pourront être apportées et me tiens disponible pour des compléments d'information.

Pascal
Modifié par dominique (24 Aug 2007 - 11:27)
Bonjour,

Comme tu l'as dit, des images montre bien le probleme, mais si tu pouvais montrer du code ou mieux une page en ligne sera pourrai nous aider à t'aider.
Merci pour votre attention...

Le code css de la partie concernée :

/**00000000000000000000000000000000000
000		MENU		    00
00000000000000000000000000000000000**/

div#toolbox {
	float:right;
	margin: 3px 10px 0 0 !important;
	margin-top:7px;
}


div#menu {
	background: url(../images/menu_bg.gif) no-repeat center;
	border: 10px solid white;
	width: 796px;
	height: 27px;
	line-height: 27px;
	margin: 0;
	padding: 0;
}

/* because IE 5.x sucks */
div#\menu {
	width: 776px;
}

div#ulcontainer {
	margin: 0 0 0 30px;
	z-index: 1;
}


div#menu ul {
	margin: 0;
	padding: 0;
	display: inline;
}


div#menu li {
	margin: 0;
	padding: 0px;
	font-weight: bold;
	background: url(../images/li_menu.gif) repeat-y 0 0;
	display: block;
	float: left;
}


#menu li a {
	display:block;
	margin-left:2px; 
	color: #285A8A;
	padding: 0 10px;
}

div#menu li a:hover {
	color: white;
	background-color: #4B75A2;
}

a.menuon {
	color: white ! important;
	background-color: #4B75A2;
}

ul, li {
	list-style-type: none;
}

#ulcontainer .submenu {
	position: absolute;
	text-align: left;	
	height: 15px;
	list-style: none;	
	display: none;
	width: 145px;	
}

.submenu a { 
	padding: 0px 2px;
}

#ulcontainer .submenu li
{
	float: none;
	height: 18px;
	width: 170px;	
	border-style: none;	
	border-bottom: #fff 1px solid;
	background-color: #ccc;
	padding-top: 0px;
	padding-bottom: 3px;
	vertical-align: middle;
}

#ulcontainer .submenu a:link, #ulcontainer .submenu a:visited {
	border-left: solid 1px;
	display: block;	
	font-size: 11px;
	padding-bottom: 3px;
	border-color: transparent;		
	height: 18px;
	}
	
#ulcontainer li:hover > .submenu { 
	z-index:110;
	display: block;
	height: 18px;
}

li: hover > ul, li.over > ul {
	display: block;
}
#ulcontainer .submenu a:hover {
	color: #e88f1d !important;
	font-size: 11px;
	background-color: #e6e6e6;
	padding: #e6e6e6;
	height: 18px;
}

.submenu_on {
	display:block;
}

.submenu_off {
	display:none;	
}


Le code html :
<div id="header" title="<:ifp_abbr:>"><span><:ifp_abbr:> - [(#URL_SITE_SPIP)]/[(#SELF)]</span></div>
<a href="#maincontent" class="nodisplay" title="<:aller_contenu:>" accesskey="2"><:aller_contenu:></a>
<a href="accessibility.php3?lang=[(#LANG)]" class="nodisplay" title="<:politique_accessibilite:>" accesskey="0"><:politique_accessibilite:></a>

<!-- Rubriquage principal -->
<BOUCLE_premierniveau(HIERARCHIE) {id_article} {0, 1}>
<div id="menu">
	<div id="ulcontainer">
		<B_rubriquesmenu>
		<div title="<:hierarchie_site:>">
			<ul id="nav">
			<!--  onmouseover="DisplaySSmenu(0);" -->
				<li><a href="./-#LANG-.html" accesskey="1" [title="(#DESCRIPTIF|textebrut|entites_html) : 1"]><:accueil:></a></li>
					<BOUCLE_rubriquesmenu(RUBRIQUES) {par titre} {tout} {id_parent=#_premierniveau:ID_RUBRIQUE}>
						<li><a href="#_rubriquesmenu:URL_RUBRIQUE"  class="menu#EXPOSE"
							<BOUCLE_accesskeys(MOTS){id_rubrique}{type=SectionsAccesskeys}>accesskey="#_accesskeys:TITRE" [title="(#_rubriquesmenu:DESCRIPTIF|textebrut|entites_html) : #_accesskeys:TITRE"]>[(#_rubriquesmenu:TITRE|supprimer_numero)]</a>	
								<ul class="submenu">
									<li><a href="#_rubriquesmenu:URL_RUBRIQUE" class="menu#EXPOSE">[(#_rubriquesmenu:DESCRIPTIF|textebrut|entites_html)]</a></li>
									<BOUCLE_rubriques4sr(RUBRIQUES) {par num titre} {tout} {id_parent}>
										<li><a href="#_rubriques4sr:URL_RUBRIQUE" >[(#TITRE|supprimer_numero)]</a></li>
										<BOUCLE_ssrubriques(RUBRIQUES) {tout} {id_parent} {par num titre} {tout} {titre!==^[_]} {" | "}>
											<a href="#URL_RUBRIQUE" [title="(#DESCRIPTIF|textebrut|entites_html)"]>[(#TITRE|supprimer_numero)]</a></li>
										</BOUCLE_ssrubriques>
										<?php $cnt=#COMPTEUR_BOUCLE + 1; ?>
									</BOUCLE_rubriques4sr>
								</ul>
								</li></BOUCLE_accesskeys>
					</BOUCLE_rubriquesmenu>
				<li><a href="mailto:ifpinfo@ifpindia.org"  accesskey="7"  title="<:envoyer_mail_ifp:> : 7"><:contact:></a></li>
			</ul>
		</div>
		</B_rubriquesmenu>
	</div>
		<div id="toolbox">
			<a href="javascript:history.back();" title="<:retour:>"><img src="#DOSSIER_SQUELETTE/images/back.png" alt="<:retour:>" /></a>
			<a href="javascript:self.print();" title="<:imprimer:>"><img src="#DOSSIER_SQUELETTE/images/print.png" alt="<:imprimer:>" /></a>
		</div>
</div>

<!-- /Rubriquage principal -->

</BOUCLE_premierniveau>

<!-- /Sous Rubriquage  -->



Je continue ma recherche et vous tiens au courant s'il y a du nouveau...

Merci
Salut Morfeo Smiley cligne ,

il s'agit visiblement d'un template (<BOUCLE_premierniveau...) et ce serait beaucoup plus simple de nous donner le html généré (Afficher la source) Smiley langue .

A+
Yep,

J'ai testé cette solution, en vain...

http://www.alistapart.com/articles/horizdropdowns

Pour ce qui est du code html généré :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">



<!-- Just To get lang -->


<html dir="ltr" lang="en">
<head>
<title>Research .:: Institut Français de Pondichéry ::.</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="ifp2005blue/js/lib.js"></script>
<script type="text/javascript" src="ifp2005blue/js/outgoinglinks.js"></script>
<link rel="stylesheet" href="ifp2005blue/css/spip_style.css" type="text/css">
<style type="text/css" media="all">
	@import "ifp2005blue/css/default.css.php?current_lang=en";
</style>
<link rel="stylesheet" href="ifp2005blue/css/imp.css.php?current_lang=en" type="text/css" media="print">
<link rel="home" title="Home" href="-en-.html">
<link rel="search" title="Make a new search" href="#4">
<link rel="contents" title="Go to the content" href="#2">
<link rel="help" title="Accessibility policy" href="accessibility.php3?lang=en">


<link rel="section" title="Presentation" href="-The-Institute-.html">

<link rel="section" title="Departments & Axes" href="-Research-.html">

<link rel="section" title="Presentation" href="-Resources-.html">

<link rel="section" title="Scientific News" href="-News-.html">

<link rel="section" title="IFP" href="-Practical-Information-.html">


<!-- Lien vers le backend pour navigateurs eclaires -->
<link rel="alternate" type="application/rss+xml" title="Syndicate this section" href="backend.php3?id_rubrique=4">
</head>

<body>
<!-- Container pour centrage -->
<div id="container">
<div id="header" title="FIP : French Institute of Pondicherry"><span>FIP : French Institute of Pondicherry -  http://geo-vci/ifp_multilingue/-Research-.html</span></div>
 
<a href="#maincontent" class="nodisplay" title="Go to the content" accesskey="2">Go to the content</a>
<a href="accessibility.php3?lang=en" class="nodisplay" title="Accessibility policy" accesskey="0">Accessibility policy</a>

<!-- Rubriquage principal -->

<div id="menu">
	<div id="ulcontainer">
		
		<div title="The site's hierarchy">
			<ul id="nav">
			<!--  onmouseover="DisplaySSmenu(0);" -->
				<li><a href="./-en-.html" accesskey="1" title="Go to home : 1">Home</a></li>
					
						<li><a href="-The-Institute-.html"  class="menu"
							accesskey="i" title="Presentation : i">The Institute</a>	
								<ul class="submenu">
									<li><a href="-The-Institute-.html" class="menu">Presentation</a></li>
									
										<li><a href="-IFP-in-images-.html" ><abbr title="Institut Français de Pondichéry">IFP</abbr> in images</a></li>
										
																			
										<li><a href="-Staff-.html" >Staff</a></li>
										
																			
										<li><a href="-Partners-.html" >Partners</a></li>
										
																			
										<li><a href="-Activity-Report-.html" >Activity Report</a></li>
										
																			
										<li><a href="-Links-.html" >Links</a></li>
										
																			
								</ul>
								</li>
					
						<li><a href="-Research-.html"  class="menuon"
							accesskey="r" title="Departments & Axes : r">Research</a>	
								<ul class="submenu">
									<li><a href="-Research-.html" class="menu">Departments & Axes</a></li>
									
										<li><a href="-Social-Sciences-.html" >Social Sciences</a></li>
										
																			
										<li><a href="-Indology-.html" >Indology</a></li>
										
																			
										<li><a href="-Ecology-.html" >Ecology</a></li>
										
																			
								</ul>
								</li>
					
						<li><a href="-Resources-.html"  class="menu"
							accesskey="d" title="Presentation : d">Resources</a>	
								<ul class="submenu">
									<li><a href="-Resources-.html" class="menu">Presentation</a></li>
									
										<li><a href="-Informatics-.html" >Informatics</a></li>
										
																			
										<li><a href="-Library-.html" >Library</a></li>
										
																			
										<li><a href="-Publications-.html" >Publications</a></li>
										
																			
										<li><a href="-Manuscripts-.html" >Manuscripts</a></li>
										
																			
										<li><a href="-Photo-Archives-.html" >Photo Archives</a></li>
										
																			
										<li><a href="-Map-archives-.html" >Map archives</a></li>
										
																			
								</ul>
								</li>
					
						<li><a href="-News-.html"  class="menu"
							accesskey="n" title="Scientific News : n">News</a>	
								<ul class="submenu">
									<li><a href="-News-.html" class="menu">Scientific News</a></li>
									
										<li><a href="-Seminars-.html" >Seminars</a></li>
										
																			
										<li><a href="-Recruitment-Training-.html" >Recruitment & Training</a></li>
										
																			
										<li><a href="-Visitors-.html" >Visitors</a></li>
										
																			
										<li><a href="-Press-.html" >Press</a></li>
										
																			
										<li><a href="-Newsletters-.html" >Newsletters</a></li>
										
																			
										<li><a href="-RSS-feed-.html" >IFP news in real time !</a></li>
										
																			
								</ul>
								</li>
					
						<li><a href="-Practical-Information-.html"  class="menu"
							accesskey="p" title="IFP : p">Practical Information</a>	
								<ul class="submenu">
									<li><a href="-Practical-Information-.html" class="menu">IFP</a></li>
									
										<li><a href="-Pondicherry-.html" >Pondicherry</a></li>
										
																			
										<li><a href="-India-.html" >India</a></li>
										
																			
								</ul>
								</li>
					
				<li><a href="mailto:ifpinfo@ifpindia.org"  accesskey="7"  title="Send mail to IFP : 7">Contact</a></li>
			</ul>
		</div>
		
	</div>
		<div id="toolbox">
			<a href="javascript:history.back();" title="Previous page"><img src="ifp2005blue/images/back.png" alt="Previous page" /></a>
			<a href="javascript:self.print();" title="Print this page"><img src="ifp2005blue/images/print.png" alt="Print this page" /></a>
		</div>
</div>

<!-- /Rubriquage principal -->



<!-- /Sous Rubriquage  -->


<div id="content">

<div class="rightnav">

<div class="rightnavminwidth"><img src="IMG/rubon4.png" alt="" width="234" height="102" style='border-width: 0px;' class='spip_logos' /></div>

<div class="rightnavminwidth">

			
				
					<div id="switchlang">
					<a href="-Recherche-.html" title="Accéder à la version française" lang="fr" hreflang="fr">Accéder à la version française <img src="ifp2005blue/images/fr_flag.png" id="flag" alt="Accéder à la version française" /></a>
					</div>
				
			

</div>

<!-- Sous-rubriques -->

 <!-- getting first level of hierarchy -->

<div class="graycontainer rightnavminwidth">
	<div class="contentgtr"></div><div class="contentgtl"></div>
	<div id="titlesubsections"><h2>Sub-sections</h2></div>
	<p class="graybar"></p>
		<ul class="rbox">
		
		<li>
				<a href="-Research-.html" title="Departments & Axes">Departments & Axes</a>
		</li>
		
		<!-- sous rubriques -->
		
			<li>
				<a href="-Social-Sciences-.html" >Social Sciences</a>
			</li>
		
			<li>
				<a href="-Indology-.html" >Indology</a>
			</li>
		
			<li>
				<a href="-Ecology-.html" >Ecology</a>
			</li>
			
 		</ul>	
	<div class="contentgbr"></div><div class="contentgbl"></div>
</div>



<!-- Getting Ongoing projects -->


<!-- Getting Completed projects -->



<div class="bluecontainer rightnavminwidth">
	<div class="contentbtr"></div><div class="contentbtl"></div>
	<div id="titlesearch"><h2>Search</h2></div>
	<p class="bluebar"></p>
	<div id="searchcondensed">
		<!-- Formulaire de recherche -->
		<form action="recherche.php3" method="get" class="formrecherche">
	<div>
		<input type="text" id="formulaire_recherche" name="recherche" value="enter term" onclick="searchInit();" accesskey="4" />
		<input type="hidden" id="curlang" name="lang" value="en" />
		<input type="submit" id="validation_recherche" name="validation_recherche" class="submitbutton" value="valid" />
	</div>
</form>
	</div>
	
	<div class="contentbbr"></div><div class="contentbbl"></div>
</div>


<div class="bluecontainer rightnavminwidth">
	<div class="contentbtr"></div><div class="contentbtl"></div>
	<div id="titledocuments"><h2>Documents</h2></div>
	<p class="bluebar"></p>
	
		<div>
		<p style="text-align:center;">
		<img src='IMG/jpg/Indology_poster.jpg' width="160" height="227" alt='' style='border-width: 0px;' class='spip_logos' /><br />
		<span class="detail2">PDF file | 308.8 kb</span><br />
		<a href="IMG/pdf/Indology_poster.pdf">Download poster "Indology Department"</a>
		</p>
		</div>
	
	<div class="contentbbr"></div><div class="contentbbl"></div>
</div>


</div> <!-- fin rightnav -->                 


<div class="graycontainer normalmainwidth" id="maincontent">
	<div class="contentgtr"></div><div class="contentgtl"></div>
	<div>
		<h1 class="titre-texte">Research</h1>
		<p id="hierarchie">
		<a href="index.php3">Home</a> >
		
		    <a href="-Research-.html">Research</a>
		
		</p>
		<div><p class="spip">The basic mission of IFP is research. The vocation of the Institute is to involve itself in South and South-East Asia.</p>

<h3 class="spip">Research Departments</h3><ul class="spip"><li class="spip"> The Department of <a href="-Indology-.html" class="spip_in">Indology</a> focuses its attention on a number of the historical keys to classical India, namely, its religions, its literature and its languages (Sanskrit and Tamil) in order to better understand the foundations of modern India;</li></ul><ul class="spip"><li class="spip"> The Department of <a href="-Social-Sciences-.html" class="spip_in">Social Sciences</a> promotes research on the major questions of society and on the relations between human societies and their environment:  the social and political dynamics of healthcare traditions, the sociological aspects of HIV transmission, the health problems related to the spread of transmittable diseases, the social dimensions of the microfinance, the territorial transformations related to economic liberalization, the dynamics of indian megalopolises, the social management of water, the demographic trends and social mobility, the diffusion of new technologies, ... ;</li></ul><ul class="spip"><li class="spip"> The Department of <a href="-Ecology-.html" class="spip_in">Ecology</a> conducts research on biodiversity and is particularly concerned with the functioning of fragile ecosystems (forests, mangroves), considering man as an important parameter in their evolution.</li></ul><h3 class="spip">Scientific Orientations and Projects</h3>

<p class="spip">An institution with a multidisciplinary vocation, the Institute hosts in 2005, fully or in part, 30 research projects (10 of which are directed by French and Indian researchers or teachers-cum-researchers belonging to other establishments) distributed according to 10 orientations:</p><ul class="spip"><li class="spip"> <a href="-Indology-.html" class="spip_in">Indology</a> :
<br /><img class='spip_puce' src='puce.gif' alt='-' />  Indian analyses of Sanskrit language and literature
<br /><img class='spip_puce' src='puce.gif' alt='-' />  History of religions
<br /><img class='spip_puce' src='puce.gif' alt='-' />  Tamil studies</li></ul><ul class="spip"><li class="spip"> <a href="-Social-Sciences-.html" class="spip_in">Social Sciences</a> :
<br /><img class='spip_puce' src='puce.gif' alt='-' />  Health and societies
<br /><img class='spip_puce' src='puce.gif' alt='-' />  Economy and societies
<br /><img class='spip_puce' src='puce.gif' alt='-' />  Environment and societies</li></ul><ul class="spip"><li class="spip"> <a href="-Ecology-.html" class="spip_in">Ecology</a> :
<br /><img class='spip_puce' src='puce.gif' alt='-' />  The Paleo-environments of South India
<br /><img class='spip_puce' src='puce.gif' alt='-' />  Application of new information technologies for strengthening of Taxonomic expertise
<br /><img class='spip_puce' src='puce.gif' alt='-' />  Biodiversity elements in the Western Ghats
<br /><img class='spip_puce' src='puce.gif' alt='-' />  Usage of biodiversity and ecosystems modified by human actvity</li></ul>
<div style="clear:right;margin:0;padding:0"></div></div>
		
	</div>
	<p class="detail">
	Latest addition : 24 August 2007
	</p>
	<div class="contentgbr"></div><div class="contentgbl"></div>
</div>

<div style="clear:both;margin:0;padding:0"></div>
</div><!-- On ferme le Div Content  -->

<!-- Footer -->
<div id="footer">
<a href="#header" title="Go to the top">Top</a> | 
<a href="http://geo-vci/ifp_multilingue" title="Home page">Home</a> | 

	
	<a href="-The-Institute-.html" title="Presentation" >The Institute</a> | 
	
	<a href="-Research-.html" title="Departments & Axes" >Research</a> | 
	
	<a href="-Resources-.html" title="Presentation" >Resources</a> | 
	
	<a href="-News-.html" title="Scientific News" >News</a> | 
	
	<a href="-Practical-Information-.html" title="IFP" >Practical Information</a> | 
	

<a href="mailto:%" title="Contact">Contact</a> | 
<a href="legal.php3?lang=en" title="Legals" accesskey="8">Legals</a> | 
<a href="plan.php3?lang=en" title="Site Map" accesskey="3">Site Map</a> | 
<a href="accessibility.php3?lang=en" title="Accessibility policy">Accessibility policy</a>
</div>
<!-- /Footer --></div><!-- On ferme le Container pour centrage -->
<div style='position: absolute; background-image: url("spip_background.php3"); height: 1px; width: 1px;'></div>
</body>
</html>



Merci...
Re-Salut,

tu te sers de la pseudo-classe hover sur tes li mais IE6 ne la reconnaît que sur les liens (a:hover) Smiley sweatdrop .

A+
Re...

Merci Heyoan. J'ai effectué quelques modifications, surtout suivies d'après cet article : http://www.alistapart.com/articles/horizdropdowns/
mais toujours pas d'affichage de sous-menu sous IE6...

Je me permets de vous refaire passer le code css et javascript.

CSS

/**00000000000000000000000000000000000
000		MENU		    00
00000000000000000000000000000000000**/

div#toolbox {
	float:right;
	margin: 3px 10px 0 0 !important;
	margin-top:7px;
}


div#menu {
	background: url(../images/menu_bg.gif) no-repeat center;
	border: 10px solid white;
	width: 796px;
	height: 27px;
	line-height: 27px;
	margin: 0;
	padding: 0;
}

/* because IE 5.x sucks */
div#\menu {
	width: 776px;
}

div#ulcontainer {
	margin: 0 0 0 30px;
	z-index: 1;
}


div#menu ul {
	margin: 0;
	padding: 0;
	display: inline;
}


div#menu li {
	margin: 0;
	padding: 0px;
	font-weight: bold;
	background: url(../images/li_menu.gif) repeat-y 0 0;
	display: block;
	float: left;
}


#menu li a {
	display:block;
	margin-left:2px; 
	color: #285A8A;
	padding: 0 10px;
}

div#menu li a:hover {
	color: white;
	background-color: #4B75A2;
}

a.menuon {
	color: white ! important;
	background-color: #4B75A2;
}


ul, li {
	list-style-type: none;
}

#ulcontainer .submenu {
	position: absolute;
	text-align: left;	
	height: 15px;
	list-style: none;	
	display: none;
	width: 145px;
}


.submenu a { 
	padding: 0px 2px;
}

#ulcontainer .submenu li
{
	float: none;
	height: 18px;
	width: 170px;	
	border-style: none;	
	border-bottom: #fff 1px solid;
	background-color: #ccc;
	padding-top: 0px;
	padding-bottom: 3px;
	vertical-align: middle;
}

#ulcontainer .submenu a:link,

#ulcontainer .submenu a:visited {
	border-left: solid 1px;
	display: block;
	font-size: 11px;
	padding-bottom: 3px;
	border-color: transparent;		
	height: 18px;
	}

/*#ulcontainer li:hover > .submenu, #ulcontainer li.over > .submenu { 
	z-index: 110;
	display: block;
	height: 18px;
} */

#ulcontainer ul li:hover > .submenu, #ulcontainer ul li.over ul{
	display: block;
	z-index: 500;
}

html ul.submenu li a { height: 1%; }

#ulcontainer .submenu a:hover {
	color: #e88f1d !important;
	font-size: 11px;
	background-color: #e6e6e6;
	padding: #e6e6e6;
	height: 18px;
	display: block;
}

.submenu_on a:hover{
	display:block;
}

.submenu_off a:hover {
	display:none;	
}


javascript

function DisplaySSmenu(id) {
	var tab= new Array(0, 1, 2, 3, 4, 5, 6, 999);
	for(var i=0; i<tab.length ; i++) {
		if(tab[i]==id) 	document.getElementById('ssmenu'+tab[i]).style.display="block";
			else document.getElementById('ssmenu'+ tab[i]).style.display="none";
		}
}

function searchInit() {
	var  input=document.getElementById('formulaire_recherche').value;
	if(input== 'entrer un terme' || input=='enter term') document.getElementById('formulaire_recherche').value='';
}

function popupBlank(url,PopName, width_, height_, scroll_) { 
	var proprietes;
	if (pop) {
	pop.window.close();
	}
	if(!scroll_) scroll_ = 'no';
	var top= 0
	var left= 0;
	
	if(width_=='' || height_=='') {
		width_=screen.width;
		height_=screen.height;
		proprietes = "toolbar=yes, location=yes, directories=yes, scrollbars=yes, resizable=yes, status=yes, menubar=yes, width="+width_+", height="+height_+",  left="+left+",top="+top+"";
	} else {
		if(width_ >  screen.width) {
			width_= screen.width;
			height_=screen.height;
			scroll_ = 'yes';
		} else {
		proprietes = "toolbar=no, location=no, directories=no, scrollbars="+scroll_+", resizable=yes, status=no, menubar=no, width="+width_+", height="+height_+",  left="+left+",top="+top+""
		}
	}
	var pop=window.open(url,PopName,proprietes);
	pop.focus();
}

function displayImage(url,PopName, width_, height_) { 
	//var top= screen.height-(screen.height/1.3);
	//var left=screen.width-(screen.width/1.3);
	var top=0;
	var left=0;
	pop = window.open(url, PopName, "toolbar=no, location=no, directories=no, scrollbars=no, resizable=no, status=no, menubar=no, width="+width_+", height="+height_+",  left="+left+",top="+top+"");
	pop.document.write("<html>");
	pop.document.write("<head><title>IFP"+PopName+"</title></head>");
	pop.document.write("<body style='margin:0;padding:0' background='"+url+"' onblur='top.close()'>" );
	pop.document.write("</body></html>");
	pop.document.close();

}

function showPrintButton() {
	document.write ("<div id=\"printmap\">");
	document.write ("<a href=\"javascript:self.print();\" title=\"Print this page\"><img src=\"ifp2005blue/images/print.png\" alt=\"Print this page\"></a>");
	document.write ("</div>");
}


startList = function() {
if (document.all&&document.getElementById) {
	navRoot = document.getElementById("nav");
	for (i=0; i<navRoot.childNodes.length; i++) {
		node = navRoot.childNodes[i];
	if (node.nodeName=="LI") {
		node.onmouseover=function() {	
		this.className+=" over";
	  } // onmouseover end 
	  node.onmouseout=function() {
	  this.className=this.className.replace(" over", "");
	  }// onmouserout end 
   } // end of if 
  } // end of for
 } // end of if document.all
}
window.onload=startList;

//navHover = function() {
//	var lis = document .getElementById("navmenu") .getElementsByTagName("LI");
//	for (var i=0; i<lis.lenght; i++) {
//		lis.onmouseover=function(){
//			this.className+="iehover";
//		}
//		lis[i].onmouseout=function() {
//			this.className=this.className.replace(new RegExp("iehover\\b", "");
//		}
//	}
//}
//if (window.attachEvent) window.attachEvent("onload", navHover);


J'avoue bloquer complètement après avoir tatonné un bon moment, peut-être verrez-vous plus directement le problème...

Pascal[/i][/i][/i][/i][/i]
Modifié par Morfeo (28 Aug 2007 - 07:55)