Hi to all,
I have a question, how can I scroll some news (vertically) in a TEASER_EX rep-tag? should I use an external script? Can you please help me?
Athas
Scrolling News with Teaser_EX
Hello Athas
Here's a link where you will find a whole bunch of scripts:
http://www.dynamicdrive.com/dynamicindex2/
Here's the script I use: IFRAME Scroller).
"With the help of <IFRAME>, this scroller script uses an external HTML file as its content to scroll and display, making updating and adding rich HTML to the scroller a breeze. Works in both IE4+ and NS6+, degrading well with the rest (simply not appearing)."
I use in a WYSIWYG content on :
http://www.aetmis.gouv.qc.ca/site/index.php
(right column).
Hope that helps....
Cheers,
Here's a link where you will find a whole bunch of scripts:
http://www.dynamicdrive.com/dynamicindex2/
Here's the script I use: IFRAME Scroller).
"With the help of <IFRAME>, this scroller script uses an external HTML file as its content to scroll and display, making updating and adding rich HTML to the scroller a breeze. Works in both IE4+ and NS6+, degrading well with the rest (simply not appearing)."
I use in a WYSIWYG content on :
http://www.aetmis.gouv.qc.ca/site/index.php
(right column).
Code: Select all
<div onmouseout="scrollspeed=cache" style="left: 10px; width: 140px; position: absolute; top: 10px;" onmouseover="scrollspeed=0" id="datacontainer"><span class="v10tight"><!-- ADD YOUR SCROLLER CONTENT INSIDE HERE -->{SHOW_CONTENT:3943}<!-- END SCROLLER CONTENT --></span></div>
<script type="text/javascript" language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
var SymRealWinOpen = window.open;
function SymWinOpen(url, name, attributes)
{
return (new Object());
}
window.open = SymWinOpen;
//-->
</script>
<script type="text/javascript">
/***********************************************
* IFRAME Scroller script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
//Specify speed of scroll. Larger=faster (ie: 5)
var scrollspeed=cache=1
//Specify intial delay before scroller starts scrolling (in miliseconds):
var initialdelay=1500
function initializeScroller(){
dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer")
dataobj.style.top="5px"
setTimeout("getdataheight()", initialdelay)
}
function getdataheight(){
thelength=dataobj.offsetHeight
if (thelength==0)
setTimeout("getdataheight()",10)
else
scrollDiv()
}
function scrollDiv(){
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed+"px"
if (parseInt(dataobj.style.top)<thelength*(-1))
dataobj.style.top="150px"
setTimeout("scrollDiv()",40)
}
if (window.addEventListener)
window.addEventListener("load", initializeScroller, false)
else if (window.attachEvent)
window.attachEvent("onload", initializeScroller)
else
window.onload=initializeScroller
</script>
<script type="text/javascript" language="JavaScript">
<!--
var SymRealOnLoad;
var SymRealOnUnload;
function SymOnUnload()
{
window.open = SymWinOpen;
if(SymRealOnUnload != null)
SymRealOnUnload();
}
function SymOnLoad()
{
if(SymRealOnLoad != null)
SymRealOnLoad();
window.open = SymRealWinOpen;
SymRealOnUnload = window.onunload;
window.onunload = SymOnUnload;
}
SymRealOnLoad = window.onload;
window.onload = SymOnLoad;
//-->
</script>
Cheers,
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!