Ver Mensaje Individual
  #4 (permalink)  
Antiguo 26/08/2003, 09:10
Avatar de RootK
RootK
Moderador
 
Fecha de Ingreso: febrero-2002
Ubicación: México D.F
Mensajes: 8.004
Antigüedad: 22 años, 3 meses
Puntos: 50
Hola.. aprovechando el link de mifune, encontré el código que creo que estás buscando.. solo haz copy and paste a lo siguiente:
así tal cual funciona

Código PHP:
<html>
<
body>
<!-- 
Start Dynamic scroller -->
<
table width="155" cellspacing="0" border="1" bgcolor="#E1F0F0" bordercolor="#008080" bordercolorlight="#FFFFFF">
        <
tr>
        <
td width="25%" align="center" valign="bottom">
        <
a href="Javascript:scrolldown()"><b><font face="Verdana" size="2">Down</font></b></a>
        </
td>
        <
td width="25%" align="center" valign="bottom">
        <
a href="Javascript:scrollup()"><b><font face="Verdana" size="2">Up</font></b></a>
        </
td>
        <
td width="25%" align="center" valign="bottom">
        <
a href="Javascript:stopall()"><b><font face="Verdana" size="2">Stop</font></b></a>
        </
td>
        <
td width="25%" align="center" valign="bottom">
        <
a href="Javascript:shifttotop()"><b><font face="Verdana" size="2">Top</font></b></a>
        </
td>
        </
tr>    
</
table>
<
script language="JavaScript1.2">
// Author: Ron Grafe [email][email protected][/email] [url]http://www.gdevresources.com/Pages/Scripts/Dynamicscroller/Dynamicscroller.htm[/url]
// Permission granted to SimplytheBest.net to feature script in its
// DHTML script collection at [url]http://simplythebest.net/info/dhtml_scripts.html[/url]
iens6=document.all||document.getElementById
ns4
=document.layers

<!-- Lower is faster -->
var 
scrollspeed 40

<!-- Container setup -->
if (
iens6){
document.write('<div id="container" style="position:relative;width:155;height:160px;overflow:hidden;border:1px ridge white">')
document.write('<div id="content" style="position:absolute;width:155;left:0;top:0">')
}
</script>
<ilayer name="nscontainer" width=155 height=160 clip="0,0,155,160">
<layer name="nscontent" width=155 height=160>

<!--INSERT CONTENT HERE-->
<b><font style="color: black" size="1" type="times" face="Arial"><br>
 </font><font type="times" size="2" style="color: black" face="Arial"> SimplytheBest.net</font></b><font type="times" size="2" style="color:black"><br><hr size="1" color="#008080">
</font>
<table><tr>
<td valign="top"><font face="Verdana" size="1" type="times" style="color: black">•</font></td><td><a href="http://simplythebest.net/shareware.html" onmouseover="stopall()"><font face="Verdana" size="1" type="times">Shareware
 & Freeware</font></a></td></tr>
<tr><td valign="top"><font face="Verdana" size="1" type="times" style="color: black">•</font></td><td><font face="Verdana" size="1" type="times"><a href="http://simplythebest.net/scripts/dhtml_scripts.html" onmouseover="stopall()">DHTML
  Scripts & Javascripts</a></font></td></tr>
<tr><td valign="top"><font face="Verdana" size="1" type="times" style="color: black">•</font></td><td><font face="Verdana" size="1" type="times"><a href="http://simplythebest.net/cgiscripts/cgiscripts.html" onmouseover="stopall()">CGI
  Scripts</a></font></td></tr>
 <tr>
  <td valign="top"><font face="Verdana" size="1" type="times" style="color: black">•</font></td><td><font face="Verdana" size="1" type="times"><a href="http://simplythebest.net/info/" onmouseover="stopall()">Information
   library</a></font></td>
 </tr>
 <tr>




  <td valign="top"><font face="Verdana" size="1" type="times" style="color: black">•</font></td><td><font face="Verdana" size="1" type="times"><a href="http://simplythebest.net/drivers/drivers.html" onmouseover="stopall()">Device
   drivers</a></font></td>
 </tr>
 <tr>
  <td valign="top"><font face="Verdana" size="1" type="times" style="color: black">•</font></td><td><font face="Verdana" size="1" type="times"><a href="http://simplythebest.net/fonts/" onmouseover="stopall()">Free
   Fonts</a></font></td>
 </tr>
 <tr>
  <td valign="top"><font face="Verdana" size="1" type="times" style="color: black">•</font></td><td><font face="Verdana" size="1" type="times"><a href="http://simplythebest.net/affiliates/" onmouseover="stopall()">Affiliate
   programs</a></font></td>
 </tr>
 <tr>
  <td valign="top"><font face="Verdana" size="1" type="times" style="color: black">•</font></td><td><font face="Verdana" size="1" type="times"><a href="http://simplythebest.net/hosting/" onmouseover="stopall()">Hosting
   providers</a></font></td>
 </tr>
 <tr>
  <td valign="top"><font face="Verdana" size="1" type="times" style="color: black">•</font></td><td><font face="Verdana" size="1" type="times"><a href="http://simplythebest.net/music/" onmouseover="stopall()">Music
   directory</a></font></td>
 </tr>
 <tr>
  <td valign="top"><font face="Verdana" size="1" type="times" style="color: black">•</font></td><td><font face="Verdana" size="1" type="times"><a href="http://simplythebest.net/shop/" onmouseover="stopall()">Shopping
   directory</a></font></td>
 </tr>
