PDA

View Full Version : Simple filter question


Bobo
08-21-2004, 05:18 PM
About the "progID:DXImageTransform.Microsoft.wheel()" filter, what does it do? This is the only filter I have invariably found to do absolutely nothing no matter what I have tried.

Mr J
08-21-2004, 06:10 PM
Have you used it like this

"progid:DXImageTransform.Microsoft.Wheel(duration=3)"

Bobo
08-22-2004, 08:59 PM
I still get nothing. What is the Wheel filter actually intended to do anyway? :confused:

Mr J
08-23-2004, 02:38 PM
Please try the following, note that this is IE only


<SCRIPT language="javascript">
<!--
newTrans=new Array()
newTrans[newTrans.length] = "progid:DXImageTransform.Microsoft.Wheel(duration=3)"

text=new Array()
text[text.length]="<div style=\"background-color:#00ff00\">Dummy Text<BR>Dummy Text<BR>Dummy Text<BR>Dummy Text<BR>Dummy Text<BR>Dummy Text</div>"
text[text.length]="<div style=\"background-color:#ffff00\">Dummy Text<BR>Dummy Text<BR>Dummy Text<BR>Dummy Text<BR>Dummy Text<BR>Dummy Text</div>"
text[text.length]="<div style=\"background-color:#ff0000\">Dummy Text<BR>Dummy Text<BR>Dummy Text<BR>Dummy Text<BR>Dummy Text<BR>Dummy Text</div>"
text[text.length]="<div style=\"background-color:#0000ff\">Dummy Text<BR>Dummy Text<BR>Dummy Text<BR>Dummy Text<BR>Dummy Text<BR>Dummy Text</div>"

var tranSpeed = 1.0;
var pause = 2000 // pause in milliseconds
var advance = (tranSpeed*1000)+pause
var Running = 0;
var i=0
var txt=0

function Pre_Run(){
if (Running == 1){return}
RunMe();
}

function RunMe(){
Running = 1;
divA.style.filter = newTrans[i];
divA.filters[0].apply();
divA.innerHTML = text[txt]

if(i==newTrans.length -1){
i=-1}

if(txt==text.length-1){
txt=-1}

divA.filters[0].play(tranSpeed);
i++
txt++

setTimeout("RunMe()",advance)
}
// -->
</SCRIPT>

<DIV id=divA style="position:absolute; left:200; top:50px; width:200px;height:200px;font-size:30;filter()">
<a href="#null" onclick="Pre_Run()">Click Me</a></DIV>

mcrilly
08-23-2004, 02:54 PM
<DIV id=divA style...
<DIV id="divA" style...

Just something I noticed.

Bobo
08-23-2004, 06:17 PM
Hey, COOL! So basically it's a dynamic effects filter. I always thought it was a static one. Thanks!