Results 1 to 2 of 2

Thread: load random html file into a div

  1. #1
    Join Date
    Mar 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default load random html file into a div

    That's right, I want to load a random html file from a list into a another div. Does anyone knows any example, please? It would be very helpful.

    Thanks

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    You havent provided much info about whether you want a php or javascript based code, or whether the content is to load randomly on page-load or at the click of a button, but assuming that you can use php and random page-load content switches will do, you can use this solution that I posted in another thread earlier today: http://www.dynamicdrive.com/forums/s...ad.php?t=58272

    (use the php includes option at the bottom of my post)
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

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
  •