PDA

Click to See Complete Forum and Search --> : water effect



BradBradleySL
10-20-2000, 01:20 PM
Johnie-
With this new Javascript ability you have discovered, could we now create the javascript ripple effect?

Brad

johnie
10-20-2000, 01:36 PM
I'll Try it.

It should be possible.

johnie
10-20-2000, 01:51 PM
I found this script

<!--Change following reflection image to your own-->
<img id="reflect" src="reflect.jpg">
<br>
<script language="JavaScript1.2">

/*
Image reflection script (Submitted by Savio, savio_d_souza@hotmail.com)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

function f1(){
setInterval("mdiv.filters.wave.phase+=10",100);
}

if (document.all){
document.write('<img id=mdiv src="'+document.all.reflect.src+'" style="filter:wave(strength=3,freq=3,phase=0,lightstrengt h=30) blur() flipv()">')
window.onload=f1
}

</script>
I'll see if I can make it work from within a swf. It should be easy as pie:

After I spend hours banging my head against the wall to get it to work.

johnie
10-20-2000, 03:35 PM
I tried a couple of different things and still it is not working. When you use the write.document function it replaces what you write with it with the pages HTML- so obviously that won't work.

I have been able to produce something with an overlaying DIV. I'll look some more.

BradBradleySL
10-20-2000, 03:55 PM
It replaces, what the script replaces, the html that KoolMoves makes? I wish I could try it, but I am at work:( Tell me what results you get, I will try it out myself tonight.

Brad

johnie
10-20-2000, 04:28 PM
It won't work.

Objects cannot take on the Filters.

We can use CSS to overlay a riplling Semi Transparent GIFF or PNG- That will give us the effecr we are going for.

But that script and the Img tag in a DIV and then Write a CSS so that it overlays our SWF- Easy as Pie.

This is also something you may want though:

javascript: document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id=test8 width=550 height=300><param name="movie" value="test8.swf"><param name="quality" value="high"><param name="play" value="true"><param name="bgcolor"value="#ffffff"></OBJECT>')


Replace test 8 with the name of your SWF- This will let you swap SWF's while a movie is playing.

The Artexer
10-20-2000, 04:45 PM
Originally posted by johnie
It won't work.

Objects cannot take on the Filters.

We can use CSS to overlay a riplling Semi Transparent GIFF or PNG- That will give us the effecr we are going for.

But that script and the Img tag in a DIV and then Write a CSS so that it overlays our SWF- Easy as Pie.

This is also something you may want though:

javascript: document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id=test8 width=550 height=300><param name="movie" value="test8.swf"><param name="quality" value="high"><param name="play" value="true"><param name="bgcolor"value="#ffffff"></OBJECT>')


Replace test 8 with the name of your SWF- This will let you swap SWF's while a movie is playing.


johnie

Can You Tell Me What this code is and what does it do?

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

Is it the flase code to enable it to play.

johnie
10-20-2000, 05:09 PM
YUP!

Thats what it is in MS IE.

Keep this in Mind I did not save a File with this code in it. You may have to define that as a function in your HTML and then call it. I remember what happened to my FUN files with the IE 5.0-4.X Print screen code.

Okay I tested it Don't directly enter that into the GET URL- Declare a function first.