Kayla Shay (kaylashay) wrote in lj_nifty,
Kayla Shay

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.

  • friends history

    many years ago, we had the marnanel joule that kept track of our friends history. but it went away around 2011. in fact a lot of livejournal has…

  • ArtLJ

    I was screwing around with custom styles earlier when I stumbled across artlj ( Translations available at Google and Microsoft). It…

  • No more grey comment button!

    Last night I hacked together a Greasemonkey script so that anyone affected by the grey comment button problem can post a comment. Any comments or…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded