Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Marcio Peruchi

Problemas com compatibilidade de navegadores.

Recommended Posts

Boa tarde pessoal.

Não consigo resolver o problema com imcompatibilidade de navegadores, tentei, coloquei id e name em todos os elementos e nada.

Preciso da ajuda de vocês, se possível.

Roda no IE mas nada de rodar no Mozilla.

 

 

Codigo colocado no <head>

 

<script>
var swidth=102
var sheight=82
var sspeed=5
var imagef=''

var leftimage=new Array();
leftimage[0]='<a href="#"><img src="images/mini1.jpg" width=169 height=100 /><a/>'
leftimage[1]='<a href="#"><img src="images/mini2.jpg" width=169 height=100 /><a/>'
leftimage[2]='<a href="#"><img src="images/mini3.jpg" width=169 height=100 /><a/>'

for (mi=0;mi<leftimage.length;mi++)
imagef=imagef+leftimage[mi]


function start(){
if (document.all) return
if (document.getElementById){
document.getElementById("slider").style.visibility="show"
initial6(document.getElementById('slider'))
}
else if(document.layers){
document.slider1.visibility="show"
intialslide()
}
}
function intialslide(){
document.slider1.document.slider2.document.write('<nobr>'+imagef+'</nobr>')
document.slider1.document.slider2.document.close()
thel=document.slider1.document.slider2.document.width
document.slider1.document.slider2.left-=thel
sslide()
}
function sslide(){
if (document.slider1.document.slider2.left>=thel*(-1)){
document.slider1.document.slider2.left-=sspeed
setTimeout("sslide()",500)
}
else{
document.slider1.document.slider2.left=swidth
sslide()
}
}
function initial6(whichdiv){
tdiv6=eval(whichdiv)
tdiv6.innerHTML=('<nobr>'+imagef+'</nobr>')
tdiv6.style.left=swidth
thel=swidth*leftimage.length
scroll6()
}
function scroll6(){
if (parseInt(tdiv6.style.left)>=thel*(-1)){
tdiv6.style.left=parseInt(tdiv6.style.left)-sspeed
setTimeout("scroll6()",500)
}
else{
tdiv6.style.left=swidth
scroll6()
}
}
</script>

 

Código dentro do <body>

 

<script type="text/javascript">
if (document.all){
document.write('<marquee id="slidere" scrollAmount=5>'+imagef+'</marquee>')
slidere.onmouseover=new Function("slidere.scrollAmount=0")
slidere.onmouseout=new Function("if (document.readyState=='complete') slidere.scrollAmount=5")
}
if (document.layers){
document.write('<ilayer name="slider1" id="slider1" visibility=hide>')
document.write('<layer id="slider2" name="slider2" onMouseover="sspeed=0;" onMouseout="sspeed=5">')
document.write('</layer>')
document.write('</ilayer>')
}
if (document.getElementById&&!document.all){
document.write('<div style="position:absolute;clip:rect(0 102 82 0);">')
document.write('<div id="slider" style="position:relative;" onMouseover="sspeed=0;" onMouseout="sspeed=5">')
document.write('</div></div>')
}
</script>

Link funcionando no IE :

 

http://www.fef.br/ban/teste/incabras/

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.