<tr><td valign="top"><font face="Verdana" size="1" type="times" style="color: black">•</font></td><td><font face="Verdana" size="1" type="times"><a href="http://simplythebest.net/search/search.html" onmouseover="stopall()">Metasearch</a></font></td></tr>
</table><font type="times" size="2" style="color:black"><br>
  <font face="Arial"><b>PlanMagic.com</b></font><br><hr size="1" color="#008080">
</font>
<table><tr>
<td valign="top"><font face="Verdana" size="1" type="times" style="color: black">•</font></td><td><font face="Verdana" size="1" type="times"><a href="http://planmagic.com/business_plan.html" onmouseover="stopall()">PlanMagic
 Business</a><br>
 professional business plan software</font></td></tr>
<tr><td valign="top"><font face="Verdana" size="1" type="times" style="color: black">•</font></td><td><font face="Verdana" size="1" type="times"><a href="http://planmagic.com/marketing_planning.html" onmouseover="stopall()">PlanMagic
  Marketing</a><br>
  professional marketing plan software</font></td></tr>
 <tr>
  <td valign="top"><font face="Verdana" size="1" type="times" style="color: black">•</font></td><td><font face="Verdana" size="1" type="times"><a href="http://planmagic.com/finance.html" onmouseover="stopall()">PlanMagic
   Finance Pro</a><br>
   financial calculations were never this easy</font></td>
 </tr>
 <tr>
  <td valign="top"><font face="Verdana" size="1" type="times" style="color: black">•</font></td><td><font face="Verdana" size="1" type="times"><a href="http://planmagic.com/webquest.html" onmouseover="stopall()">PlanMagic
   WebQuestPro</a><br>
   complete web marketing plan generator</font></td>
 </tr>
</table><font type="times" size="2" style="color:black"><br>
</font>
<!--END CONTENT-->
</layer></ilayer>

<script language="JavaScript1.2">
// Author: Ron Grafe [email][email protected][/email] [url]http://www.gdevresources.com/Pages/Scripts/Dynamicscroller/Dynamicscroller.htm[/url]
// Permission granted to SimplytheBest.net to feature script in its
// DHTML script collection at [url]http://simplythebest.net/info/dhtml_scripts.html[/url]
var step=1
if (iens6){
    document.write('</div></div>')
    var contentobj=document.getElementById? document.getElementById("content") : document.all.content
    var contentheight=contentobj.offsetHeight
    if (document.getElementById&&!document.all){
           step=5
    }
}
else if(ns4){
    var contentobj=document.nscontainer.document.nscontent
    var contentheight=contentobj.clip.height
}
<!-- scroll down function -->
function scrolldown() {
    if(window.scrolltimerup){
        clearTimeout(scrolltimerup)
    }
    if(iens6&&parseInt(contentobj.style.top)>=(contentheight*(-1)+100)){
        contentobj.style.top=parseInt(contentobj.style.top)-step
    }else if(ns4&&contentobj.top>=(contentheight*(-1)+100)){
        contentobj.top-=step
    }
    scrolltimerdown = setTimeout("scrolldown()",scrollspeed)
}
<!-- scroll up function -->
function scrollup() {
    if(window.scrolltimerdown){
        clearTimeout(scrolltimerdown)
    }
    if(iens6&&parseInt(contentobj.style.top)<=0){
        contentobj.style.top=parseInt(contentobj.style.top)+step
    }else if(ns4&&contentobj.top<=0){ 
        contentobj.top+=step
    }
    scrolltimerup = setTimeout("scrollup()",scrollspeed)    
}
<!-- function to stop all scroll timers -->
function stopall() {
    
if(window.scrolltimerup){
        clearTimeout(scrolltimerup)
    }
    if(window.scrolltimerdown){
        clearTimeout(scrolltimerdown)
    }
}
<!-- function that shifts the object to top -->
function shifttotop(){
    stopall()
    if (iens6) {
        contentobj.style.top=0
    }else{
        contentobj.top=0
    }
}

function getcontent_height(){
    if (iens6)
    contentheight=contentobj.offsetHeight
}
window.onload=getcontent_height

</script>
<!-- End of Dynamic scroller -->
</body>
</html> 
Saludos
__________________
Nadie roba nada ya que en la vida todo se paga . . .

Exentrit - Soluciones SharePoint & Net