Hi Guys
i have to create a script that is going to send 3+ layers scrolling across the page here is the script
function moveLayers(lay,t1) {
if (t1 == 1) {
t1 = 2
te2(lay);
}
lay2 = lay
var navv = navigator.appName
if (navv == "Netscape"
{
var tet = document.layers[lay]
var leeft = tet.left;
if (leeft < 500) {
tet.left = (tet.left + 10);
}
} else {
tet = document.all[lay].style
leeft = tet.pixelLeft
if (leeft < 500) {
tet.pixelLeft = tet.pixelLeft + 10;
}
}
var ab = "moveLayers('"+lay+"',"+t1+"
";
setTimeout(ab,40);
}
function te2(layed) {
var navv = navigator.appName
if (layed == "abhi"
{
if (navv == "Netscape"
{
document.layers['abhi1'].left = 50
document.layers['abhi2'].left = 50
} else {
document.all['abhi1'].style.pixelLeft = 50
document.all['abhi2'].style.pixelLeft = 50
}
} else if (layed == "abhi1"
{
if (navv == "Netscape"
{
document.layers['abhi'].left = 50
document.layers['abhi2'].left = 50
} else {
document.all['abhi'].style.pixelLeft = 50
document.all['abhi2'].style.pixelLeft = 50
}
} else if (layed == "abhi2"
{
if (navv == "Netscape"
{
document.layers['abhi1'].left = 50
document.layers['abhi'].left = 50
} else {
document.all['abhi1'].style.pixelLeft = 50
document.all['abhi'].style.pixelLeft = 50
}
}
//alert("hi"
}
now the problem is that when we send a 1 layer accross the page the remaining ones must go to a certain place as per the script 50 pix fron the left of the page
but when the script is called a second time
it cause a error it calls both the variables the first and the second and causes a loop and the page has to be then reloaded
please check the page on
thanks in advance
regards
Unicorn11
unicorn11@mailcity.com
[red]Luck is not chance, it's toil; fortune's expensive
smile is earned.[red]
i have to create a script that is going to send 3+ layers scrolling across the page here is the script
function moveLayers(lay,t1) {
if (t1 == 1) {
t1 = 2
te2(lay);
}
lay2 = lay
var navv = navigator.appName
if (navv == "Netscape"
var tet = document.layers[lay]
var leeft = tet.left;
if (leeft < 500) {
tet.left = (tet.left + 10);
}
} else {
tet = document.all[lay].style
leeft = tet.pixelLeft
if (leeft < 500) {
tet.pixelLeft = tet.pixelLeft + 10;
}
}
var ab = "moveLayers('"+lay+"',"+t1+"
setTimeout(ab,40);
}
function te2(layed) {
var navv = navigator.appName
if (layed == "abhi"
if (navv == "Netscape"
document.layers['abhi1'].left = 50
document.layers['abhi2'].left = 50
} else {
document.all['abhi1'].style.pixelLeft = 50
document.all['abhi2'].style.pixelLeft = 50
}
} else if (layed == "abhi1"
if (navv == "Netscape"
document.layers['abhi'].left = 50
document.layers['abhi2'].left = 50
} else {
document.all['abhi'].style.pixelLeft = 50
document.all['abhi2'].style.pixelLeft = 50
}
} else if (layed == "abhi2"
if (navv == "Netscape"
document.layers['abhi1'].left = 50
document.layers['abhi'].left = 50
} else {
document.all['abhi1'].style.pixelLeft = 50
document.all['abhi'].style.pixelLeft = 50
}
}
//alert("hi"
}
now the problem is that when we send a 1 layer accross the page the remaining ones must go to a certain place as per the script 50 pix fron the left of the page
but when the script is called a second time
it cause a error it calls both the variables the first and the second and causes a loop and the page has to be then reloaded
please check the page on
thanks in advance
regards
Unicorn11
unicorn11@mailcity.com
[red]Luck is not chance, it's toil; fortune's expensive
smile is earned.[red]