Chrome Test #1



Late Show Top Ten (plus Chromeffects)


id="ChromeTop10"
classid="CLSID:8A2A7F99-09DA-11D1-B33A-00A0C90A8FB6"
align=baseline
height=400
width=600>



moveNextItem=ChromeTop10.createElement("move3D");
ChromeTop10.scene.add(moveNextItem);
moveNextItem.id="moveNextItem";
moveNextItem.from.x=-1.86;
moveNextItem.to.x=-1.86;
moveNextItem.from.y=-2.01;
moveNextItem.to.y=-1.01;
moveNextItem.duration=3;

move2NextItem=ChromeTop10.createElement("move3D");
ChromeTop10.scene.add(move2NextItem);
move2NextItem.id="move2NextItem";
move2NextItem.from.x=-1.86;
move2NextItem.to.x=-1.86;
move2NextItem.from.y=-3.01;
move2NextItem.to.y=-2.01;
move2NextItem.duration=3;

offItem=ChromeTop10.createElement("move3D");
ChromeTop10.scene.add(offItem);
offItem.id="offItem";
offItem.from.x=-1.86;
offItem.to.x=0;
offItem.from.y=-0.01;
offItem.to.y=0.5;
offItem.to.z=-1;
offItem.duration=3;
offItem.easeIn=1.0;


function clickn(item){
if(lastitem==item+2 && updone){
penult=2+item;
lastitem=item+1;
ChromeTop10.scene.all("sign"+item).hidden=false;
ChromeTop10.scene.all("xsgn"+item).play();
ChromeTop10.scene.all("rot"+item).play();
if(item != 10){
if(item != 9){
ChromeTop10.scene.all("sgn"+penult).hidden=true;
ChromeTop10.scene.all("letter"+penult).hidden=true;
}
updone=false;
if(item != 1){
if(item != 2){
grp2nextitem=ChromeTop10.scene.all("grp"+(item-2));
grp2nextitem.add(move2NextItem);
move2NextItem.play();
}
grpnextitem=ChromeTop10.scene.all("grp"+(item-1));
grpnextitem.add(moveNextItem);
moveNextItem.play();
}
grpitem=ChromeTop10.scene.all("grp"+item);
grpitem.add(moveItem);
moveItem.play();
ChromeTop10.scene.all("letter"+lastitem).color="#D0B030";
offlastitem=ChromeTop10.scene.all("off"+lastitem);
if(lastitem != 10){
offlastitem.add(offItem);
}
offlastitem.play();
}
}
}
function stopn(){
grpitem=ChromeTop10.scene.all("grp"+(lastitem-1));
grpnextitem=ChromeTop10.scene.all("grp"+(lastitem-2));
grp2nextitem=ChromeTop10.scene.all("grp"+(lastitem-3));
updone=true;
if(lastitem != 2){
if(lastitem != 3){
grp2nextitem.remove(move2NextItem);
}
grpnextitem.remove(moveNextItem);
}
grpitem.remove(moveItem);
ChromeTop10.scene.all("letter"+(lastitem-1)).color="#EaCa4a";
}