Results 1 to 5 of 5

Thread: Random Imgs with Text

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

    Default Random Imgs with Text

    I have done some minor javascript but nothing really major. I have used jQuery for a lot of stuff I have done (I know, I know its cheating, please don't hate me for it), but I need help with writing a function that will display a group of images at random with text that corresponds to the image and the images cannot repeat. LOL any help at all is grealy appreciated! Thanks!

  2. #2
    Join Date
    Jul 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    bump!

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

    jQuery isn't cheating, in fact it's one of the best of its kind. Here's a script that does what you are asking, it can also do more, it is highly configurable:

    http://www.dynamicdrive.com/dynamici...army/index.htm
    - John
    ________________________

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

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

    Default

    Quote Originally Posted by jscheuer1 View Post
    jQuery isn't cheating, in fact it's one of the best of its kind. Here's a script that does what you are asking, it can also do more, it is highly configurable:

    http://www.dynamicdrive.com/dynamici...army/index.htm
    Thanks how would i modify this to show like 6 images at a time? instead of just one at a time

  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

    The script I linked you to can show as many images at once as you like (the demo page itself shows three images at a time). This is because it is object oriented and can therefore be used as many times (within reason - browser and CPU limitations apply) on a single page as you need.

    Each show can be configured for random execution. If that's not enough randomness for you, we could work out a small subroutine to shuffle the shows and/or to 'cross pollinate' their contents before execution. However, 6 shows each with a unique image array, all set to execute their array at random would fulfill in word what you are asking for, and is configurable without modification.

    Be sure to go over the documentation for the script thoroughly, it has many options and capabilities.

    If you need help configuring, let me know, but please read the documentation first, it will save us both a lot of time.
    - 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
  •