Salut,
Je suis en train de modifier mon site internet, avec un script que j'ai écrit avec le programme Selteco Menu Maker 3.0 (voir ci-dessous). Mon pb est le suivant : je travaille la page avec FrontPage et HTML Editor et le résultat est le même. Mon script apparaît et fonctionne très bien sur une page d'Internet Explorer, mais les images n'apparaîssent pas. Et sur une page Nescape, les images appraissent, le script aussi, mais il ne fonctionne pas ! Ils s'agit d'un menu déroulant. Comment le faire fonctionner sous Nescape et faire apparaître les images sous IE ?
Merci
Atric
Comment modifier la version du navigateur et son nom (est-ce juste Nescape ?)
var bBrowserOK; bBrowserOK = 0;if(parseFloat(navigator.appVersion)>=4) if(navigator.appName == 'Microsoft Internet Explorer' bBrowserOK = 1;document.write('<STYLE>';document.write('a.MN22224036 {text-decoration:none; color:#095E2C; font-weight: 700; font-family: Verdana; font-size: 12px; font-style:normal;} ';
document.write('a.MN22224036:hover {text-decoration:none; color:#087F1C; }';
document.write('a.SMN22224036 {text-decoration:none; color:#D4EDCD; font-weight: 700; font-family: Verdana; font-size: 12px; font-style:normal;} ';
document.write('a.SMN22224036:hover {text-decoration:none; color:#937D00; }';
document.write('table.MT22224036 {background:#91E098; border:1 solid #064918; }';
document.write('td.MTD22224036 {padding-left:4; padding-right:4; background:#0F8E13; border:2 outset #035E15; }';
document.write('.MTI22224036 {color:#095E2C; font-weight: 700; font-family: Verdana; font-size: 12px; font-style:normal;}';
document.write('.MSI22224036 {color:#D4EDCD; font-weight: 700; font-family: Verdana; font-size: 12px; font-style:normal;}';
document.write('</STYLE>';
function OpenMenu(MenuId){ MenuId.style.visibility = 'visible'; }
function CloseMenu(MenuId){ MenuId.style.visibility = 'hidden';}
function HLT22224036(TDId,AId){ TDId.style.background = '#D8EFD2'; if(AId) AId.style.color = '#937D00';}
function UHLT22224036(TDId,AId){ TDId.style.background = '#0F8E13'; if(AId) AId.style.color = '#D4EDCD';}
function THLT22224036(TDId,AId){ TDId.style.background = '#D8EFD2'; if(AId) AId.style.color = '#087F1C';}
function TUHLT22224036(TDId,AId){ TDId.style.background = '#A7E5A8'; if(AId) AId.style.color = '#095E2C';}
function WSBH22224036(MenuId){
document.write('<span id=' + MenuId + ' STYLE="position:absolute; visibility:hidden; zorder:1; ">';
document.write(' <br>';
document.write('<table class="MT22224036" cellspacing=3 cellpadding=2 onMouseOut="CloseMenu(' + MenuId + ';" onMouseOver="OpenMenu(' + MenuId + ';">';}
function WSIH22224036(ItemID,ItemName,ItemURL,MenuID,ItemTitle,ItemTarget){
document.write('<tr><td id="X' + ItemID + '" class="MTD22224036" onMouseOver="HLT22224036(X' + ItemID + ',' + ItemID + ';" onMouseOut="UHLT22224036(X' + ItemID + ',' + ItemID + ';">';
document.write('<span NOWRAP><a href="' + ItemURL + '" title="' + ItemTitle + '" class="SMN22224036" target="' + ItemTarget + '" id="' + ItemID + '">' + ItemName + '</a></span></td></tr>';}
function WSFH22224036(ItemID,ItemFree){
document.write('<tr><td id="X' + ItemID + '" class="MTD22224036" onMouseOver="HLT22224036(X' + ItemID + ',' + ItemID + ';" onMouseOut="UHLT22224036(X' + ItemID + ',' + ItemID + ';">';
document.write('<span id="' + ItemID + '" class="MSI22224036" >' + ItemFree + '</span></td></tr>';}
function CloseSubBoxH(){document.write('</table></span>';}
function WTIH22224036(MenuID,MenuName,MenuURL,MenuTitle,MenuTarget){
document.write('<span STYLE="position:relative;" class="MTI22224036" onMouseOver="OpenMenu(' + MenuID + ';" onMouseOut="CloseMenu(' + MenuID + ';"><a href="' + MenuURL + '" title="' + MenuTitle + '" target="' + MenuTarget + '" class="MN22224036"> ' + MenuName + '</a></span>';}
function WTFH22224036(MenuID,MenuFree){
document.write('<span STYLE="position:relative;" class="MTI22224036" onMouseOver="OpenMenu(' + MenuID + ';" onMouseOut="CloseMenu(' + MenuID + ';"> ' + MenuFree + ' </span>';}
function WTHH22224036(MenuName,MenuURL,MenuTitle,MenuTarget){
document.write('<span STYLE="position:relative;" class="MTI22224036" ><a href="' + MenuURL + '" title="' + MenuTitle + '" target="' + MenuTarget + '" class="MN22224036"> ' + MenuName + '</a></span>';}
function WTHFH22224036(MenuName,MenuFree){
document.write('<span STYLE="position:relative;" class="MTI22224036" > ' + MenuFree + '</span>';}
document.write('<TABLE CELLSPACING=0 CELLPADDING=5 WIDTH="100%" BGCOLOR=#A7E5A8 STYLE="border:1 solid #000000; "><TR VALIGN=MIDDLE><TD ALIGN=LEFT>';
document.write('<DIV NOWRAP STYLE="visibility:visible; background-color:#A7E5A8; font-weight: 700; font-family: Verdana; font-size:12px; ">';
WTHH22224036('Home','','','_self';
document.write(' <font color=#FF6600>|</font>';
if(bBrowserOK==1) {
WSBH22224036('MI22238473';
WSIH22224036('MI22237930','Gabriel','','MI22238473','','_self';
if(MI22237930) MI22237930.style.color = '#D4EDCD';WSIH22224036('MI22255812','Jonathan','','MI22238473','','_self';
if(MI22255812) MI22255812.style.color = '#D4EDCD';WSIH22224036('MI22248623','Nous 4','','MI22238473','','_self';
if(MI22248623) MI22248623.style.color = '#D4EDCD';WSIH22224036('MI22250678','Les Neserke\'s','','MI22238473','','_self';
if(MI22250678) MI22250678.style.color = '#D4EDCD';WSIH22224036('MI22250685','Les Teulière\'s','','MI22238473','','_self';
if(MI22250685) MI22250685.style.color = '#D4EDCD';WSIH22224036('MI22237702','Photos du mariage','','MI22238473','','_self';
if(MI22237702) MI22237702.style.color = '#D4EDCD';WSIH22224036('MI22245628','Nos vidéos','','MI22238473','','_self';
if(MI22245628) MI22245628.style.color = '#D4EDCD';CloseSubBoxH();
WTIH22224036('MI22238473','Photos de famille','','','_self';
}
else
WTHH22224036('Photos de famille','','','_self';
document.write(' <font color=#FF6600>|</font>';
if(bBrowserOK==1) {
WSBH22224036('MI22242010';
WSIH22224036('MI22259568','Achats informatique','','MI22242010','','_self';
if(MI22259568) MI22259568.style.color = '#D4EDCD';WSIH22224036('MI22259662','Forums informatique','','MI22242010','','_self');
if(MI22259662) MI22259662.style.color = '#D4EDCD';WSIH22224036('MI22255174','Moteurs de recherche','','MI22242010','','_self');
if(MI22255174) MI22255174.style.color = '#D4EDCD';WSIH22224036('MI22257235','Revues','','MI22242010','','_self');
if(MI22257235) MI22257235.style.color = '#D4EDCD';WSIH22224036('MI22238527','Téléchargement','','MI22242010','','_self');
if(MI22238527) MI22238527.style.color = '#D4EDCD';CloseSubBoxH();
WTIH22224036('MI22242010','Liens','','','_self');
}
else
WTHH22224036('Liens','','','_self');
document.write(' <font color=#FF6600>|</font>');
if(bBrowserOK==1) {
WSBH22224036('MI22255348');
WSIH22224036('MI22238041','Images','','MI22255348','','_self');
if(MI22238041) MI22238041.style.color = '#D4EDCD';WSIH22224036('MI22227663','Programmes','','MI22255348','','_self');
if(MI22227663) MI22227663.style.color = '#D4EDCD';WSIH22224036('MI22248173','Musique','','MI22255348','','_self');
if(MI22248173) MI22248173.style.color = '#D4EDCD';WSIH22224036('MI22233540','Fonds d\'écran','','MI22255348','','_self');
if(MI22233540) MI22233540.style.color = '#D4EDCD';WSIH22224036('MI22235036','Economiseurs d\'écran','','MI22255348','','_self');
if(MI22235036) MI22235036.style.color = '#D4EDCD';CloseSubBoxH();
WTIH22224036('MI22255348','Téléchargement','','','_self');
}
else
WTHH22224036('Téléchargement','','','_self');
document.write(' <font color=#FF6600>|</font>');
if(bBrowserOK==1) {
WSBH22224036('MI22239015');
WSIH22224036('MI22242496','Nos adresses e-mail','','MI22239015','','_self');
if(MI22242496) MI22242496.style.color = '#D4EDCD';CloseSubBoxH();
WTIH22224036('MI22239015','Contact','','','_self');
}
else
WTHH22224036('Contact','','','_self');
document.write('</DIV></TD>');
document.write('</TR></TABLE>');