5 image rotation

This is a discussion on "5 image rotation" within the JavaScript Forum section. This forum, and the thread "5 image rotation are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack (1) Thread Tools
  #1 (permalink)  
Old Jun 12th, 2006, 12:16
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,299
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
5 image rotation

I was wondering if anyone had a script for smoothly rolling over 5 images automatically ? ( about a 3 second gap between rolls )

cheers
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote

  #2 (permalink)  
Old Jun 12th, 2006, 12:55
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: 5 image rotation

Depending on the nature of the images and whether they are to be frequently updated there are a number of options open to you.

They could be the five frames of an animated gif.

Are these images in a database or just in the image folder of the site?

Do you want effects such as fade in and out?
Reply With Quote
  #3 (permalink)  
Old Jun 12th, 2006, 13:28
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,299
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: 5 image rotation

yes fade in and out

just normal JPG images put into the public_html of my site

cheers
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
  #4 (permalink)  
Old Jun 12th, 2006, 17:13
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: 5 image rotation

If the images are suitable, your easiest option is to save them as the frames of an animated gif.
Reply With Quote
  #5 (permalink)  
Old Jun 12th, 2006, 17:23
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,299
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: 5 image rotation

ok, how ?
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)

Last edited by saltedm8; Jun 12th, 2006 at 17:47.
Reply With Quote
  #6 (permalink)  
Old Jun 12th, 2006, 19:11
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: 5 image rotation

You will need to use a graphics package like Paint Shop Pro and its sister package Animation Shop. Other packages have similar functions.

You will have to use PSP to convert the jpg's into gif's then use AS to load them into the frames for the animation.

You can set the time delay between frames and how they fade in and out.
Reply With Quote
  #7 (permalink)  
Old Jun 12th, 2006, 23:54
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,299
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: 5 image rotation

i have fireworks and flash ( no clue how to use flash ) but fireworks will convert the pictures for me ( not too knowledgeable in that either ),

would you be able to give me a script that does not fade in and out ?
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
  1 links from elsewhere to this Post. Click to view. #8 (permalink)  
Old Jun 13th, 2006, 12:47
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: 5 image rotation

I could write a script for you but it would be better longterm for you to try and work it out for yourself. I could then give you help if you are stuck on something.

If you are not going to have fade in and out but just swap the images, then you don't need to convert them necessarily it depends what the most compact file format would be. Could be png rather than jpg.

You need to be thinking about having a div containing an image and then using JavaScript to change the image. Keep in mind of course that if scripting is turned off for whatever reason then the changes will not happen so which is the prefered image.

You will want to preload the images so as to avoid delays on the first sequence.

Although thinking about it as I write, I think I would go for five divs, each containg one of the images, position them on top of each other using css positioning and then just use script to determine which one is visible at any one time by changing the 'display' attribute.

Also, you have to ask what purpose the image swapping serves for the end user.
Reply With Quote
  #9 (permalink)  
Old Jun 13th, 2006, 16:05
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,299
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: 5 image rotation

its ok thanks mate, ive just worked out that i can get exacelly what i want by using windows movie maker and then trancfering it into flash
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
Reply

Tags
image, rotation

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.webforumz.com/javascript-forum/6884-5-image-rotation.htm
Posted By For Type Date
ÀÏÎÐÒ: image rotation Post #8 Refback Dec 14th, 2006 15:12

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rotation of text nakhan81 Web Page Design 4 Jul 17th, 2007 04:35
Image Rotation Sean J JavaScript Forum 2 Jul 2nd, 2007 13:46
Microsoft:- Rotation Program Manager rose Job Opportunities 0 Feb 7th, 2007 02:27
Rotation tomd1985 JavaScript Forum 1 Oct 13th, 2006 17:40
Banner Rotation Script? Jdinh04 JavaScript Forum 3 May 16th, 2005 23:27


All times are GMT. The time now is 04:48.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43