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

How do I make control "buttons" look transparent in Javascript?

P: 24
I wrote a gallery div where you see a photo, and at the top right corner of the photo I have images of arrows to go back and forth to see other photos, along with other controls.

My question is: My "controls" images (which I drew by hand) have a black background. Is there a way to make the background transparent so that all I see on the photo is the control itself? If this is not doable in Javascript, is it doable in Photoshop, etc, or some other technology? I really don't want to use Flash for this.
Aug 30 '09 #1
Share this Question
Share on Google+
3 Replies


gits
Expert Mod 5K+
P: 5,353
you might play with the css-transparency settings described here ... otherwise you could use a image processing software to create transparent images ... i think gif and png does allow transparent channels ...

kind regards
Aug 30 '09 #2

P: 24
@gits

Thanks. I feel stupid. I did a search and found the answer on Google on how to make a GIF background transparent with "The Gimp". Now my photo browser looks semi-professional.
Aug 30 '09 #3

gits
Expert Mod 5K+
P: 5,353
:) ... glad to hear that you found a suitable solution for your problem ... the gimp will do the job well ...

kind regards
Aug 31 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.