The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Tue Feb 27, 2007 5:58 am 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Fri Dec 29, 2006 9:26 pm
Posts: 525
I found this on the web not sure where now,,, :)

#rotator
{
  background: url(images/rotate.php) no-repeat top center;
  width: 700px;
  height: 150px;
}


is there something like this for joomla , I have some tile backgrounds which would be nice to change each page,,

cheers

russell

_________________
A winner never complains about conditions


Top
 Profile  
 
PostPosted: Tue Feb 27, 2007 6:31 am 
Joomla! Intern
Joomla! Intern

Joined: Wed Feb 14, 2007 6:27 am
Posts: 96
hi,

#rotate- is nothing but a div id given in html. Just using rotate in css want rotate your image

Go to image editing s/w eg: photoshop rotate your image here using Edit>transforms>rotate 180 degree

#rotator  ---> this name can be changed as your div id
{
background: url(images/rotate.php) no-repeat top center; ---> replace this with your image u have rotated
width: 700px;
height: 150px;
}

Best is choose existing image and rotate using  (image editing software) with same name, it will start working


Top
 Profile  
 
PostPosted: Tue Feb 27, 2007 7:26 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Mar 02, 2006 4:12 am
Posts: 48
I can't remember where it was originally posted either, but you can download the script that goes with it here.

http://www.automaticlabs.com/products/rotator

Save it as rotate.php & upload it to the image folder you want to use it on

change #rotator to .rotator if you intend using it more than once on the same page. I use it with mod.php as a related images module.

#rotator
{
  background: url(images/stories/folder/rotate.php) no-repeat top center;
  width: 700px;
  height: 150px;
}

there is no cache & will call a new image on every pageload - if anyone knows how to change the code to only get an image once a day it would be great.

It isn't just backgrounds & images - you can rotate any file type you want with it - handy :)


Top
 Profile  
 
PostPosted: Tue Feb 27, 2007 9:31 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Fri Dec 29, 2006 9:26 pm
Posts: 525
Thanks brenda, worked like a charm,  ;)

_________________
A winner never complains about conditions


Top
 Profile  
 
PostPosted: Wed Feb 28, 2007 8:39 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Oct 17, 2005 10:56 pm
Posts: 37
Thanks from me also.  Just what I was looking for.


Top
 Profile  
 
PostPosted: Thu Mar 01, 2007 3:57 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Mar 02, 2006 4:12 am
Posts: 48
Glad I could help out - maybe in a few years I'll be able to answer some Joomla questions too  ;)


Top
 Profile  
 
PostPosted: Thu Dec 13, 2007 10:33 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Nov 27, 2007 6:57 pm
Posts: 1
Hello Brenda, unfortunately when I click on the link you provided it redirects to this http://hivelogic.com/enkoder. Do you by any chance have the rotator script stashed away in your tool box.

Thanks, Dan


Top
 Profile  
 
PostPosted: Fri Dec 14, 2007 5:22 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Mar 02, 2006 4:12 am
Posts: 48
Hi Realdude

I went and found you a copy of the original script - I butchered my copy  :laugh:

You can download it here
http://www.alistapart.com/d/randomizer/rotate.txt

& read about it here
http://www.alistapart.com/articles/randomizer

HTH
Brenda


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 



Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group