How to randomly display multiple strings of HTML?

Discussion in 'HTML & Website Design' started by nervo, Dec 18, 2006.

  1. #1
    Hi, does anyone have any idea how to randomly display lets say, 5 strings out of 20?I am not talking about the usual random html scripts that pick ONE string out of many and display it (like quote of the days scripts.. etc).

    Thanks ;)
     
    nervo, Dec 18, 2006 IP
  2. tofumonkey

    tofumonkey Peon

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    r u talking about a javascript array?
    tat random display one array item?

    you might want to check out http://javascript.internet.com for more good codes. :)
     
    tofumonkey, Dec 18, 2006 IP
  3. nervo

    nervo Active Member

    Messages:
    1,012
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    90
    #3
    I said I'd like to randomly display multiple html items that can be pulled from a file or db containing many items.

    I do not need to display ONE item but several items choosen randomly everytime the page has loaded..
     
    nervo, Dec 19, 2006 IP
  4. mani

    mani Peon

    Messages:
    679
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #4
    On statis html pages it is difficult to get values from javascript from database, if you have php page then its very easy..

    Or you can use Ajax to grab the values from database on static html pages
     
    mani, Dec 19, 2006 IP
  5. angielski

    angielski Peon

    Messages:
    57
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It's impossible to display random text from static page. U must use php scripts or put that texts into iframe static html randomly showed pages
     
    angielski, Dec 19, 2006 IP
  6. nervo

    nervo Active Member

    Messages:
    1,012
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    90
    #6
    I forgot to say, I am using SSI so that's not an issue.
     
    nervo, Dec 19, 2006 IP