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] 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.
[identity profile] cowcreamer.livejournal.com on May 28th, 2009 09:37 pm (UTC)
heyoo. no, it's not too late. I gave up ages ago, because I couldn't find any free servers to host.

are you able to help?
Tria[personal profile] trialia on May 28th, 2009 09:40 pm (UTC)
Sure, no problem. I have two domains, unfaithful-mirror.net and joyunending.net :) Which would you like to be hosted on? They both have the same capacity, and I can make your address [name].[domain].net or [domain].net/[name], so just let me know what name you want and whether you'd like a subdomain or a folder, and I can set that up for you. :)
[identity profile] cowcreamer.livejournal.com on May 28th, 2009 11:23 pm (UTC)
god your awesome.
I like joyunending.net best :P and I think a subdomain would be easiest for me to access, maybe. I'm not fully familiar with everything, it's been a while ;P

omg, and thank you so friggin much. you don't even know.
[identity profile] elli.livejournal.com on May 27th, 2009 06:18 am (UTC)
Like she said :D geocities might not work.