Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Pessoal, não sei se aqui é o lugar certo para postar isso, caso não seja por favor, me digam onde devo postar...
Minha duvida é a seguinte:
Preciso colocar um "include" em uma página, e como andei lendo sei que preciso salvar a página como shtml, fiz tudo certinho para chamar meu arquivo .txt, na minha máqui rola tudo certinho pelo dreamweaver mas no servidor (zeronet) não rola de jeito nenhum...
estou enganado em alguma coisa?
olha um trecho do código:
<html>
<head>
<title>:: Texto rolante ::</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#EEEDE2" text="#000000">
<script language="JavaScript1.2">
var texto='**<!--#include file="./teste.txt" -->**'
var largura=275
var altura=200
var topo=10
var esquerda=10
var velocidade=1
var fonte='verdana'
var fonte_size='10'
var parar=1
//-----------------------------------------------------------------
document.write("<div id=\"agenda\" style=\"position:absolute; left:"+esquerda+"; top:"+topo+"; width:"+largura+"px; height:"+altura+"px; z-index:6; font-family:"+fonte+"; font-size:"+fonte_size+"px \">")
var tabela_ini=""
var tabela_fim=""
velocidade=(document.all)? velocidade : Math.max(1, velocidade-1)
var velocidade2=velocidade
var pausa=(parar==0)? velocidade2: 0
var iedom=document.all||document.getElementById
var alt_atual=''
var ms_marquee, ns_marquee
function cria_marquee(){
if (iedom){
ms_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
ms_marquee.style.top=altura+8
ms_marquee.innerHTML=tabela_ini+texto+tabela_fim
alt_atual=ms_marquee.offsetHeight
}else if (document.layers){
ns_marquee=document.ns_marquee.document.ns_marquee2
ns_marquee.top=altura+8
ns_marquee.document.write(tabela_ini+texto+tabela_fim)
ns_marquee.document.close()
alt_atual=ns_marquee.document.height
}
tempo=setInterval("rolagem()",20)
}
window.onload=cria_marquee
function rolagem(){
if (iedom){
if (parseInt(ms_marquee.style.top)>(alt_atual*(-1)+8))
ms_marquee.style.top=parseInt(ms_marquee.style.top)-velocidade2
else
ms_marquee.style.top=altura+8
}else if (document.layers){
if (ns_marquee.top>(alt_atual*(-1)+8))
ns_marquee.top-=velocidade2
else
ns_marquee.top=altura+8
}
}
if (iedom||document.layers){
with (document){
if (iedom){
write('<div style="position:relative;width:'+largura+';height:'+altura+';overflow:hidden" onMouseover="velocidade2=pausa" onMouseout="velocidade2=velocidade">')
write('<div id="iemarquee" style="position:absolute;left:0;top:0;width:100%;">')
write('</div></div>')
}else if (document.layers){
write('<ilayer width='+largura+' height='+altura+' name="ns_marquee">')
write('<layer name="ns_marquee2" width='+largura+' height='+altura+' left=0 top=0 onMouseover="velocidade2=pausa" onMouseout="velocidade2=velocidade"></layer>')
write('</ilayer>')
}
}
}
</script>
</body>
</html>
também já tentei com <!--#include virtual="./teste.txt" -->
Obrigado desde já galera...
Carregando comentários...