exsequar: (Ocean - 5 espressos!)
[personal profile] exsequar
Update: Still obsessed with Ocean + Ryan. Anyone surprised? Anyone? Bueller? ^_^ (Look at how cute Danny Ocean is omg. *squish*)

In light of my growing multi-fannishness, I'm wondering if someone could help me out - what's the code for doing multiple headers that change when you refresh the page? I'm using Flexible Squares, Style 2, and I have a paid account. I'd love to have all my favorite sets of boys gracing my journal in turn :) Thanks to anyone that can help me! Thanks very much to [livejournal.com profile] trinity_clare! :D *rubs hands together* Now to prepare several new headers... simple, but elegant. Hmmmm! *plots gleefully* :D

I'm watching O Brother Where Art Thou right now, which is a delightfully ridiculous movie that manages to also be kind of disturbing. I am enjoying it greatly! George Clooney's eyebrows are a thing of wonder - they're all... arched! And vaguely evil looking! He's such a cutie pie. And bizarrely his character is reminding me strongly of mister Danny Ocean, with the grand scale theivery and the needing to always look suave and the leading of a motley crew. I adore, I adore a lot :D

Date: 2007-06-19 02:56 am (UTC)
trinity_clare: (east river)
From: [personal profile] trinity_clare
I went through this rotating header thing myself. :D

function Page::print_custom_head()
{
	var string[] header_image;
	var int header_index=0;

	$header_image[$header_index++] = "HEADER IMAGE HERE";
	$header_image[$header_index++] = "HEADER IMAGE HERE";

	var string header_url = $header_image[rand($header_index) - 1];
	
	"""
	<style type="text/css">	
.headerimage {
    background-image: url("$header_url"); /* Header image URL */
}

     </style>

     """;
} 


Repeat the "HEADER IMAGE HERE" line as many times as you need it.

Date: 2007-06-19 02:57 am (UTC)
trinity_clare: thank you, captain obvious (captain obvious)
From: [personal profile] trinity_clare
Forgot to say, that goes in your theme layer. I hope you know what that is.

Date: 2007-06-19 03:03 am (UTC)
From: [identity profile] exsequar.livejournal.com
I do indeed. Thank you so much!!! ♥

Date: 2007-06-19 03:13 am (UTC)
From: [identity profile] exsequar.livejournal.com
Hmm, I tried to implement it and got no header at the top at all. I'm supposed to put the url where "HEADER IMAGE HERE" appears, right? Do I need to change the spot that says "Header image URL"? I'm a wee bit confused. Also, how do you control how far down the journal is? Do I need to combine this with my old coding?

(I'm sorry, I'm mostly trial and error when it comes to CSS, lol)

Date: 2007-06-19 03:17 am (UTC)
trinity_clare: I'm the oldest, which means I'm always right (oldest right)
From: [personal profile] trinity_clare
1. No, you don't need to change that bit.
2. Can you make your theme layer viewable (add layerinfo source_viewable = 1; right under the name and type lines at the top) and give me the link?

Date: 2007-06-19 03:20 am (UTC)
From: [identity profile] exsequar.livejournal.com
Okay I added that line, but I'm not sure what link you mean - this one? http://www.livejournal.com/customize/advanced/layeredit.bml?id=8734346

Date: 2007-06-19 03:35 am (UTC)
trinity_clare: (john sheppard's hair)
From: [personal profile] trinity_clare
...Okay, at this point I'm no help anymore, so go post at [livejournal.com profile] s2flexisquares and say you're having issues with a rotating header and your theme layer is here: http://www.livejournal.com/customize/advanced/layerbrowse.bml?id=8734346. People over there are teh smart.

Date: 2007-06-19 03:46 am (UTC)
From: [identity profile] exsequar.livejournal.com
*laughs* Okay, thank you honey! I appreciate the help :D

(I am desperately in love with that icon. SHEP! *hearts*)

Date: 2007-06-19 03:56 am (UTC)
From: [identity profile] exsequar.livejournal.com
Yay I found a post about it, and figured it out! Whee! Your code was most of it but I think I needed a bit more? *hands* I'm clueless. But thank you so much, you're a doll! ♥

Date: 2007-06-19 04:09 am (UTC)
trinity_clare: (trinityclare)
From: [personal profile] trinity_clare
You're welcome! I wish I could have just c/p'ed the code in my layout for you, but mine actually repeats inside the header box, which took AGES to figure out. I'm glad you've got yours working!

August 2023

S M T W T F S
  12345
6789101112
1314151617 1819
20212223242526
2728293031  

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags