Problème avec mon site internet
Forum Programmation : Problème avec mon site internet
Bonjour tout le monde, j'ai donc un problème avec mon site internet et plus particulièrement avec mon menu.
J'ai le logiciel "magic menu" et c'est avec lui que j'ai créé tout les menu qui sont dans mon site.
Avant de mettre toutes mes pages html et mes fichier .js sur mon serveur ftp j'ai bien verifier tout les liens et ils marchent tous, mais le problème c'est que quand je met mes fichier sur mon site ftp quelques liens ne marche plus (azlors qu'ils marchent sut mon ordi) et je n'ais oublié aucun fichier a mettre sur mon serveur ftp.
D'ou cela peut t-il venir ???
Au plaisir les amis.
A+
montre nous ton code, on lit pas encore dans le mare de café pour deviner la source des problèmes ! ;-)
Mais sa ne peut pas venir du code puisque sur mon ordinateur dans mon fichier ou il y a toutes les pages et tout ce qui faut qur mon site tout mes liens marche c'est seulement quand je les met sur internet qu'ils y a quelques un des lien vers des cours ou des méthodes (c'est un site de philo) qui ne marche pas ALORS QU'ILS MARCHE TRES BIEN SUR MON ORDI...
Tu comprend ??
Je ne sai pa ce que tu a fai mais si j'etai toi pour le lien je mettrai l'add complete de la page "http://www.monsite.com/mapage1" dans un cas comme ca la page ne risk de ne pa marche en local mais en resau oui
SI ca marche pa affiche le code source de ton menu c la meuilleur chose a faire
Salut en local les liens ne sont pas sensibles a la casse alors que en ligne ils le sont !!!
Je comprend pas trop ce que vous me dite la...
Parce que la syntaxe pour les liens dans mes menu sont ttes les mêmes (mise a part la page a acceder) donc je vois pas pourquoi certain marche et d'autre pas!!En plus je les ais tous verifié...
T'as pas besoin de nous comprendre.. met nous simplement tout ton code comme demandé precedemment et ne dis pas non ca vient surement pas du code. File simplement le code merci
Je sais pas pourquoi, je vois gros comme une maison un code avec un truc du style :
<a href="file:///C
Documents%20and%20Settings/Propri%E9taire/Bureau/mon_site/index.php">
ton hébergeur n'utilise surement pas les même logiciels pour lire tes pages que toi sur ton pc. Il se peut donc que ton pc ne soit pas aussi pointilleu au niveau des règles de programmation que ton hébergeur. A ce moment la une erreur de programmation que ton pc laisserai passer (donc tes liens marcheraient) ne serait peut être pas laissée passé par ton hébergeur (donc tes liens ne fonctionnent pu).
compri ?
c'est pour ca qu'il nous faudrait ton code pour qu'on puisse te dire si on voit une erreur ou pas...
| Citation :
|
On n'a tous été débutant.
Il suffira seulement de remplacé les lien par /lapage.html
Voici le CODE HTML de ma page :
<html>
<head>
<title>page cours de philosophie</title>
<META NAME="keywords" CONTENT="philosophie,figure,philosophiques,cours,de,philosophie,socrate,platon,aristote,descartes,kant,conscience,l'inconscient,maathématiques,logique,la liberté,la justice,les passions,autrui,le temps,l'histoire,le langage,théorie et expérience,théorie,expérience,la vérité,connaissance,vivant,l'art">
<META NAME="description" CONTENT="site de philosophie avec des cours, les notions philosophiques les plus importantes et les figures philosophiques importantes.">
<META NAME="author" CONTENT="Perachon Luc">
<META NAME="Generator" CONTENT="note pad 2">
<META NAME="Distribution" CONTENT="Global">
<META NAME="Rating" CONTENT="14 years">
<META HTTP-EQUIV="Content-language" CONTENT="fr">
<META HTTP-EQUIV="Reply-to" CONTENT="ptitfu@tiscali.fr">
<SCRIPT language="javascript" src="magicmenucours.js"></SCRIPT>
<!-- DEBUT DU SCRIPT -->
<SCRIPT LANGUAGE="JavaScript">
/*Script téléchargé sur EasyScript (www.easy-script.com)*/
nav = navigator.appName.substring(0,3);
ver = navigator.appVersion.substring(0,1)
function addFav()
{
if (nav == "Mic" && ver >= 4)
{
url_site="http://luc.perachon.chez-alice.fr";
titre_site = "La chambre du philosophe";
document.write('<A HREF="#" onClick="window.external.AddFavorite(url_site, titre_site);return(false);"><b><font color="white"><font size=+2>Clicer ici pour ajouter aux favoris !!</font></b></A>
')
}
else
{
document.write('Faites CTRL+D pour ajouter ce site à vos favoris!')
}
}
</SCRIPT>
<!-- FIN DU SCRIPT -->
</head>
<SCRIPT language="javascript">AFF()</SCRIPT>
<body background="bizar.jpg">
<table border=5 cellspacing=5 cellpadding=3 bgcolor="red" height="75" width="432" align="left">
<tr>
<td></td>
</tr>
</table>
<p>
<p>
<p>
<pre>
<a href="http://forum.lixium.fr/cgi-bin/liste.eur?lomdefer"><b><font size=+8><center><font color="yellow">Mon FORUM DE PHILOSOPHIE !!</font></b></h1><a href="http://forum.lixium.fr/cgi-bin/liste.eur?lomdefer"><b><h1><center><font color="yellow"><font size=+8>C'EST ICI !!</font></b></h1><p></a></a>
</pre>
<p>
<!-- DEBUT DU SCRIPT -->
<SCRIPT LANGUAGE="JavaScript">
addFav();
</SCRIPT>
<!-- FIN DU SCRIPT -->
<pre>
<embed autostart="true" align="center" loop="false" name="chopin" src="papillon.mp3"></embed>
</pre><p>
</BODY>
</HTML>
Voici le code de mon menu :
//Magic Menu V2.1.1 - http://www.ToutJavaScript.com/magicmenu
var main=""; function CREERMAGIC() {
main=new CreerMain(25,27,40);
m1=new CreerMenu("m1",0,"" );main.Add("Figures Philosophiques",100,"m1","" );m1.add("Accueil figures philosophiques","page acceuil figures philosophiques.html","","" );m1.add("Socrate","socratefig.html","","" );m1.add("Platon","platonfig.html","","" );m1.add("Aristote","aristotefig.html","","" );m1.add("Descartes","descartesfig.html","","" );m1.add("Kant","kantfig.html","","" );m1.add("Spinoza","spinozafig.html","","" );m2=new CreerMenu("m2",0,"" );main.Add("Cours de Philosophie",100,"m2","" );m2.add("Tous les cours ici","page acceuil cours.html","","" );m3=new CreerMenu("m3",0,"" );main.Add("Espace commentaires",100,"m3","" );m3.add("Envoyé moi un com !!","commentaire.html","","" );m4=new CreerMenu("m4",0,"" );main.Add("Méthode à la dissertation",100,"m4","" );m4.add("La dissertation philosophique","Méthode.html","","" );m4.add("Commentaire de texte","méthode commentaire.html","","" );} CREERMAGIC();var font="Comic Sans MS";var colBarre="teal";var colFond="red";var colContour="blue";var colOver="yellow";var colTextOff="white"; var colTextOn="navy";var cssTexte=";font-weight:bold;color:white;font-family:Comic Sans MS;font-size:14px";var hauteur=40;var nivmax=4;var delai=250;var isout=0;
function CreerMain(X,Y,haut,colFOn,colFOff,colTOn,colTOff) {this.nb=0;this.X=X;this.Y=Y;this.haut=haut;this.Add=AddMain;this.Print=PrintMain;}
function AddMain(txt,larg,mnu,url,target) {var m=new Object; m.txt=txt;m.larg=larg,m.mnu=mnu,m.url=url;m.target=target;this.nb++;this[this.nb]=m;if(mnu!=''){eval(mnu+'.parent="'+txt+'"')};}
function PrintMain() {
X=this.X; Y=this.Y; A="";
for (var i=1;i<=this.nb;i++) {
if (this[i].mnu=="" ){this[i].mnu='0';}
if ((document.all)||(window.sidebar)) {
var clic=""; var style=""; if(this[i].url!="" ) {style="cursor:hand;"; clic=" onclick='window.location=\""+this[i].url+"\"'";}
A+="<DIV id='main"+i+"' style='position:absolute;left:"+X+";top:"+Y+";"+style+"width:"+this[i].larg+";height:"+this.haut+";background-color:"+colBarre+";"+cssTexte+";text-align:center' onmouseover='start("+i+","+this[i].mnu+","+X+","+(Y+this.haut+1)+" )'"+clic+">"+this[i].txt+"</DIV>";
}
if (document.layers) {
alert("Version de démo non compatible avec Netscape" );
}
X+=this[i].larg+1;
}
document.write(A);
}
function CreerMenu(nom,niv,target) {this.nb=0; this.X=0;this.Y=0; this.width=1; this.niv=niv; this.parent=""; this.ON=-1;this.nom=nom;this.target=""; if ((target!="" )&&(target!=null)) this.target=target;this.add=Add;this.aff=Aff;}
function Add(lib,lnk,mnu,target) {var rub = new Object; rub.lib=lib; rub.target=target; rub.lnk=""; if ((lnk!="" )&&(lnk!=null)) rub.lnk=lnk; rub.mnu=""; if ((mnu!="" )&&(mnu!=null)) {rub.mnu=mnu; mnu.parent=this} this[this.nb]=rub; this.nb++;}
function start(i,mnu,x,y) {
isout=1;hideall(i);isout=0
if (mnu!=0){mnu.aff(x,y)};
BGCalque("main"+i,colOver); FontCalque("main"+i,colTextOn); SizeCalque("fond",mmgetlarg()-x+20);
MoveCalque("fond",x-50,y+1);
ShowCalque("fond" );
return false;
}
function onfond() {
isout=1;
setTimeout("hideall()",delai);
}
function hideall(i) {
if (isout==1) {
for (var i=0;i<nivmax;i++) {HideCalque("niv"+i); HideCalque("fond" );}
for (var i=1;i<=main.nb;i++) {BGCalque("main"+i,colBarre); FontCalque("main"+i,colTextOff);}
}
}
function hide(mnu) {
if (mnu.ON>-1) {
if (mnu[mnu.ON].mnu!="" ) {
var nom="niv"+mnu[mnu.ON].mnu.niv;
HideCalque(nom);
hide(mnu[mnu.ON].mnu);
}
}
mnu.ON=-1;
}
function over(mnu,i) {
var nom="niv"+mnu.niv+"n"+i;
var nomtd=nom+"td";
isout=0;
BGCalque(nom,colOver);
FontCalque(nomtd,colTextOn);
}
function out(mnu,i) {
var nom="niv"+mnu.niv+"n"+i; var nomtd=nom+"td";
if (mnu[i].lib!="-" ) {
BGCalque(nom,colFond);
FontCalque(nomtd,colTextOff)
}
}
function clear(mnu) {
for (var j=0;j<mnu.nb;j++) {
out(mnu,j);
hide(mnu);
}
}
function mmover(mnu,i) {
clear(mnu);
over(mnu,i);
mnu.ON=i;
if (mnu[i].mnu!="" ) {
mnu[i].mnu.aff();
}
}
function mmclick(mnu) {
lnk=mnu[mnu.ON].lnk;
if (lnk!="" ) {
if (mnu[mnu.ON].target=="_blank" ) {window.open(lnk)}
else {
if (mnu[mnu.ON].target=="" ) {window.location=lnk;}
else {parent.frames[mnu[mnu.ON].target].location.href=lnk;}
}
}
}
function mmgetlarg() {if (document.layers){return parseInt(document.width)} else {return parseInt(document.body.offsetWidth)}}
function AFF() {
var n=new Image; n.src="fleche.gif";var m=new Image; m.src="vide.gif"; if ((document.all)||(window.sidebar)) {
var A="<DIV id='fond' style='position:absolute;top:10;left:100;width:500;height:400;visibility:hidden;font-family:"+font+"' onmouseover='onfond()'></DIV>";A+="<DIV id='niv0' style='position:absolute;top:10;left:100;visibility:visible;font-family:"+font+"'></DIV>";A+="<DIV id='niv1' style='position:absolute;top:10;left:100;visibility:visible;font-family:"+font+"'></DIV>";A+="<DIV id='niv2' style='position:absolute;top:10;left:100;visibility:visible;font-family:"+font+"'></DIV>";A+="<DIV id='niv3' style='position:absolute;top:10;left:100;visibility:visible;font-family:"+font+"'></DIV>";} document.write(A);main.Print();
}
function Aff(x,y) {
var nom=this.nom; var niv="niv"+this.niv;
if (this.niv==0) {X=x;Y=y;}
else {X=this.parent.X+this.parent.width-7;Y=this.parent.Y+(hauteur+4)*this.parent.ON}if ((document.all)||(window.sidebar)) {
var A=""
A+="<TABLE border=0 cellpadding=0 cellspacing=0><TR><TD>"
A+="<TABLE border=0 cellpadding=0 cellspacing=0 style='border-color:"+colContour+";border-style:solid;border-width:1px'>";
for (var i=0;i<this.nb;i++) {
if (this[i].lib=="-" ) {
A+="<TR><TD style='background-color:"+colFond+";font-size:10px;border-style:none;margin:0px;height:"+(hauteur-2)+"px' colspan=2><DIV style='background-color:"+colFond+";height:"+(hauteur+2)+"px'><HR noshade style='color:"+colContour+";height:1px'></DIV></TD></TR>";
} else {
var img="vide.gif";if (this[i].mnu!="" ) { img="fleche.gif"}
A+="<TR><TD style='cssTexte;border-style:none;margin:0px'><DIV id='"+niv+"n"+i+"' style='cursor:hand;background-color:"+colFond+cssTexte+"' onmouseover='mmover("+this.nom+","+i+" )' onClick='mmclick("+this.nom+" )'><TABLE border=0 width=100% cellspacing=0><TR><TD style='font-size:12px;padding-top:3px;padding-bottom:3px;padding-left:3px;'><DIV id='"+niv+"n"+i+"td' style='"+cssTexte+"'>"+this[i].lib+"</DIV></TD><TD width=10 align=right><IMG src='"+img+"' height='"+hauteur+"' width='"+hauteur+"'></TD></TR></TABLE></DIV></TD></TR>";
}
}
A+="</TABLE>"
A+="</TD><TD width=3 bgcolor=blue style='filter:alpha(opacity=30)'><IMG src='fleche.gif' width=2></TD><TD width=2 bgcolor=blue style='filter:alpha(opacity=15)'><IMG src='fleche.gif' width=2></TD></TR>";
A+="<TR><TD height=3 colspan=2 bgcolor=blue style='filter:alpha(opacity=30)'><IMG src='fleche.gif' height=3></TD></TR><TR><TD height=2 colspan=2 bgcolor=blue style='filter:alpha(opacity=15)'><IMG src='fleche.gif' height=2></TD></TR></TABLE>";
}else{
var A="<table border=0 cellspacing=0 cellpadding=1><tr><td bgcolor="+colContour+">";
A+="<TABLE border=0 cellpadding=0 cellspacing=0 bgcolor="+colFond+" width=100%>";
for (var i=0;i<this.nb;i++) {
if (this[i].lib=="-" ) {
A+="<TR><TD><HR width=99% height=1%></TD></TR>";
} else {
var img="vide.gif";if (this[i].mnu!="" ) { img="fleche.gif"}
A+="<TR><TD><TABLE border=0 width=100% cellspacing=0><TR><TD><A href='javascript:mmclick("+this.nom+" )' onmouseover='mmover("+this.nom+","+i+" )'><SPAN style='background-color:"+colFond+cssTexte+"'>"+this[i].lib+"</SPAN></A></TD><TD width=10 align=right><IMG src='"+img+"' height="+hauteur+" width="+hauteur+"></TD></TR></TABLE></TD></TR>";
}
}
A+="</TABLE></TD</TR></TABLE>"
}
if (document.all) {document.all[niv].innerHTML=A+" ";document.all[niv].style.top=Y;document.all[niv].style.left=X;document.all[niv].style.visibility="visible";this.X=X;this.Y=Y;this.width=document.all[niv].clientWidth;}
if (window.sidebar) {document.getElementById(niv).innerHTML=A;document.getElementById(niv).style.top=Y;document.getElementById(niv).style.left=X;document.getElementById(niv).style.visibility="visible";this.X=X;this.Y=Y;this.width=document.getElementById(niv).offsetWidth;}
if (document.layers) {document.layers[niv].left=X;document.layers[niv].top=Y;document.layers[niv].document.write(A);document.layers[niv].document.close();document.layers[niv].visibility="show";this.X=X;this.Y=Y;this.width=document.layers[niv].clip.width;}}
function HideCalque(nom) {
if (document.all) {document.all[nom].style.visibility="hidden";}
if (window.sidebar) {document.getElementById(nom).style.visibility="hidden";}
if (document.layers) {document.layers[nom].visibility="hide";}
}
function ShowCalque(nom) {
if (document.all) {document.all[nom].style.visibility="visible";}
if (window.sidebar) {document.getElementById(nom).style.visibility="visible";}
if (document.layers) {document.layers[nom].visibility="show";}
}
function BGCalque(nom,BG) {
if (document.all) {document.all[nom].style.backgroundColor=BG;}
if (window.sidebar) {document.getElementById(nom).style.backgroundColor=BG;}
}
function FontCalque(nom,Font) {
if (document.all) {document.all[nom].style.color=Font;}
if (window.sidebar) {document.getElementById(nom).style.color=Font;}
}
function MoveCalque(nom,X,Y) {
if (document.all) {document.all[nom].style.top=Y;document.all[nom].style.left=X;}
if (window.sidebar) {document.getElementById(nom).style.top=Y;document.getElementById(nom).style.left=X;}
if (document.layers) {document.layers[nom].top=Y;document.layers[nom].left=X;}
}
function GetLeft(nom) {
if (document.all) {return document.all[nom].style.left;}
if (window.sidebar) {return document.getElementById(nom).style.left}
if (document.layers) {return document.layers[nom].left;}
}
function SizeCalque(nom,larg) {
if (document.all) {document.all[nom].style.width=larg;}
if (window.sidebar) {document.getElementById(nom).style.width=larg;}
if (document.layers) {document.layers[nom].width=larg;}
}
// VERSION
Voila j'ai tout mis.
A+
Salut c est quel liens en particulier qui marche pas parce que la
| Citation :
|
déja un lien imbriqué dans un lien c'est moyen m enfin bon
C'est bon j'ai trouver mon probleme, c'est qu'n fait il fallait que j'enlève les espaces et les accent sur le nom de mes pages, le serveur accepte pas.
Voila
A+
Mon site : Mon site de philosophie
Si il accepte mais il faut savoir les encoder genre un espace s'ecrit %20 !!
A je savais pas, tu as pas un site ou je pourrais trouver ces syntaxes ??
Oui regarde ici
sinon il y a des fonctions php qui encode ca
Il y a 698 utilisateurs connus et inconnus. Pour voir la liste des connectés connus, cliquez ici.
