To tell the truth, I don't like at all the way the "Links Block" scrolls. Dunno how is it in IE, but in FFox, it doesn't scroll to the top of the block and when you put the mouse over and move it way up, the scroll doesn't stop... So I've been investigating and have modified the block to include a javascript function to control the scrolling function...
---Open templates/xxx/blocks/links_block.tpl---
---SEARCH---
---AFTER ADD---
- <script type="text/javascript">
- /***********************************************
- * Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
- * This notice MUST stay intact for legal use
- * Visit http://www.dynamicdrive.com/ for this script and 100s more.
- ***********************************************/
- var delayb4scrollx=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
- var marqueespeedx=1 //Specify marquee scroll speed (larger is faster 1-10)
- var pauseitx=1 //Pause marquee onMousever (0=no. 1=yes)?
- ////NO NEED TO EDIT BELOW THIS LINE////////////
- var copyspeedx=marqueespeedx
- var pausespeedx=(pauseitx==0)? copyspeedx: 0
- var actualheightx=''
- function scrollmarqueex(){
- if (parseInt(cross_marqueex.style.top)>(actualheightx*(-1)+8))
- cross_marqueex.style.top=parseInt(cross_marqueex.style.top)-copyspeedx+"px"
- else
- cross_marqueex.style.top=parseInt(marqueeheightx)+8+"px"
- }
- function initializemarqueex(){
- cross_marqueex=document.getElementById("vmarqueex")
- cross_marqueex.style.top=0
- marqueeheightx=document.getElementById("marqueecontainerx").offsetHeight
- actualheightx=cross_marqueex.offsetHeight
- if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
- cross_marqueex.style.height=marqueeheightx+"px"
- cross_marqueex.style.overflow="scroll"
- return
- }
- setTimeout('lefttime=setInterval("scrollmarqueex()",30)', delayb4scrollx)
- }
- if (window.addEventListener)
- window.addEventListener("load", initializemarqueex, false)
- else if (window.attachEvent)
- window.attachEvent("onload", initializemarqueex)
- else if (document.getElementById)
- window.onload=initializemarqueex
- </script>
---SEARCH---
- <marquee id="links_block" behavior="scroll" direction="up" scrolldelay="100" height="80" scrollamount="2" loop="true" onmouseover="this.stop()" onmouseout="this.start()">
- <div class="center-block-text">
- <div class="gen">
- <br />
- <!-- BEGIN links_row -->
- <a href="{static.links_row.LINK_HREF}" target="_blank" onmouseover="document.all.links_block.stop()" onmouseout="document.all.links_block.start()"><img src="{scroll.links_row.LINK_LOGO_SRC}" alt="{scroll.links_row.LINK_TITLE}" title="{scroll.links_row.LINK_TITLE}" width="{SITE_LOGO_WIDTH}" height="{SITE_LOGO_HEIGHT}" border="0" vspace="3" /></a><br /><br />
- <!-- END links_row -->
- <br />
- </div>
- </div>
- </marquee>
---REPLACE WITH---
- <div id="marqueecontainerx" style="position: relative; width: 95%; height: 100%; overflow: hidden; border: 0px; padding: 2px; padding-left: 4px;" onmouseover="copyspeedx=pausespeedx" onmouseout="copyspeedx=marqueespeedx">
- <div id="vmarqueex" style="position: absolute; width: 98%;">
- <div align="center">
- <div class="center-block-text">
- <div class="gen">
- <br />
- <!-- BEGIN links_row -->
- <a href="{static.links_row.LINK_HREF}" target="_blank"><img src="{scroll.links_row.LINK_LOGO_SRC}" alt="{scroll.links_row.LINK_TITLE}" title="{scroll.links_row.LINK_TITLE}" width="{SITE_LOGO_WIDTH}" height="{SITE_LOGO_HEIGHT}" border="0" vspace="3" /></a><br /><br />
- <!-- END links_row -->
- <br />
- </div>
- </div>
- </div>
- </div>
- </div>
You can see how it works in my test site and in my live site