473,473 Members | 2,141 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Javascript effects

JS
Hi all,
I'm trying to write a script that will work in IE, Mozilla and Safari (all
sensible browsers really) which will change the brightness and the contrast
of an image.
The brightness of the image needs to change at the same time as the contrast
and in the same increments so when brightness is 45 contrast is 45 etc etc.
I'm really not sure where to start so any information would be good.
Many thanks in advance
James

--

Mar 10 '07 #1
4 1910
VK
On Mar 10, 3:21 pm, "JS" <james.sarjean...@ntlworld.comwrote:
Hi all,
I'm trying to write a script that will work in IE, Mozilla and Safari (all
sensible browsers really) which will change the brightness and the contrast
of an image.
AFAIK only IE provides graphical filters you can apply onto image. So
universally you can only play with opacity settings for your image.
You also may place differently colored DIVs atop of your image - by
playing with their opacity you may reach some color effects. That
doesn't help much brightness / contrast regulation.

Mar 10 '07 #2
"VK" <sc**********@yahoo.comwrote in message
news:11**********************@n33g2000cwc.googlegr oups.com...
On Mar 10, 3:21 pm, "JS" <james.sarjean...@ntlworld.comwrote:
>Hi all,
I'm trying to write a script that will work in IE, Mozilla and Safari (all
sensible browsers really) which will change the brightness and the contrast
of an image.

AFAIK only IE provides graphical filters you can apply onto image. So
universally you can only play with opacity settings for your image.
You also may place differently colored DIVs atop of your image - by
playing with their opacity you may reach some color effects. That
doesn't help much brightness / contrast regulation.
You can achieve opacity in Mozilla, Safari, Gecko, Netscape, Konqueror, and Internet
Explorer.

KHTMLOpacity, filter, MozOpacity, and opacity for example.

-Lost
Mar 11 '07 #3
On Sun, 11 Mar 2007 06:43:28 +0100, -Lost <mi*********@comcast.netwrote:
"VK" <sc**********@yahoo.comwrote in message
news:11**********************@n33g2000cwc.googlegr oups.com...
>On Mar 10, 3:21 pm, "JS" <james.sarjean...@ntlworld.comwrote:
>>Hi all,
I'm trying to write a script that will work in IE, Mozilla and Safari
(all
sensible browsers really) which will change the brightness and the
contrast
of an image.

AFAIK only IE provides graphical filters you can apply onto image. So
universally you can only play with opacity settings for your image.
You also may place differently colored DIVs atop of your image - by
playing with their opacity you may reach some color effects. That
doesn't help much brightness / contrast regulation.

You can achieve opacity in Mozilla, Safari, Gecko, Netscape, Konqueror,
and Internet
Explorer.

KHTMLOpacity, filter, MozOpacity, and opacity for example.

-Lost

And in Opera too, using opacity in css and javascript, although Opera's
own documentation only mentions it in their Widgets section.

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Mar 11 '07 #4
JS
Hi all,
Thanks for all your help. I had a look into your solutions and it seemed not
too bad but now the client has moved the deadline so I will knock a quick
Flash file up instead.
Thanks again
James

--

"OmegaJunior" <om*********@spamremove.omegajunior.netwrote in message
news:op***************@cp139795-a.landg1.lb.home.nl...
On Sun, 11 Mar 2007 06:43:28 +0100, -Lost <mi*********@comcast.netwrote:
"VK" <sc**********@yahoo.comwrote in message
news:11**********************@n33g2000cwc.googlegr oups.com...
On Mar 10, 3:21 pm, "JS" <james.sarjean...@ntlworld.comwrote:
Hi all,
I'm trying to write a script that will work in IE, Mozilla and Safari
(all
sensible browsers really) which will change the brightness and the
contrast
of an image.

AFAIK only IE provides graphical filters you can apply onto image. So
universally you can only play with opacity settings for your image.
You also may place differently colored DIVs atop of your image - by
playing with their opacity you may reach some color effects. That
doesn't help much brightness / contrast regulation.
You can achieve opacity in Mozilla, Safari, Gecko, Netscape, Konqueror,
and Internet
Explorer.

KHTMLOpacity, filter, MozOpacity, and opacity for example.

-Lost

And in Opera too, using opacity in css and javascript, although Opera's
own documentation only mentions it in their Widgets section.

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Mar 11 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Andy Fish | last post by:
Hi, I want to use an anchor tag to invoke some javascript and I've read that it's bad form to use <a href="javascript:foo()"> I've read endless usenet posts and hint sites on the net, they all...
18
by: Arthur Connor | last post by:
Is there a way of extracting the Javascript code from the "normal" HTML code (e.g. similar to CSS code which can be put into a separate file) ? If you offer a solution: can I determine in your...
1
by: Rob | last post by:
I have a date text box (input type = text) in an ASP.NET/Javascript environment. I wanted to force the users to enter dates in a "__/__/____", "dd/mm/yyyy" or similar format. The textbox needs to...
10
by: Simon Wigzell | last post by:
A client of mine has long used HTML format emails to promote his business, always to existing clients and contacts, not as spam. They have become more sophisticated over time adding javascript most...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
20
by: cwdjrxyz | last post by:
There have been fancy dhtml text effects since the early days of javascript. The rainbow text effect was one of the early ones. While some such effects may be fun on private pages, they can easily...
21
by: petermichaux | last post by:
Hi, I've been asking questions about library design over the last week and would like to get feedback on my overall idea for a JavaScript GUI library. I need a nice GUI library so there is a...
18
by: mistral | last post by:
Is there some other (more advanced) effects for status bar, other than standard Scroller Bar, TypeWriter Scroller, Flashing Bar, Decrypter, Ticker, World Clock?
4
by: amardeep chana | last post by:
Hi, I've spent so long trying to get this to work. First I used this tutorial: http://webdesign.torn.be/tutorials/javascript/prototype/page-loading/ For some reason, it doesn't work for me: ...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.