Results 1 to 2 of 2

Thread: Vertical Scrollers with dynamic content

  1. #1
    Join Date
    Mar 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Vertical Scrollers with dynamic content

    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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •