aamin
Junior Member
Posts: 2
Registered: 12/30/2004
Member Is Offline
|
| posted on 12/30/2004 at 05:51 AM |
|
|
Embedding Scroll Feature into a Cell
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!
Attachment: code.txt (4.18kb)
This file has been downloaded 404 times
|
|
|
rock
Moderator
Posts: 687
Registered: 4/15/2003
Member Is Offline
|
| posted on 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
Junior Member
Posts: 2
Registered: 12/30/2004
Member Is Offline
|
| posted on 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
Moderator
Posts: 687
Registered: 4/15/2003
Member Is Offline
|
| posted on 12/31/2004 at 09:31 AM |
|
|
nothing
|
|
|