应该是绝对定位后直接移动
移动完成将ZINDEX加一保证会遮住下一页...
关键的是移动线路的算法,如果是函数就好理解了
找到调用的方法了
大家可以去查看源代码
http://images1.wowchina.com/burningcrusade/townhall/images/bestiary/bestiary-script.js
***************
function moveItem(thisCreature) //Animation Control Function
{
if(okayToGo && thisCreature != currentCreature) //if the function is not locked and the user clicked on a new item (not the current one)
{
containerSwitch(aBestiary[thisCreature]);
newCreature = thisCreature; //grabs the parameter, stores it for later use
document.getElementById("mainContainer_"+theNewContainer).style.zIndex = 50+10*forwardBackward; //tricky; if forward, new item slides in behind the current item
document.getElementById("mainContainer_"+theOldContainer).style.zIndex = 50+20*forwardBackward; //if backward, new item slides in in front of the current item
startTheMove = window.setInterval("rightOrLeft()",20); //calls the Animation Execution Function
}
}
[ 本帖最后由 nightheart 于 2007-3-13 16:37 编辑 ]