Code Un site ou Page web roulante HoSaM 8:56 AM Code Un site ou Page web roulante <!-- DEUX ETAPES D'INSTALLER UNE PAGE ROULANTE: 1. Placer le code entre les balises <HEAD> du document<br /> 2. Placer le code 2 entre les balises <BODY> du document--><br /> <br /> <!-- ETAPE 1: INSEREZ LE CODE 1 ENTRE LES BALISES <HEAD>..</HEAD> --><br /> <br /> <HEAD><br /> <br /> <style type="text/css"> #item {position:absolute; visibility:hidden; left:0px} </style><br /> <br /> <SCRIPT LANGUAGE="JavaScript"> <!-- Ce script et d'autres sont sur le code java GRATUIT --> <!-- LE CODE JAVA - http://www.lecodejava.com --> <!-- Begin var isNS=(document.layers); var _all=(isNS)? '' : 'all.' ; var _style=(isNS)? '' : '.style' ; var _visible=(isNS)? 'show' : 'visible'; var w_x, w_y, item, okscroll=false, godown; function init(){ item=eval('document.'+_all+'item'+_style); getwindowsize(); item.visibility=_visible; scrollpage(); } function getwindowsize() { w_x=(isNS)? window.innerWidth-5 : document.body.clientWidth; w_y=(isNS)? window.innerHeight : document.body.clientHeight; (isNS)? item.clip.width=42: item.width=42; (isNS)? item.clip.height=20 : item.height=20; moveitem(); } function resizeNS() { setTimeout('document.location.reload()',400); } function moveitem() { if (isNS) { item.moveTo((pageXOffset+w_x-70),(w_y+pageYOffset-50)) }else{ item.pixelLeft=document.body.scrollLeft+w_x-70; item.pixelTop=w_y+document.body.scrollTop-50; } } window.onload=init; (isNS) ? window.onresize=resizeNS : window.onresize=getwindowsize ; function scrollpage() { status = ''; if (okscroll) { if (godown) { (isNS)? window.scrollBy(0,4) : window.scrollBy(0,4) ; } else { (isNS)? window.scrollBy(0,-4) : window.scrollBy(0,-4) ; } } moveitem(); setTimeout('scrollpage()', 40); } // End --> </script><br /> </HEAD><br /> <br /> <!-- ETAPE 2: INSEREZ LE CODE 2 ENTRE LES BALISES <BODY>..</BODY> --><br /> <br /> <BODY><br /> <br /> <div id="item"><a href="javascript:void(0)" onMouseover="okscroll=true; godown=true" onMouseout="okscroll=false"><img src="down.gif" border="0"></a><a href="javascript:void(0)" onMouseover="okscroll=true; godown=false" onMouseout="okscroll=false"><img src="up.gif" border="0"></a><br /> </div><br /> <br /> <!-- Script : 2.20 KB --><br /> ÔÇÑß ÇáãæÖæÚ: Codes Related Posts