Foros del Web » Programando para Internet » ASP Clásico »

Problema con ASP

Estas en el tema de Problema con ASP en el foro de ASP Clásico en Foros del Web. Hola, bueno estoy haciendo un template en dreamweaver, y bueno, cuando le agrego un scroll de noticias me sale perfectamente, pero el fondo que configuro ...
  #1 (permalink)  
Antiguo 10/02/2004, 16:39
 
Fecha de Ingreso: febrero-2004
Ubicación: Lima - Peru
Mensajes: 25
Antigüedad: 20 años, 4 meses
Puntos: 0
Problema con ASP

Hola, bueno estoy haciendo un template en dreamweaver, y bueno, cuando le agrego un scroll de noticias me sale perfectamente, pero el fondo que configuro en el template no me sale una vez que agrego el codigo asp, ya que antes de agregar el código asp si me salia el color de fondo 003366, y cuando agreo asp me sale el fondo blanso, el problema es que en cada página me sale igual probé poniendo el codigo asp en cada página ya no en el template, pero me sale igual, qué debo hacer?, el scroll de noticias me sale perfectamente, pero el fondo es mi problema, quiero que sea el fondo que le pongo.

Cóm puedo hacer o es un conflicto entre el dreamweaver y el asp?

Ojalá y me puedan ayudar
__________________
Gracias
  #2 (permalink)  
Antiguo 10/02/2004, 22:08
 
Fecha de Ingreso: febrero-2004
Mensajes: 65
Antigüedad: 20 años, 4 meses
Puntos: 0
Necesitaria ver el codigo para poder ayudarte, sino se me hace muy dificil poder orientarte en cual puede ser el problema.

Saludos
__________________
Orlando F. Brea
SmartSol - Soluciones Inteligentes


Diseño y Desarrollo de Soluciones Web
  #3 (permalink)  
Antiguo 11/02/2004, 12:03
 
Fecha de Ingreso: febrero-2004
Ubicación: Lima - Peru
Mensajes: 25
Antigüedad: 20 años, 4 meses
Puntos: 0
Hola así es el código sin el ASP y se ve perfectamente, (ojo es una template en VB Script)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body>
<div id="Layer1" style="position:absolute; left:300px; top:126px; width:400px; height:235px; z-index:1"><!-- TemplateBeginEditable name="areaTrabajo" --><!-- TemplateEndEditable --></div>
<div id="noticia" style="position:absolute; left:34px; top:301px; width:210px; height:65px; z-index:2"><!-- TemplateBeginEditable name="noticia" --><!-- TemplateEndEditable --></div>
<table width="200" height="399" border="0" cellpadding="0" cellspacing="0">
<tr>
<th scope="col"><img src="../Imagenes/marcoProFuturo_r1_c1.jpg" width="20" height="99"></th>
<th scope="col"><img src="../Imagenes/marcoProFuturo_r1_c2.jpg" width="199" height="99"></th>
<th scope="col"><img src="../Imagenes/marcoProFuturo_r1_c3.jpg" width="79" height="99"></th>
<th scope="col"><img src="../Imagenes/marcoProFuturo_r1_c4.jpg" width="435" height="99"></th>
<th scope="col"><img src="../Imagenes/marcoProFuturo_r1_c5.jpg" width="29" height="99"></th>
</tr>
<tr>
<th scope="row"><img src="../Imagenes/marcoProFuturo_r2_c1.jpg" width="20" height="188"></th>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="199" height="188">
<param name="movie" value="../Administracion.swf">
<param name=quality value=high>
<embed src="../Administracion.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="199" height="188"></embed>
</object></td>
<td><img src="../Imagenes/marcoProFuturo_r2_c3.jpg" width="79" height="188"></td>
<td><img src="../Imagenes/marcoProFuturo_r2_c4.jpg" width="435" height="188"></td>
<td><img src="../Imagenes/marcoProFuturo_r2_c5.jpg" width="29" height="188"></td>
</tr>
<tr>
<th scope="row"><img src="../Imagenes/marcoProFuturo_r3_c1.jpg" width="20" height="82"></th>
<td><img src="../Imagenes/marcoProFuturo_r3_c2.jpg" width="199" height="82"></td>
<td><img src="../Imagenes/marcoProFuturo_r3_c3.jpg" width="79" height="82"></td>
<td><img src="../Imagenes/marcoProFuturo_r3_c4.jpg" width="435" height="82"></td>
<td><img src="../Imagenes/marcoProFuturo_r3_c5.jpg" width="29" height="82"></td>
</tr>
<tr>
<th scope="row"><img src="../Imagenes/marcoProFuturo_r4_c1.jpg" width="20" height="28"></th>
<td><img src="../Imagenes/marcoProFuturo_r4_c2.jpg" width="199" height="28"></td>
<td><img src="../Imagenes/marcoProFuturo_r4_c3.jpg" width="79" height="28"></td>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="435" height="28">
<param name="movie" value="Web.swf">
<param name=quality value=high>
<embed src="Web.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="435" height="28"></embed>
</object></td>
<td><img src="../Imagenes/marcoProFuturo_r4_c5.jpg" width="29" height="28"></td>
</tr>
<tr>
<th scope="row"><img src="../Imagenes/marcoProFuturo_r5_c1.jpg" width="20" height="15"></th>
<td><img src="../Imagenes/marcoProFuturo_r5_c2.jpg" width="199" height="15"></td>
<td><img src="../Imagenes/marcoProFuturo_r5_c3.jpg" width="79" height="15"></td>
<td><img src="../Imagenes/marcoProFuturo_r5_c4.jpg" width="435" height="15"></td>
<td><img src="../Imagenes/marcoProFuturo_r5_c5.jpg" width="29" height="15"></td>
</tr>
</table>
</body>
</html>

