<!--#include file="config.asp"-->
<html>
<head>
<title><%=TS%></title>
<link rel="stylesheet" type="text/css" href="estilo.css">
</head>
<body text="#000000">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" ><strong>Notícias </strong></td>
</tr>
<tr><td><br></td></tr>
</table>
<td><a name= "scrollingCode"></a>
<marquee behavior= "scroll" align= "center" direction= "up" height="60" scrollamount= "2" scrolldelay= "90" onMouseOver='this.stop()' onMouseOut='this.start()'>
<table width="80%" cellpadding="0" cellspacing="0" align="center">
<% sqlstmt = "SELECT * FROM noticias ORDER BY data, id DESC"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sqlstmt, Dados, 3, 3
TotalRecs = rs.recordcount
x = 0
For x = 1 to 9999
If rs.eof then
Exit For
Else
date1 = rs("data")
id = rs("ID")
name1 = rs("titulo")
link = "<a href='view.asp?id=" & id & "'>" & date1 & "</a>"
description = name1
%>
<tr>
<td height="2" valign="top"><font face="Geneva, Arial, Helvetica, san-serif" size="1" class="home">
<span class="home">
<% =link %>
--
<% =description%>
</span></font>
</tr>
<tr>
<td height='5' valign='bottom'><img src="imagens/pixel.gif" width="1" height="1">
</tr>
<%
rs.MoveNext
End If
Next%>
</table></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#FF9900">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"> </td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Sera Que Isso é Possível?
Started By leilinda, 19/05/2004, 15:06
1 reply to this topic
#1
Posted 19/05/2004, 15:06
Pessoal preciso que este sistema de notícias abra em uma janela a parte. Não sei se o codígo abaixo é suficiente para voces me ajudarem ...se não for eu vou postar o restante. Na realidade o que eu quero é quando a pessoa clicar na notícia que ela quer ler, esta notícia devera abrir em uma janela a parte. sera que deu para entender?
#2
Posted 19/05/2004, 16:04
muda isso
e insere isso:
ajuda?
qualquer coisa é só postar
abraços
t+
link = "<a href='javascript:Pop(" & id & ")'>" & date1 & "</a>"e insere isso:
<script LANGUAGE="JavaScript">
<!--
void function Pop(ID)
{
window.open('_g5_07;.aspx?ID='+ID,'NOTICIAS','toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=410,height=400,left=300,top=120');
}
// -->
</script>ajuda?
qualquer coisa é só postar
abraços
t+
1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)










