PDA

View Full Version : Vertical Scrollers with dynamic content



reb_forum
03-10-2006, 06:10 AM
Hi,

I have found several javascripts on vertical scrollers but all the content are static. However, I need to customize it as mine is dynamic contents.

For instance, usually, the javascripts define a variable
<javascript>
....
i.e. var content ='Place your message here!'
.....
</javascript>

But for my case, mine is jsp and I have a for loop that read from a directory of files and print out the files contents like the following

<% for(int i=0; i<files.length; i++) {
filename = files[i];
relativePath = "\\files\\"+filename;
%>
<BR><FONT style="FONT-SIZE: 14px; COLOR: #666; FONT-FAMILY: georgia, verdana, arial, sans-serif"><jsp:include page="<%=relativePath%>"/></FONT>
<BR>
<% }//end for%>

Kindly advise how can I embed that into the javascript. Thanks!

Rdgs,
Rebecca

jscheuer1
03-10-2006, 04:05 PM
http://www.dynamicdrive.com/forums/showthread.php?t=2208&highlight=marquee

See if any of that helps.