Add A Legal Notice To A Website Made Of Separate Pages
Solution 1:
Chris G had it right. Thanks Chris. My congratulations to you. I did not believe the answer I received so I dug more.
Yes, Chris, I mean the confidential information that you uncovered ;-) I positively hate robots and just mean to hide this address from their prying clutches.
There is a bug in your suggestion (I think), in that it kills the link to the mailer. Editing this slight bug is easy. Then, as a true unbeliever, I first replaced the /legalnotice.html by https://www.abeille-cyclotourisme.fr/legalnotice.html
The code is below
/* "Contactez nous"
Crée un message comportant l'adresse mail de l'abeille
et un texte dans le champ objet
*/// Définition d'une variable contenant le début du code HTMLvar liencontact="<a href='mailto:";
/* Ajout des différents éléments de l'adresse mail
dans la variable
*/
liencontact +="abeille-cyclotourisme";
liencontact +="@";
liencontact +="abeille-cyclotourisme.fr";
liencontact +="?subject=%5BAbeille%5D%20Demande%20d%27information'>";
// Affichage de la variable et du texte "contactez-nous"document.write("<a href='https://www.abeille-cyclotourisme.fr/legalnotice.html'>Fiche juridique</a> - "+liencontact+"Contactez-nous @<\/a>");
This code works allright, but in contains the website address, which is not what I want. Also, it is *not what Chris G has suggested. Then I tried (since Chris G suggested it):
/* "Contactez nous"
Crée un message comportant l'adresse mail de l'abeille
et un texte dans le champ objet
*/// Définition d'une variable contenant le début du code HTMLvar liencontact="<a href='mailto:";
/* Ajout des différents éléments de l'adresse mail
dans la variable
*/
liencontact +="abeille-cyclotourisme";
liencontact +="@";
liencontact +="abeille-cyclotourisme.fr";
liencontact +="?subject=%5BAbeille%5D%20Demande%20d%27information'>";
// Affichage de la variable et du texte "contactez-nous"document.write("<a href='/legalnotice.html'>Fiche juridique</a> - "+liencontact+"Contactez-nous @<\/a>");
That script does not work locally. The address /legalnotice.html does not go anywhere, locally. However, when uploaded on the server, it works like a miracle. The server is Dreamhost's Debian Linux server. Is that the reason it works on the server while it does not work locally ? TIA
Anyway, thanks Chris G. Your advice is a perfect solution to my question. It works !!! I just don't know why it works :-(
Post a Comment for "Add A Legal Notice To A Website Made Of Separate Pages"