Kayla Shay (kaylashay) wrote in lj_nifty,

How To Randomly Display Banner Images

I'm not sure if anyone else has ever posted something like this. I have always been frustrated at being limited to one banner image to encompass all the things that interest me. Because of this, when I was revamping my LJ the other day, I decided to see if I could get it to randomly display a banner on each page load from a select group of banners I had created.

I found a way and have put it into a five step process for anyone to use.


Click for a Five Step Process to Random Banner Selection


Examples of this code in action can be seen by reloading the pages on my LJ, kaylashay. I currently have six different banners to rotate out on my LJ and I'm working on more.
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments