By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,384 Members | 1,794 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,384 IT Pros & Developers. It's quick & easy.

Script to cycle through colors in a picture

P: n/a
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!

Sep 12 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/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.

Sep 12 '06 #2

P: n/a
ak*@aka-fotos.de wrote:
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.
Sep 12 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.