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] cincodemaygirl.livejournal.com on June 28th, 2006 04:14 pm (UTC)
OMG, I am dying to do this. Thank you so much!!!
[identity profile] elli.livejournal.com on June 28th, 2006 04:17 pm (UTC)
of course.. this thing has been my saviour so many times.
if you have questions..
[identity profile] maiaj.livejournal.com on June 28th, 2006 10:19 pm (UTC)
Ooh, thanks. Though now I have to make more headers!
[identity profile] elli.livejournal.com on June 29th, 2006 06:55 am (UTC)
you definately have to!!
[identity profile] notdone.livejournal.com on June 29th, 2006 01:16 pm (UTC)
I don't really have a place to upload that script . . . do you maybe know where I can upload something like that? since I would really love rotating headers.

thanks btw ;) you're awesome ;)
[identity profile] elli.livejournal.com on June 29th, 2006 02:52 pm (UTC)
google some free hosting!! I'm not sure about thze php though...
[identity profile] dhisana.livejournal.com on July 5th, 2006 03:08 am (UTC)
Awesome! Thank you sooo much for sharing! ♥
[identity profile] elli.livejournal.com on July 6th, 2006 01:14 pm (UTC)
Anytime!!!!
[identity profile] darci-marie.livejournal.com on July 6th, 2006 01:25 pm (UTC)
thanks for sharing. Your layouts get cleaner and sleeker every time.
[identity profile] elli.livejournal.com on July 6th, 2006 01:33 pm (UTC)
Yes, it does..thank god. I need to post bug fixes soon!!!!!
[identity profile] beyondordinary.livejournal.com on July 6th, 2006 09:04 pm (UTC)
OMG i love you! :D
thank you for sharing this! :D
*hugs fiercely*
[identity profile] elli.livejournal.com on July 7th, 2006 04:59 pm (UTC)
anytime :)
[identity profile] never-frugal.livejournal.com on July 14th, 2006 01:34 am (UTC)
Thankyou so much for this! I added it to memories. I have one question though, do I just need to upload the rotate.php and the banners separately? Because I have it opened in Dreamweaver and I'm seeing nothing there in the rotate.php so I hope that's right. :)
[identity profile] elli.livejournal.com on July 10th, 2007 08:55 am (UTC)
Just try uploading them in the same folder, that should work.
[identity profile] ashers-sparks.livejournal.com on July 14th, 2006 05:45 am (UTC)
Oh, wow! Fancy trick, I am definitely snagging! Thank you muchly
(Reply) (Link)
[identity profile] willowwing.livejournal.com on July 17th, 2006 04:57 pm (UTC)
I followed your instruction and it worked beautifully. Thank you.
(Reply) (Link)
[identity profile] anolinde.livejournal.com on July 23rd, 2006 03:01 pm (UTC)
Just out of curiosity, is this for a particular style?
[identity profile] elli.livejournal.com on July 23rd, 2006 04:48 pm (UTC)
It's not limited to any style at all....

as soon as you can, in any given implementation, use an image tag, you can use this.

so it works in any style.. I also use it at http://www.smallvillefanart.com for instance.
(no subject) - [identity profile] anolinde.livejournal.com on July 23rd, 2006 08:32 pm (UTC) Expand
(no subject) - [identity profile] elli.livejournal.com on August 3rd, 2006 09:17 pm (UTC) Expand
(no subject) - [identity profile] anolinde.livejournal.com on August 3rd, 2006 10:37 pm (UTC)
[identity profile] fogg8.livejournal.com on August 3rd, 2006 08:34 pm (UTC)
Uhm, yeah, sorry if you got my ladt comment. I figured it out. I was just being stupid.

Thank you so much for these scripts and tutorials :D
[identity profile] elli.livejournal.com on August 3rd, 2006 09:19 pm (UTC)
whew good..you had me worried there for a sec!
[identity profile] just-katarin.livejournal.com on August 11th, 2006 07:01 am (UTC)
So this looked completely awesome, and I was psyched to try it out on my new comm, but something happened and I was wondering if I could ask a question about it?
[identity profile] elli.livejournal.com on August 11th, 2006 12:17 pm (UTC)
What did happen?
(no subject) - [identity profile] just-katarin.livejournal.com on August 11th, 2006 04:35 pm (UTC) Expand
(no subject) - [identity profile] elli.livejournal.com on September 4th, 2006 09:25 pm (UTC)
[identity profile] whenidream.livejournal.com on September 3rd, 2006 09:16 pm (UTC)
So does this make it possible to add more headers in later?
[identity profile] elli.livejournal.com on September 4th, 2006 09:27 pm (UTC)
YES!!! just upload images to that same folder.
[identity profile] intodelirium.livejournal.com on November 5th, 2006 02:36 pm (UTC)
hi, I was wondering if this will work with [livejournal.com profile] newkidfan's joe layout (http://community.livejournal.com/interlinea/2111.html?mode=reply)? I've uploaded the script along with a bunch of headers to my host then placed the url link under .pageheaderblock in the stylesheet but nothing's appearing. I have no idea where else to place the link other than there. have I done something wrong? any help will be much appreciated. =D
[identity profile] elli.livejournal.com on January 19th, 2007 04:24 am (UTC)
it will work with any layout :)
[identity profile] prettybutt.livejournal.com on January 23rd, 2007 04:19 am (UTC)
i FINALLY figured this out-thank you! (she says one year later)
(Reply) (Link)
[identity profile] willys-digs.livejournal.com on May 3rd, 2007 02:50 am (UTC)
Banner Rotation Utility!
I've just initiated a banner contest to utilize this rotation script on my LJ Forum page. Any chance of you posting a "pimp banner" for your users to post in their profiles?

