Results 1 to 5 of 5

Thread: how to: positioning two scrollers side by side?

  1. #1
    Join Date
    Jan 2008
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to: positioning two scrollers side by side?

    1) Script Title: rss pause scroller

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ller/index.htm

    3) Describe problem:

    How would I position two of my rss scrollers side by side? Currently one follows the other as in the demo.

    I would like to know the script for this modification and where to palce it.

    TIA

  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

    Here's one way:

    HTML Code:
    <table><tr><td>
    <script type="text/javascript">
    new rsspausescroller("cnn", "pscroller1", "rssclass", 3000, "_new")
    </script></td></tr>
    <tr><td>
    <script type="text/javascript">
    new rsspausescroller("dynamicdrive", "pscroller2", "rssclass", 3000, "", "date+description")
    </script></td></tr></table>
    I think the confusion arises because of the way that the demo does it - inserting a <br> tag with the javascript document.write() method. Once you break up the calls to the two scrollers into separate script tag blocks as I have in the above example using a table, they can go anywhere. If you feel more comfortable using floating divisions to achieve a side by side alignment, they could each be inserted in a separate floating division. I only used a table because almost everyone understands how tables work and feels at least somewhat comfortable using them.
    - John
    ________________________

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

  3. #3
    Join Date
    Jan 2008
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ill give this a try tonight. Much appreciated

  4. #4
    Join Date
    Jan 2008
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hopefully there will be a little space between the two scrollers with your script

  5. #5
    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

    It's not my script, and it's not the script that sets the layout between/around the scrollers. The space between the scrollers is determined by the HTML markup and styles. In the case of a table, as in my example markup, you can include cellpadding and/or cellspacing with the table. This stuff is just basic HTML. Hopefully you are at least somewhat familiar with HTML. If not, and you are designing pages, it would be extremely useful for you to learn the basics.
    - 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
  •