28 June 2006 @ 05:54 pm
Rotating...  
As part of my lj style experimentations, Banners or Headers for lj, your website or really anything else. This is what you do.

  • Download the script here.
  • Unzip it
  • Create your banner(s)
  • Upload php script and banners to the same directory on your webspace.
  • Change your code.
    • Option a :)- If you use my layout, go to the place where the banner is added and change the banner image url to the url to link to your script.
      #banner-inner{
      background-image: url(http://www.yourspace.com/banner.jpg); background-repeat: no-repeat; background-position: center 9px; height:240px; margin:auto;
      }
      becomes
      #banner-inner{
      background-image: url(http://www.yourspace.com/rotate.php); background-repeat: no-repeat; background-position: center 9px; height:240px; margin:auto;
      }
      The script ready all the images in the folder and displays them instead of the rotate.php.
    • Option b :) Background in body.
      body {
      background-image: url(http://www.yourspace.com/rotate.php); background-repeat: no-repeat; margin:auto;
      }
      remember to use a margin-top on the content area here.
    • Option c :) Replace image tag.
      You can also replace the image tag on layout (img src="") Instead of your jpg you set the rotate.php.

You need webspce that hosts files other than images and possibly has php support, although i'm not sure about that. A tip: try and make your banners the same height and width, so you do not have to trick with your height and width css.

 
 
( Post a new comment )
[identity profile] raynedanser.livejournal.com on June 11th, 2008 11:30 am (UTC)
Thank you for this. I hope it's ok if I mem'ry it?
[identity profile] elli.livejournal.com on June 11th, 2008 12:16 pm (UTC)
Sure!!

Ollian!!!!!
[identity profile] raynedanser.livejournal.com on June 11th, 2008 12:21 pm (UTC)
Hee! Sadly, that is the only Ollian icon I have. :( I can't wait to see Gregor's reaction (I'm a bit delayed as I'm in the US and watching with subtitles because my German is SEHR SCHLECHT! ;-)
[identity profile] elli.livejournal.com on June 11th, 2008 12:34 pm (UTC)
*g* I'll be posted some tonight if you want ;)
And I'm so excited about tonight. I cannot wait to get home!!!!!

And I think it's cool there are subtitles at all!
[identity profile] raynedanser.livejournal.com on June 11th, 2008 12:37 pm (UTC)
Oh I'll definitely have to watch for your post. ;-) The preview of it looked hysterical and I have to admit - my expression matched Christian's. ;-) Plus, I'm really curious exactly WHAT he is going to tell Wolle (who really, REALLY creeps me out).
[identity profile] elli.livejournal.com on June 11th, 2008 01:14 pm (UTC)
*g* The preview is awesome! And I doubt Christian comes out to him, because that would be too easy.

Annd I hardly can watch scenes with Wolle. he's totally squicky. arg. So agreed.
[identity profile] raynedanser.livejournal.com on June 11th, 2008 01:15 pm (UTC)
I don't know how Christian couldn't come out to him... It was, erm, pretty obvious what they were doing when Gregor opened the door. ;-)

Wolle is just... Yeah, I do a lot of fast forwarding, too. *shudder*
[identity profile] elli.livejournal.com on June 11th, 2008 02:11 pm (UTC)
*laughs*
I meant to Wolle!!!!!! rofl.

OMG TONIGHT!!!! NOT FAR AWAY!!!
[identity profile] raynedanser.livejournal.com on June 11th, 2008 02:25 pm (UTC)
LMAO!!!! Oops!!! I was trying to figure out how he wasn't going to come out to Gregor when... yeah. hee!!!

How much longer? *is giddy*
[identity profile] elli.livejournal.com on June 11th, 2008 03:47 pm (UTC)
rofl!!! I know!!!! And I can go home now!