Results 1 to 2 of 2

Thread: Random Content Order script issue on IE

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

    Default Random Content Order script issue on IE

    1) Script Title:
    Random Content Order script

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

    3) Describe problem:
    I would like to randomly change the order in which two table rows in my home page are displayed each time the page loads. The thing is that, between these two rows I have another row which I would like to remain unchanged. The same for a fourth row at the bottom of the table.
    The script works fine in Firefox, but in IE all rows get scrambled, even those without the shared CSS class attribute.
    Can anybody help me please?

    Thank you.

  2. #2
    Join Date
    Aug 2004
    Posts
    9,878
    Thanks
    3
    Thanked 962 Times in 951 Posts
    Blog Entries
    15

    Default

    This script should only be used to randomize fully self encapsulating DIV elements. If you're wrapping table cells (ie: TR tags) with DIV tags, that will naturally break things in some browsers, as you're shifting around HTML that are part of something bigger.

    To randomize the display of table cells, I recommend trying to find another script on the web that does this, one that physically alters the position of the table rows/cells via the DOM.
    DD Admin

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
  •