Un lien avec un scrolling dans une boite

DEMONSTRATION


Code source entre <body> et </body>
top

<FORM NAME="webgraf">
<!-- Modifiez le SIZE="..." pour adapter la boite à votre texte,                Modifiez l'URL-->
<INPUT TYPE="text" NAME="panel" VALUE="" SIZE="15" onFocus="blur(); goTo('mailto:webmaster@webgraf.com');">
</FORM>
<SCRIPT LANGUAGE="JavaScript">
<!-- 
//Merci de ne pas effacer ces lignes
//D'autres script,applet,images sur webgraf.Com 
//Mathieu Gros, webmaster@webgraf.Com

var texte=" *** cliquez ici pour m'écrire ***"; //Le texte
var caract=50; //La largeur du scrolling
var trg="self"  //"top", "self", "blank", ou "nom du cadre"
var speed=200 //La vitesse du scrolling

function defil(){
document.webgraf.panel.value=texte.substring(0,caract);
texte+=texte.substring(0,1);
texte=texte.substring(1,texte.length);
setTimeout("defil()",speed);}
function goTo(URL) {
if (trg=="top") top.location.href=URL;
else if (trg=="self") self.location.href=URL;
else if (trg=="blank") window.open(URL);
else parent.frames[trg].location  = URL;}
defil(); 
// -->
</SCRIPT>
 
INFORMATIONS COMPLEMENTAIRES
top

ATTENTION Comment intégrer ce script dans votre page: Vous pouvez télécharger cette page au format zip :télécharger.








Un problème ou une critique : e-mail
Des ressources utiles et gratuites pour vos pages Web :
webgraf.com