Board Logo

Multiple pages
godofhellfire - 12/17/2004 at 05:12 PM

Newbie here. Javascript infant. Picking up new project from disgruntled previous webmaster. He used the scroller and client would like to keep it. I've figured out the basics and have it working fine. Picking up content from external html file.

I notice in the documentation that you can use multiple external html files for the content. I had assumed, perhaps incorrectly, that by creating an additional scroll.tpl.js page (i.e. scroll.tpl.js0 - pointing to ann.htm and scroll.tpl.js1 - pointing to ann1.htm) that the scroller would display both consecutively. No such luck. Only displaying contents from ann1.htm.

Am I incorrect in my assumption or does the scroller only display content from 1 html page?


godofhellfire - 12/17/2004 at 06:15 PM

Just found previous post regarding multiple html pages posted by shannon on 12/10. Didn't seem there was a resolution on the subject.

I tried suggestion by rock, adding additional pages to the file separated by comma...

{
'file': '../subfolder/ann.html', '../subfolder/ann1.htm',
'content': ' ',
'pause_b': 0,
'pause_a': 0,
}

this seems to break the scroller. Nothing displays. If I do this...

{
'file': '../subfolder/ann.html',
'file': '../subfolder/ann2.html',
'pause_b': 0,
'pause_a': 0,
}

I only get the contents of ann2.htm in the scroller.

and if I do this

{
'file': '../subfolder/ann.html',
'content': ' ',
'pause_b': 0,
'pause_a': 0,
}
{
'file': '../subfolder/ann1.htm',
'content': ' ',
'pause_b': 0,
'pause_a': 0,
}

Nothing happens.

So what am I doing wrong.


rock - 12/20/2004 at 07:37 AM

Try
ITEMS = [
{
'file': '../subfolder/ann.html',
'content': ' ',
'pause_b': 0,
'pause_a': 0
},
{
'file': '../subfolder/ann1.htm',
'content': ' ',
'pause_b': 0,
'pause_a': 0
}
];
BTW: you could always download the product from our site, the package contains useful demos.


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