SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot theslip's Avatar
    Join Date
    Jun 2008
    Location
    here
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question varable div with text/image content on refresh

    Hi peeps, anyone know how to make varable div with text/image content on refresh of a webpage.

    I have 2 website areas I want to change pic and text eachtime the page is refreshed, any ideas?

    I'm also using php

  2. #2
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,807
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    If it's on page refresh then using Javascript is pointless - just use PHP.

    Put your articles or whatever content you have into an array and use array_rand to pull one out at random.
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....


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
  •