I will link with this http: for now, but a pimp banner is welcome in my userinfo if you eventually supply one.

Regards

Joan - http://community.livejournal.com/lotr_spotlight/
[identity profile] elli.livejournal.com on July 10th, 2007 08:59 am (UTC)
Re: Banner Rotation Utility!
I'm way late, I realize... so this is probably redundant. but huh?

You mean to pimp the rotate script?
Re: Banner Rotation Utility! - [identity profile] willys-digs.livejournal.com on July 10th, 2007 07:48 pm (UTC)
[identity profile] lookingglassf1.livejournal.com on May 15th, 2007 10:11 am (UTC)
I's just like to say thank you for this. I've just started to use this, but I only have 2 headers so far. So best I get busy with PS.

Just one question. Where do you prefer to be credited with this? User info, public resource post, or sidebar? Or somewhere else?

In the mean time, I will put my credit in my resource post.
[identity profile] elli.livejournal.com on July 10th, 2007 08:57 am (UTC)
Oh..i don't need a credit. The guy who wriote the script is credited in the script.

Sharing the link on how you did it would be nice though..so rescource is good.
[identity profile] marskychuu.livejournal.com on May 13th, 2008 07:36 pm (UTC)
Heyheyy. Marsky here.

Unfortunately, I'm not a smartie when it comes to these things, so I couldn't understand a thing. I really need help. All I want is a rotating banner. XD Do you mind?
[identity profile] elli.livejournal.com on June 11th, 2008 12:15 pm (UTC)
M, do you still need help. I missed this comment.
(no subject) - [identity profile] marskychuu.livejournal.com on June 15th, 2008 12:10 pm (UTC)
[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!!!!!
(no subject) - [identity profile] raynedanser.livejournal.com on June 11th, 2008 12:21 pm (UTC) Expand
(no subject) - [identity profile] elli.livejournal.com on June 11th, 2008 12:34 pm (UTC) Expand
(no subject) - [identity profile] raynedanser.livejournal.com on June 11th, 2008 12:37 pm (UTC) Expand
(no subject) - [identity profile] elli.livejournal.com on June 11th, 2008 01:14 pm (UTC) Expand
(no subject) - [identity profile] raynedanser.livejournal.com on June 11th, 2008 01:15 pm (UTC) Expand
(no subject) - [identity profile] elli.livejournal.com on June 11th, 2008 02:11 pm (UTC) Expand
(no subject) - [identity profile] raynedanser.livejournal.com on June 11th, 2008 02:25 pm (UTC) Expand
(no subject) - [identity profile] elli.livejournal.com on June 11th, 2008 03:47 pm (UTC)
[identity profile] cowcreamer.livejournal.com on November 3rd, 2008 06:28 pm (UTC)
Okay, hi. you're a genius for this, and it's amazing. I just need to wrap my head around the its application. okay, so I make the headers, download the .php file, and uplaod them all to them same folder on the web browser. Do you know if using geocities is really terrible? also, do I replace the .headerimage url with the url for the rotate.php or something else. sorry, any help would be muchly appreciated.
Tria[personal profile] trialia on May 25th, 2009 04:16 am (UTC)
AFAIK, and I know this is a very late response, Geocities don't support PHP/MySQL.

If you still need hosting for it, though, I'd be happy to help out.
(no subject) - [identity profile] cowcreamer.livejournal.com on May 28th, 2009 09:37 pm (UTC) Expand
(no subject) - [personal profile] trialia on May 28th, 2009 09:40 pm (UTC) Expand
(no subject) - [identity profile] cowcreamer.livejournal.com on May 28th, 2009 11:23 pm (UTC)
(no subject) - [identity profile] elli.livejournal.com on May 27th, 2009 06:18 am (UTC)
[identity profile] dhark-charlotte.livejournal.com on December 1st, 2008 08:48 pm (UTC)
bobbinrob sent me this link. Thanks for posting this!

EDIT: So I tried to follow the directions. I found a hosting site (free and supposedly supports php) and uploaded the files to the same folder, but when I paste the link into the code, I get 'image error' in a white box instead of rotated headers.

Any ideas? This was a big step for me. I still learning about html and coding and it makes my head spin sometimes.

Edit 2: A friend hosted the files for me. All fixed and awesome!!

Edited 2009-10-18 01:23 pm (UTC)
(Reply) (Link)
[identity profile] nargynargy.livejournal.com on May 26th, 2009 09:39 pm (UTC)
neatening my delicious and realised I never commented. Thanks for the tutorial, it seems like something I can do if and when I get time for it :)
[identity profile] elli.livejournal.com on May 27th, 2009 06:18 am (UTC)
Heee..well..if you need any help :)
[identity profile] dekolette.livejournal.com on July 19th, 2009 09:12 am (UTC)
YAY, 3 years late, haha :D
Found this link on my flist. Very useful and pretty easy to follow. Thank you ♥
[identity profile] elli.livejournal.com on July 27th, 2009 09:39 pm (UTC)
rofl..as lomg as you found what you are looking for!!1 *g*
[identity profile] vagrantdream.livejournal.com on December 9th, 2009 02:54 pm (UTC)
Wow! wow! Thank you so much. This will cure me getting bored of my headers!
(Reply) (Link)