ICI header("Location: http://www.mytesting.fr ");

DECLENCHER UN LIEN VERS UN SITE OU UN ARTICLE AVEC UN BOUTON.

par André Marini 8 Mai 2015, 08:05 Liens

DECLENCHER UN LIEN VERS UN SITE OU UN ARTICLE AVEC UN BOUTON.

Voici une façon originale de créer un lien grâce à un simple bouton.

Dansd l'exemple ci-dessous, le bouton déclenche l'accès au blog "La pêche en Seine et Marne"

 

CODE 

 

<style type="text/css">#lien-bouton{ 
   color:grey; 
   font-family:verdana; 
   font-size:12px; 
   padding:5px 20px; 
   text-decoration:none; 
   background-image:url(); 
   background-repeat:repaet-x; 
   background-position:top; 
   border:solid 2px grey; 
   border-radius:5px; 

#lien-bouton:hover{ 
   background-position:bottom; 
   border:solid 1px black; 
   color:black; 
}
</style>
<p>
<a href="http://www.pecheurdumorin.fr" id="lien-bouton">Lien bouton</a></p>

 

RESULTAT

 

Lien bouton

commentaires

Haut de page