Ir para conteúdo
Fórum Script Brasil
  • 0

Ajuda Com Espaço Entre Linha


Guest Wellington.S

Pergunta

Guest Wellington.S

Olá pessoal estou com uma bronca pequena mas danada, é o seguinte:

tenho um sistema de noticias mas estou com uma bronca quando a pessoa dá enter ele pula duas linhas ao invés de uma.:

Ex.:

TESTE

TESTE

Onde o correto seria:

TESTE

TESTE

Algum pode me ajudar. segu o código.

<% Response.Buffer = True %>
<!--#include file="conectar.asp"-->
<%
AbreConexao
id = request.querystring("id")
SQL = "SELECT * FROM noticias WHERE ID =" & id & " ORDER BY ID DESC"
Set Rs = Server.CreateObject("ADODB.Recordset")     
  Rs.Open SQL, ConStr, 3, 3
  assunto = Rs("assunto")
  noticia = Rs("noticia")
  data = Rs("data")
user = Rs("user")
email = Rs("email")
%>



<table>
<tr>
    <td width="30">&nbsp;&nbsp;</td>
    <td>         
      <table border="0" cellpadding="3" cellspacing="0" width="530">
    <tr>
      <td><font face="Verdana" size="1" color="black">Data <%=data%> por <b></b> </td>
    </tr>
    <tr>
      <td><img border="0" src="<%=Rs("icone")%>">&nbsp;<font face="Verdana" size="1" color="black">Assunto: <%=assunto%></td>
    </tr>
    <tr>
      <td><font face="Verdana" size="1" color="black">
<%=noticia%>
      </td>
    </tr>
      </table>
</td>
 </tr>
</table>

Link para o comentário
Compartilhar em outros sites

6 respostass a esta questão

Posts Recomendados

  • 0

tenta:

<!--#include file="restrito.asp"-->
<!--#include file="conectar.asp"-->
<%
Dim data, dia, mês, ano
dia = Day(now())
mês = Month(now())
ano = Year(now())
data = dia & "/" & mês & "/" & ano
%> 

&lt;script language="Javascript1.2"><!-- // load htmlarea
_editor_url = "htmlarea/"; // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
document.write(' language="Javascript1.2"></scr' + 'ipt>'); 
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// --></script>
&lt;script language="javascript">
function showpic()
{
if (!document.images)
return
document.images.pictures.src=
"images/" + document.nyheter.bild.options[document.nyheter.bild.selectedIndex].value
}
</script>
<html>
<head>
<title>Enviado Noticias - Mantido por ChacalNews</title>
<link rel="stylesheet" type="text/css" href="estilo.css">
&lt;script src="funcoes.js"></script>
</head>
<body bgcolor="#F7F7F7"> 

&lt;script src="funcoes.js"></script>
</head>
<body text="#696969" bgcolor="#696969">
<!--#include file="topo.inc"-->
<%
AbreConexao
If Request.form("enviado") = "sim" then
noticia = replace(request.form("noticia"), "'", "''")
noticiad = replace(noticia, vbcrlf, "<br>" & vbcrlf)

Sql = "INSERT INTO noticias (user, data, assunto, noticia, email, icone) "
Sql = Sql & "VALUES('" & Request.Form("user") & "','"
Sql = Sql & Request.Form("data") & "','" & Request.Form("assunto") & "','" & noticiad & "','" & Request.Form("email") & "','" & Request.Form("icone") & "')"
Conexao.Execute(Sql)

SQL = "SELECT * FROM noticias ORDER BY id DESC"
Set rs = Conexao.Execute(SQL)
noticia1 = rs("id")
noticia2 = noticia1 + 1

%>"


<font face="Verdana"><font size="2" color="#FFFFFF" face="Verdana"><b>Noticia enviada com sucesso!</b><BR>
Obrigado <%=Session("login")%>!</font><br>

<font size="2"><a href="ver.asp"><b>Clique Aqui</b> para ver todas as notícias</a> OU<BR>
<a href="noticia.asp?id=<%=noticia2%>"><B>Clique Aqui</b> Para ver somente a que você postou</font>
<% else %>
</font>
<form action="enviar.asp" method="post" name="form">
<input type="hidden" value="sim" name="enviado">
<input type="hidden" value="<%=Session("login")%>" name="user">
<input type="hidden" value="<%=data%>" name="data">
<input type="hidden" value="<%=Session("email")%>" name="email">
<table border=1 width="600" cellspacing="1" cellpadding="0" bgcolor="#ffffff" align="center">
<tr>
<td bgcolor="#000000">
<table bgcolor="#FFFFFF" width="100%" cellspacing="0">
<tr>
<td bgcolor="#9AD3F9" rowspan="2"><b><font color="#7C7C7C" size=2>Iniciar Nova Noticia</font></b></td>
</tr>
</table>
</td>
</tr><tr>
<td bgcolor="#000000">
<table width="100%" cellpadding="3" cellspacing="0" bgcolor="#ECECEC">
<tr>
<td bgcolor="#FDFDFD" width="23%"><font size=2 color="#7C7C7C"><b>Título:</b></font></td> <td bgcolor="#FDFDFD" align="left"><table cellpadding="0" cellspacing="0">
<tr>
<td><td width="21"><input type="radio" value="imagens/xx.gif" checked name="icone"></td>
<td width="81"><img border="0" src="imagens/xx.gif" width="13" height="16"></td></td><td> <font size=2><input type=text name="assunto" value="" size="60" maxlength="200"></font></td>
</tr>
</table></td>
</tr>
</a> </table>

</td>
</tr>
<tr>
<td bgcolor="#000000">
<table align="center" width="500" cellpadding="3" cellspacing="0" bgcolor="#FDFDFD">


<tr>
<td valign=top bgcolor="#ffffff" width="23%"><font size=2 color="#7C7C7C"><b>Mensagem:</b></font></td>
<td bgcolor="#ffffff"><font size="2"> 
<textarea name="noticia" id="meddelande" cols="80" rows="10" class="inmatning" style="border-style: solid; border-width: 2"></textarea> 


</font><BR></td>
</tr>
</table>
</td>
</tr><tr>
<td bgcolor="#9AD3F9">
<table align="center" width="500">
<tr>
<td align="center">
<input type="submit" value="=-Postar-=">
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

</body>
</html> 

<% FechaConexao
end if %>
&lt;script language="JavaScript1.2" defer>
editor_generate('noticia');
</script>

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,2k
    • Posts
      651,9k
×
×
  • Criar Novo...