Board Logo

Embedding Scroll Feature into a Cell
aamin - 12/30/2004 at 05:51 AM

I'm new to the Tigra Scroller and I'm trying to figure out how to add a horizonal scroll feature within a cell tag on my home page (www.cbc.ca has an example of what I'm trying to accomplish). Right now I'm getting the "Page Cannot Be Displayed" message that scrolls veritcally across the page. The code below is an excerpt of what I have so far (the entire code is attached):

<td width="630">
<div id=mn style="visibility:hidden;position:absolute;top:0;left:0;width:100%"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="ItemBody" id=mnc></td></tr></table></div>
<script language="JavaScript">
function getElem(div) {
return document.getElementById ? document.getElementById(div) : document.all[div]
}
...
function supp () {
o_cont.innerHTML = this.content
ajust()
}
</script>
</td>

Thanks in advance for your help!


rock - 12/30/2004 at 07:17 AM

You just need to insert your scroller constructor into the required cell (without modifying the scroller code):
<td>
<SCRIPT LANGUAGE="JavaScript">Tscroll_init (0)</SCRIPT>
</td>

Note: width and height of the scroller you should define in variable LOOK (scroll.tpl0.js file)


aamin - 12/31/2004 at 04:48 AM

Ok, I think I understand setting up the constructor, but what do exactly do I do with the code from scroll.html?


rock - 12/31/2004 at 09:31 AM

nothing


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/