Board Logo

Scrolling inside a DIV, instead of an iFrame
the_1_an_only - 2/27/2008 at 09:41 AM

I've been looking at using the Tigra scroller, and if it can be customised to work within a Div element instead of using an iFrame (for SEO) then the Pro version will be perfect.
Can this be done easily? Any advice would be greatly appreciated.

tigra - 2/27/2008 at 03:08 PM

some of the scroller's features require the use of iframe
for simple div based scroller see

the_1_an_only - 2/27/2008 at 05:36 PM


Thanks for the link, unfortunately the script you linked to is a bit too basic for our needs.

Given that the the iFrame is required, then I figured that instead of opening the content from individual external documents, that the data to be scrolled can be inside div tags for SEO with it's style set to display:none inside the page containing the iFrame.

In the scroll.tpl0.js file, we can use

'content' : parent.document.getElementByID("myContent1").innerHTML

This works fine for IE7 on a windows based machine and with Firefox.

The only (slight) snag with this kind of implementation is that if the content happens to be dynamic from a database then the scroll.tpl0.js would also have to be generated dynamically to have the ID's passed into the array using the code above.

Edit: Cache problem resolved why this implementation was not working on Firefox/safari.

With the customisation described above, would the pro version be affected? I don't see how it would as it is only used to populate the sources, but before purchasing the pro version I'd like to confirm compatibility.

Looking forward to your reply.


tigra - 3/4/2008 at 05:04 PM

It should work with PRO version as well. If there's a problem we'll help you fix it or refund your order.

Back to forum: