Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 07-20-2006, 06:44 PM Image Rotation
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 960
Name: Darren
Location: England
Trades: 0
Hi there!

Does any one know of a script that allows image rotation (or fading, pixelisation) that can all be timed differently?

All that ive found can only be set to change at a set period (i.e. 5 seconds each)

i need something that can be set for different pics?

Thanks in advanvce!

Hayes
rolda hayes is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-20-2006, 07:46 PM Re: Image Rotation
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Do the times need to be something you specify for each or can they be random as long as they're different. If random times are ok you can use:

Math.round(100*Math.random())

Match.random will give a number between 0 and 1. Multiplying by 100 will give you a number between 0 and 100 and round and floor will turn the number into an integer. round will round up so the numbers will be integers between 1 and 100.

You should be able to integrate that into the script to get different times.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Image Rotation
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.49622 seconds with 12 queries