Ho trovato questo script che vorrei integrare in una pagina asp ma non ci riesco, pur avendo provato e riprovato in diversi modi.
Di seguito il codice da me usato:
Il problema è che non riesco a visualizzare i link (Titolo) uno di seguito all'altro all'interno della stessa finestra.codice:<% sql = "SELECT * from news ORDER BY id DESC" Set rs = Server.CreateObject("ADODB.Recordset") rs.Open sql, conn, 3, 3 While not Rs.eof link = "dettagli.asp?cod=" & rs("id") %> <% response.write Window(rs("menu"), "" & Rs("Titolo") & "", 300, 100, "b", "justify") %> <% 'Scorro i dati Rs.MoveNext Wend 'Pulizia ADO Rs.close Set Rs = Nothing %><% Function Window(title,text,width,height,color,justification) response.write "<table border=0 cellpadding=0 cellspacing=0 width=" & width & " height=" & height & ">" & vblf response.write "<tr height=20><td width=12><img src=immagini/" & color & "lt.gif width=12 height=20 hspace=0 vspace=0 border=0></td><td background=immagini/" & color & "tm.gif><font class=title>" & title & "</font></td><td><img src=immagini/" & color & "rt.gif width=18 height=20 hspace=0 vspace=0 border=0></td></tr>" & vblf response.write "<tr><td width=12 background=immagini/" & color & "lm.gif></td>" & vblf response.write "<td background=immagini/" & color & "bg.gif valign=top><div align=" & justification & "> " & text & " </div> </td>" & vblf response.write "<td width=18 background=immagini/" & color & "rm.gif></td></tr>" & vblf response.write "<tr height=6><td><img src=immagini/" & color & "lb.gif width=12 height=6 hspace=0 vspace=0 border=0></td><td background=immagini/" & color & "bm.gif></td><td><img src=immagini/" & color & "rb.gif width=18 height=6 hspace=0 vspace=0 border=0></td></tr></table> " & vblf End Function %>
Il massimo che sono riuscito ad ottenere è quello sopra, e cioè un record per ogni finestra, quindi tante finestre ripetute per quanti sono i record.
Come posso fare per avere tutti i record all'interno della stessa finestra?
Ringrazio chi vorrà aiutarmi e spero di essermi spiegato in modo abbastanza chiaro
![]()

Rispondi quotando
