salve,
ho questo testo scorrevole dove prelievo dei dati da un db ma non mi si visualizza niente neanche un errore dove sbaglio?
<script language="JavaScript1.2">
//Specify the marquee's width (in pixels)
var marqueewidth=150
//Specify the marquee's height
var marqueeheight=150
//Specify the marquee's scroll speed (larger is faster)
var speed=1
//Specify the marquee contents
var marqueecontents='<%
dim titolo13
dim rs13
dim sql13
titolo13=request.querystring("titolo")
Set rs13 = Server.CreateObject("ADODB.Recordset")
sql13="select * from pescare where codcat=1 and titolo='"&replace(titolo13,"'","''")&"'"
rs13.open sql13, dcnDB, 3, 3
if not rs13.eof then
%>
<%=(rs13("descrizione"))%>
<%
end if
rs13.close
set rs13=nothing
%>'
if (document.all){
document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheig ht+'">'+marqueecontents+'</marquee>')}
else if(document.layers){
document.write('<ilayer id="cmarquee01" width="'+marqueewidth+'" height="'+marqueeheight+'"><layer id="cmarquee02" width="'+marqueewidth+'" height="'+marqueeheight+'"></layer></ilayer>')}
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout("window.onresize=regenerate",450)
intializemarquee()
}
}
function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.w rite(marqueecontents)
document.cmarquee01.document.cmarquee02.document.c lose()
thelength=document.cmarquee01.document.cmarquee02. document.height
scrollit()
}
function scrollit(){
if (document.cmarquee01.document.cmarquee02.top>=thel ength*(-1)){
document.cmarquee01.document.cmarquee02.top-=speed
setTimeout("scrollit()",100)
}
else{
document.cmarquee01.document.cmarquee02.top=marque eheight
scrollit()
}
}
window.onload=regenerate2
// -->

-
Rispondi quotando
