Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Random Content Order script: How to vary the number of blocks displayed?

  1. #11
    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

    Yes:

    Code:
    contents.ref[i].style.display="inline"
    - John
    ________________________

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

  2. #12
    Join Date
    Sep 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    figured it out myself - that was kind of obvious

  3. #13
    Join Date
    Sep 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    75% of the time script gives 0 results for some reason.
    Something might not work correctly.

  4. #14
    Join Date
    Sep 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I found what the solution to my initial problem when content didn't randomize.
    <table> and </table> tags were not inside of divs. For some reason script doesn't work with rows, only with whole tables.

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

    Quote Originally Posted by alru111
    I found what the solution to my initial problem when content didn't randomize.
    <table> and </table> tags were not inside of divs. For some reason script doesn't work with rows, only with whole tables.
    Yes, that is very much like what I meant by:

    Quote Originally Posted by myself
    More likely there is something in the large block of text that is causing an error, like unopened or unclosed tags.
    Having a table row or cell implies a table. These cannot be yanked around (in this case, randomized) without taking the implied table with them but, if you then have other table tags just 'hanging around', it confuses the heck out of the browser.
    - John
    ________________________

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

  6. #16
    Join Date
    Mar 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for posting this code, I was happy to find a correct answer to my question so quickly

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
  •