View Full Version : Fading Image ???

07-24-2002, 12:19 AM
Hello @all

i'm beginner in Java programming and i have this problem:

I use the following code in a html-file

<style type="text/css">
#popupimage01 { position: absolute; visibility: hidden }
same lines behind i wrote this:

<img src="images/picA_100.jpg" alt="picA" border="0" style="cursor:hand"
width="100" height="80">
and later i place this:

<div id="popupimage01">
<img src="images/picA_big.jpg" width="420" height="340">
for to see the big image

for this i use this script

function view_image(user,ValueShow)
var mousex = window.event.x;
var mousey = window.event.y;
user.style.visibility = ValueShow;
user.style.left; user.style.top;

it works good and the big image popup if i move the mouse over the smal image.

But, what i not now is,
what code is to change ant to add,
so that the big image comes in with fading effect,
and not so as now, similar to a flashlight.


07-24-2002, 05:40 PM
Hello @ all

I need help ??

please could somone do it

Quiet Storm
07-24-2002, 07:01 PM
Do you mean to do something like this?:


07-24-2002, 07:47 PM
Hello Quiet Storm,

no it is not exact the same.

I have 20 big pictures.
in the website i show only a small picture( resize to 100pix) of each big picture.

when i move the mous over the sma picture i switch a <div> </div> on an the big picture is visible.

look my first posting with one example code.

now i would like to modify this code, so tah the pictures become a fading effekt.

i try this modification in this case it works normal (without fading effect's)

function view_image(user,ValueShow)
var mousex = window.event.x;
var mousey = window.event.y;
//user.filter = 'revealTrans(Duration=4, Transition=12)' ;
user.style.visibility = ValueShow;

parameter discription:

(user=divname, i.e. popupimage01 or popupimage01 ......)
(ValueShow='visible' or 'hidden')

when i uncomment the commented lines for to probe the effect's i get errors.

did you now why ???

I didn't.


Roy Sinclair
07-25-2002, 05:02 AM
How about an example you can follow?


Scroll down to the "Show ME" button and press it. Press the "Toggle Transition" button on the Popup window. Is that what you want? If so the code is right there in that popup window.