baboli
Member
با سلام خدمت دوستان عزيز اين كد براي ايجاد 24 افكت بر روي دو تصوير است
يعني دو تصوير با افكتهاي مختلف بدنبال هم نمايش داده ميشن ولي
اين كداجرا نميشه
لطفا اين كد رو بررسي كنين ومشكل اونو به من بگين
با تشكر 8)
[hr:b9bddeed7d]
يعني دو تصوير با افكتهاي مختلف بدنبال هم نمايش داده ميشن ولي
اين كداجرا نميشه
لطفا اين كد رو بررسي كنين ومشكل اونو به من بگين
با تشكر 8)
[hr:b9bddeed7d]
کد:
<script>
var transitionName=
["Box In","Box Out",
"Circle In","Circle Out",
"Wipe Up","Wipe Down","Wipe Right","Wipe Left",
"vertical Blinds","Horizontal Blinds",
"Checkerboard Across","Checkerboard Down",
"Random Dissolve",
"Split Vertical In","Split Vertical Out",
"Split Horizontal In","Split Horizontal Out",
"Strips Left Down","Strips Left Up",
"Strips Right Down","Strips Left Up",
"Random Bars Horizontal","Random Bars vertical",
"Random"];
var counter=0;
var whichImage=true;
function blend()
{
if(whichImage) {
image1.filters("revealTrans").apply();
image1.style.visibility="hidden";
image1.filters("revealTrans").play();
}
else {
image2.filters("revealTrans").apply();
image2.style.visibility="hidden";
image2.filters("revealTrans").play();
}
}
function reBlend(fromImage)
{
counter++;
if(fromImage) {
image1.style.zIndex -=2;
image1.style.visibility="visible";
image1.filters("revealTrans").transition=counter%24;
{
else {
image1.style.zIndex +=2;
image2.style.visibility="visible";
image1.filters("revealTrans").transition=counter%24;
{
whichImage=!whichImage;
blend();
transitionDisplay.innerHTML="Transition"+counter%24+
":<BR>"+transitionName[counter%24];
}
</script>