Click to See Complete Forum and Search --> : can this be made cross broswer?


Tasmanian Devil
07-13-2003, 02:18 PM
Can this be made for all bowsers?

<script language="JavaScript">
var specifyimage=new Array() //Your images
specifyimage[0]="photo1.jpg"
specifyimage[1]="photo2.jpg"
specifyimage[2]="photo3.jpg"

var delay=3000 //3 seconds

//Counter for array
var count =1;

var cubeimage=new Array()
for (i=0;i<specifyimage.length;i++){
cubeimage[i]=new Image()
cubeimage[i].src=specifyimage[i]
}

function movecube(){
if (window.createPopup)
cube.filters[0].apply()
document.images.cube.src=cubeimage[count].src;
if (window.createPopup)
cube.filters[0].play()
count++;
if (count==cubeimage.length)
count=0;
setTimeout("movecube()",delay)
}

window.onload=new Function("setTimeout('movecube()',delay)")
</script>

<img src="photo1.jpg" name="cube" border=0 style="filter:progid:DXImageTransform.Microsoft.Stretch(stretchStyle='PUSH')">

man
07-13-2003, 03:32 PM
First of all i have to say, the script works with IE 6 Opera 7.11 and Netscape 7.0

Only in IE you have the effect of turn around the Pic, because special animation filters (IE5.5+ only) like this examples:

oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Wheel(duration=0.5,spokes=5)"
oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Barn(duration=0.5,orientation=horizontal)"
oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Blinds(duration=0.5,bands=5)"


In Opera and NC there is a blend out/in effect
Not bad, too.

How to make this working with all Browser Versions like in IE?
Sorry, I donīt know.