Results 1 to 2 of 2

Thread: Help with Translucent scroller

  1. #1
    Join Date
    Jun 2006
    Thanked 0 Times in 0 Posts

    Question Help with Translucent scroller

    Translucent scroller

    I'm very new to javascripting within ASP.NET and haven't figured out a few things but have been looking for solutions.

    I have a situation where I'm using VS2005 to work on a project that consists of a Master Page and Content Pages (Code-Behind Modal). I'm using the Dataset methods to retrieve data.

    What I'm not sure about is how to populate the array within the javascript and would appreciate any help that could be suggested. I do have the scroller working, just need to be able to populate the scroller during runtime.

    Also is there a way to update the array every 10 minutes or so.

    var scrollercontent=new Array()
    //Define scroller contents. Extend or contract array as needed
    scrollercontent[0]='Visit our partner site <a href=""> </a>for free Java applets!'
    scrollercontent[1]='Got JavaScript? <a href="">JavaScript Kit</a> is the most comprehensive JavaScript site online.'
    scrollercontent[2]='Link to Dynamic Drive on your site. Please visit our <a href="">links page</a>.'

    Thanks again.


  2. #2
    Join Date
    Aug 2004
    Thanked 1,008 Times in 993 Posts
    Blog Entries


    Populating the scroller dynamically really depends on how your pages are dynamically generated. I'm not familar with, but the process is basically the same- generate the scroller contents portion of the JavaScript dynamically. The rest of the JavaScript basically can be left as is, something like this for a PHP page:

    <script type="text/javascript">
    //top part of scroller script here
    var scrollercontent=new Array()
    echo scroller contents...;
    //rest of scroller script here


Posting Permissions

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