Ahora bien el mismo código pero con ASP:

<!--#include file="../Connections/dtec.asp" -->
<%
Dim noticia
Dim noticia_numRows

Set noticia = Server.CreateObject("ADODB.Recordset")
noticia.ActiveConnection = MM_dtec_STRING
noticia.Source = "SELECT * FROM NOTICIA"
noticia.CursorType = 0
noticia.CursorLocation = 2
noticia.LockType = 1
noticia.Open()

noticia_numRows = 0

If noticia.BOF And noticia.EOF Then
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body>
<div id="Layer1" style="position:absolute; left:300px; top:126px; width:400px; height:235px; z-index:1"><!-- TemplateBeginEditable name="areaTrabajo" --><!-- TemplateEndEditable --></div>
<%Else%>
<marquee onMouseOver="this.stop()" onMouseOut="this.start()" direction="up" scrollamount="1" scrolldelay="60" style="position:absolute; left:35px; top:303px; width:207px; height:62px; text-align:center; font-family:Verdana, Arial, Helvetica, sans-serif; text-shadow:White">
<% While Not noticia.EOF%>
<a href="#" onClick="window.open('../noticia.asp?CODNOTI=<%=noticia.Fields.Item("CODNOT I").Value%>','','toolbar=no,location=no,scrollbar= no,top=100,left=100,width=331,height=343')" target="_self">
<%=noticia.Fields.Item("TITULO").Value%><br><br> </a>
<% noticia.MoveNext
wend
noticia.Close
End If
%>
</marquee>
<table width="200" height="399" border="0" cellpadding="0" cellspacing="0">
<tr>
<th scope="col"><img src="../Imagenes/marcoProFuturo_r1_c1.jpg" width="20" height="99"></th>
<th scope="col"><img src="../Imagenes/marcoProFuturo_r1_c2.jpg" width="199" height="99"></th>
<th scope="col"><img src="../Imagenes/marcoProFuturo_r1_c3.jpg" width="79" height="99"></th>
<th scope="col"><img src="../Imagenes/marcoProFuturo_r1_c4.jpg" width="435" height="99"></th>
<th scope="col"><img src="../Imagenes/marcoProFuturo_r1_c5.jpg" width="29" height="99"></th>
</tr>
<tr>
<th scope="row"><img src="../Imagenes/marcoProFuturo_r2_c1.jpg" width="20" height="188"></th>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="199" height="188">
<param name="movie" value="../Administracion.swf">
<param name=quality value=high>
<embed src="../Administracion.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="199" height="188"></embed>
</object></td>
<td><img src="../Imagenes/marcoProFuturo_r2_c3.jpg" width="79" height="188"></td>
<td><img src="../Imagenes/marcoProFuturo_r2_c4.jpg" width="435" height="188"></td>
<td><img src="../Imagenes/marcoProFuturo_r2_c5.jpg" width="29" height="188"></td>
</tr>
<tr>
<th scope="row"><img src="../Imagenes/marcoProFuturo_r3_c1.jpg" width="20" height="82"></th>
<td><img src="../Imagenes/marcoProFuturo_r3_c2.jpg" width="199" height="82"></td>
<td><img src="../Imagenes/marcoProFuturo_r3_c3.jpg" width="79" height="82"></td>
<td><img src="../Imagenes/marcoProFuturo_r3_c4.jpg" width="435" height="82"></td>
<td><img src="../Imagenes/marcoProFuturo_r3_c5.jpg" width="29" height="82"></td>
</tr>
<tr>
<th scope="row"><img src="../Imagenes/marcoProFuturo_r4_c1.jpg" width="20" height="28"></th>
<td><img src="../Imagenes/marcoProFuturo_r4_c2.jpg" width="199" height="28"></td>
<td><img src="../Imagenes/marcoProFuturo_r4_c3.jpg" width="79" height="28"></td>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="435" height="28">
<param name="movie" value="Web.swf">
<param name=quality value=high>
<embed src="Web.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="435" height="28"></embed>
</object></td>
<td><img src="../Imagenes/marcoProFuturo_r4_c5.jpg" width="29" height="28"></td>
</tr>
<tr>
<th scope="row"><img src="../Imagenes/marcoProFuturo_r5_c1.jpg" width="20" height="15"></th>
<td><img src="../Imagenes/marcoProFuturo_r5_c2.jpg" width="199" height="15"></td>
<td><img src="../Imagenes/marcoProFuturo_r5_c3.jpg" width="79" height="15"></td>
<td><img src="../Imagenes/marcoProFuturo_r5_c4.jpg" width="435" height="15"></td>
<td><img src="../Imagenes/marcoProFuturo_r5_c5.jpg" width="29" height="15"></td>
</tr>
</table>
</body>
</html>

PD: Me sale pero el fondo del documento, es decir el bgcolor ya no sale azul sino blanco, cómo podría hacerlo?
__________________
Gracias
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 13:45.