Ciao cardo
io uso questa:
<script LANGUAGE="JavaScript">
function apritestata(val)
{
window.open("testate.asp?id="+val,"testata","height=450,width=500,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0,screenX=0,screeny=0,left=0,top=0");
}
</script>
*********
<%
sql1= "Select titolo,testo,data, id from testate where visibile=1"
if aprirecordset(rs,sql1,3,1) then
numero=rs.recordcount
randomize
Indice = Int(numero * Rnd)
rs.move indice
%>
********
<table cellpadding="0" cellspacing="0" border="0" width="300" align="center">
<TR>
<TD align="center" height="50" background="images/tab3.jpg" class="titolobiancone"><%=rs("titolo")%></TD>
</TR>
</TABLE>
<table cellpadding="0" cellspacing="1" border="0" width="300" background="images/chiaro.gif" align="center">
<TR>
<TD>
<!-- S: Tabella interna -->
<table cellpadding="1" cellspacing="0" border="0" width="300" align="center">
<!-- S: Barra interna -->
<TR>
<TD class="norm" width="100%" valign="top" bgcolor="#FFFFFF" >
<div align="justify"><%=left(rs("testo"),500) %>
<% If len(rs("testo"))>500 then %>
.......
<% End If %>
</div>
</TD>
</TR>
<% If len(rs("testo"))>500 then %>
<TR>
<TD width="100%" valign="top" colspan="2" align="center" class="tabella"><a href="javascript:apritestata(<%= rs("id") %>);" >SEGUE...</a> </TD>
</TR>
<% End If %>
<!-- E: Barra interna -->
</TABLE>
<!-- E: Tabella interna -->
</TD>
</TR>
<%rs.close
else%>
<%end if%>
</TABLE>
<table cellpadding="0" cellspacing="0" border="0" width="300" align="center" background="images/scuro.gif">
<TR>
<TD align="center" height="50" class="normbianco" background="images/tab3.jpg">
COMUNICAZIONI ITERNE</TD>
</TR>
</TABLE>
<table cellpadding="0" cellspacing="1" border="0" width="300" align="center" background="images/chiaro.gif">
<TR>
<TD>
<!-- S: Tabella interna -->
<table cellpadding="1" cellspacing="0" border="0" width="300" align="center">
<!-- S: Barra interna -->
<%
sql= "Select titolo,testo,data, id from testate where visibile=1 ORDER BY data desc"
if aprirecordset(rs,sql,3,1) then
do while not rs.eof
test=rs("id")%>
<tr class="norm">
<td width="70" ><a href="javascript:apritestata(<%=rs("id") %>);"><font color="#000099"><%=left(rs("data"),10)%></font> </a></td>
<td><a href="javascript:apritestata(<%=rs("id") %>);"><font color="#000099"><%=rs("titolo") %></font></a></td>
</tr>
<%
rs.movenext
loop
rs.close
else%>
<%end if%>
<!-- E: Barra interna -->
</TABLE>
<!-- E: Tabella interna -->
</TD>
</TR>
<tr>
<td height="2" background="images/scuro.gif"></td>
</tr>
</TABLE>
</td>
</tr>
</table>
**********************
tutto ciò crea nella prima parte news random
nella seconda news ordinate per data con visualizzazione totale in una finestra pop up.....