Script to cycle through colors in a picture

S

schwooba

n00b here. I have a background image in my CSS style sheet that I want
to slowly fade through a couple of colors on my website. Can javascript
selectively choose only one of the colors in the picture? Can this
even be done? Thanks!
 
A

aka

no there is no way (without using server scripts like php) to get the
color in an image. a workaround could be a solution with xmlhttprequest
- a php scripts gets the colour and a js script uses the result.
 
R

Richard Cornford

no there is no way (without using server scripts like php)
to get the color in an image. a workaround could be a
solution with xmlhttprequest - a php scripts gets the
colour and a js script uses the result.

Why use an xml http request? The colors of the image will not change in
real time so if a server side scripting facility exists it could insert
the information directly into the web page and have it available form
the outset. Though I don't see how "use the result" is supposed to work.

Richard.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top