Forum Webscript.Ru

Программирование => JavaScript & JScript => Тема начата: DAL от 05 Августа 2003, 23:48:27

Название: Помогите найти ошибку в тексте
Отправлено: DAL от 05 Августа 2003, 23:48:27
Вот тут ( http://cpclzu.bn.by/daniva/ ) есть скрипт (если нажать на картинку с коробками, то какртинка должна медленно подняться вверх, а на её месте появится другая. Как это можно сдлеать?

Я сделал скрипт, но не могу понять почему он не пашет???

function checkBrowser(){
this.ver=navigator.appVersion
this.dom=document.getElementById?1:0
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
this.ie4=(document.all && !this.dom)?1:0;
this.pc=(navigator.appVersion.indexOf("Mac") == -1)
this.iepc=(this.pc &&  (this.ie4 || this.ie5)==1)
this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
return this
}

bw=new checkBrowser()
//Moves a layer to left and top coordinates
function move(d,t,div,nest){ obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; obj.bottom=d; obj.top=t;
}


var y = 0;
var dest = 0;
var distance = 0;
var step = 0;
var destination = 0;