[personal profile] redcirce posting in [community profile] style_system
Hi all, I'm another migrant from LJ. ::waves:: I hope the influx of questions isn't too annoying?

Anyway, my question is as follows: Is there a way to set up your header so that it randomly chooses one of a group of header images each time the page is loaded?

I was able to port over pretty much all of my custom journal style from LJ thanks to [community profile] starlit's super helpful entry, but I couldn't get the code I had for rotating your header image to work. Admittedly, that could be because my knowledge of CSS is pretty limited and I could have been trying to insert it in the wrong place. (It was originally on LJ's "Edit your Theme Layer" page) The custom style was written for me, and although I sort of knew how to tweak it slightly on LJ, I'm not sure how it interacts with [community profile] starlit's code and my few exploratory attempts have gone awry. Any suggestions?

Date: 2012-01-02 06:28 pm (UTC)
sofiaviolet: drawing of three violets and three leaves (Default)
From: [personal profile] sofiaviolet
I have done something similar using S2 (although I was inserting short bits of text into my layout, not header images). I wrote this tutorial to show how I did it on Dreamwidth, and I've made this old tutorial from 2007 public because, although it was aimed at LJ users, it contains an example of randomized images that you might find helpful.

I don't know whether this method will still work - I tested and used it early in Dreamwidth's existence and I haven't been closely following any changes that may have been made to S2 since.

Profile

Dreamwidth style system discussion

July 2025

S M T W T F S
  123 45
6789101112
13141516171819
20212223242526
2728293031  

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 30th, 2025 12:26 pm
Powered by Dreamwidth Studios