16 messaggi dal 02 settembre 2003
www.kaidos.it
Grazie per la risposta bright soul adesso ti posto tutto il codice della pagina:
<%@language=Vbscript %>
<!--#include virtual file="adovbs.inc"-->
<html>
<head>
<title>welcome to site Lino Rosi</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="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);
// -->

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d )&&d.all) x=d.all ; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i] ;
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<link rel="stylesheet" href="menu.css" type="text/css">
</head>
<body bgcolor="#1F2E3F" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('page/num/roll.gif','page/num/murol_roll.jpg')">
<table cellspacing="0" cellpadding="0" border="0" height="220" width="639">
<tr>
<td height="140" valign="top" colspan="2">
<%dim objconn,mysql,rst
set objConn = Server.CreateObject("ADODB.Connection")
objConn.ConnectionString="DRIVER={Microsoft Access Driver (*.mdb)};" & "DBQ= " + Server.MapPath ("lino.mdb")
objConn.open
mysql = "SELECT top 8 * FROM ellerre order by id desc"
set rst = Server.CreateObject("ADODB.Recordset")
rst.open mysql, objConn %>
<img src="page/testa.jpg" width="568" height="151"></td>
<td width="10" height="140" valign="top" background="page/sfo01.gif" class="spessore"><img src="page/scritta_date.gif" width="177" height="31"><br>
<table width="95%" border="0" cellspacing="0" cellpadding="0" height="30">
<tr align="left">
<td colspan="4">&nbsp;</td>
</tr>
<tr align="left">
<% do while not rst.eof %>
<td width="4%" class="tito">&nbsp;</td>
<td width="11%" class="tito"><%=rst("data")%></td>
<td width="5%" class="tito">&nbsp;</td>
<td width="80%" class="tito">
<script language="JavaScript">
function popup(pagina){window.open(pagina, "popup", "toolbars=false, resizable=false, width=400, height=300")}
</script>
<%
Response.write "<a href=""Javascript:popup('pop.asp?id=" & rst("ID") & "')"">" & rst("luogo")& "</a>"
%>
</td>
</tr>
<tr align="left">
<%
rst.movenext
loop
%>
<td height="2" class="tito">&nbsp;</td>
<td height="2" class="tito">&nbsp;</td>
<td width="5%" height="2" class="tito"><img src="transparent.gif" width="1" height="9"></td>
<td class="tito" height="2" width="80%">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<%rst.close
set rst=nothing
objconn.close
set objconn = nothing
%>
<tr>
<td valign="top" width="216" height="282" rowspan="2" class="spessore" background="page/sfo02.gif"><img src="page/scritta_news.gif" width="216" height="32"><br>
<%dim objconn1,mysql1,rst1
set objConn1 = Server.CreateObject("ADODB.Connection")
objConn1.ConnectionString="DRIVER={Microsoft Access Driver (*.mdb)};" & "DBQ= " + Server.MapPath ("lino.mdb")
objConn1.open
mysql1 = "SELECT top 2 * FROM ellerrenews order by id desc"
set rst1 = Server.CreateObject("ADODB.Recordset")
rst1.open mysql1, objConn1 %>
<br>
<table width="207" border="0" cellpadding="0" cellspacing="0" height="20">
<tr>
<% do while not rst1.eof %>
<td class="concerti" width="10" height="9">&nbsp; </td>
<td class="concerti" height="9" width="197">
<div align="left"><%=rst1("titolo")%></div>
</td>
</tr>
<tr>
<td class="news2" width="10" height="12">&nbsp;</td>
<td class="news2" height="12" width="197">
<script language="Javascript">
function popup(pagina){window.open(pagina, "news", "toolbars=false, resizable=false, width=400, height=300")}
</script>
<%
Response.write "<a href=""Javascript:popup('news.asp?id=" & rst1("ID") & "')"">" & rst1("news")& "</a>"
%>
</td>
</tr>
<tr>
<td class="news2" width="10" height="10">&nbsp;</td>
<td class="news2" height="10" width="197">&nbsp; </td>
</tr>
<%rst1.movenext
loop
%>
</table>
</td>
<%rst1.close
set rst1=nothing
objconn1.close
set objconn1 = nothing
%>
<td width="352" height="230" valign="top" bgcolor="#FFFFFF" class="tre"><img src="page/scritta_disco.gif" width="352" height="32">
</td>
<td width="10" height="230" valign="top" background="page/sfo04.gif"><img src="page/scritta_gallery.gif" width="177" height="32"><br>
<table width="177" border="0" cellspacing="0" cellpadding="0" height="117">
<tr>
<td colspan="9" height="8"><img src="transparent.gif" width="1" height="5"></td>
</tr>
<tr>
<td rowspan="9" width="13">&nbsp;</td>
<td width="34"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image43','','page/num/roll.gif',1)"><img name="Image43" border="0" src="page/num/01.gif" width="34" height="34"></a></td>
<td width="5"><img src="transparent.gif" width="5" height="7"></td>
<td width="34"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image44','','page/num/murol_roll.jpg',1)"><img name="Image44" border="0" src="page/num/02.gif" width="34" height="34"></a></td>
<td width="5"><img src="transparent.gif" width="5" height="5"></td>
<td width="34"><a href="form_immissione_dati.htm" onmouseover="roll.gif['page/num'].src='roll.gif'; return true" onmouseout="roll.gif['page/num'].src='01.gif';">
</a><a href="ellerre.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image45','','page/num/roll.gif',1)"><img name="Image45" border="0" src="page/num/03.gif" width="34" height="34"></a></td>
<td width="5"><img src="transparent.gif" width="5" height="5"></td>
<td width="34"><a href="pop.asp" onmouseover="document.images['immagine'].src='page/num/roll.gif'; return true" onmouseout="document.images['immagine'].src='page/num/01.gif';">
<img id="immagine" src="page/num/01.gif" width="34" height="34" border="0"></a>
</td>
<td rowspan="9" width="13">&nbsp;</td>
</tr>
<tr>
<td height="2" colspan="7"><img src="transparent.gif" width="5" height="5"></td>
</tr>
<tr>
<td><img src="page/num/04.gif" width="34" height="34"></td>
<td>&nbsp;</td>
<td><img src="page/num/03.gif" width="34" height="34"></td>
<td>&nbsp;</td>
<td><img src="page/num/02.gif" width="34" height="34"></td>
<td>&nbsp;</td>
<td><img src="page/num/01.gif" width="34" height="34"></td>
</tr>
<tr>
<td height="2" colspan="7"><img src="transparent.gif" width="5" height="5"></td>
</tr>
<tr>
<td><img src="page/num/01.gif" width="34" height="34"></td>
<td>&nbsp;</td>
<td><img src="page/num/02.gif" width="34" height="34"></td>
<td>&nbsp;</td>
<td><img src="page/num/03.gif" width="34" height="34"></td>
<td>&nbsp;</td>
<td><img src="page/num/04.gif" width="34" height="34"></td>
</tr>
<tr>
<td height="2" colspan="7"><img src="transparent.gif" width="5" height="5"></td>
</tr>
<tr>
<td><img src="page/num/04.gif" width="34" height="34"></td>
<td>&nbsp;</td>
<td><img src="page/num/03.gif" width="34" height="34"></td>
<td>&nbsp;</td>
<td><img src="page/num/02.gif" width="34" height="34"></td>
<td>&nbsp;</td>
<td><img src="page/num/01.gif" width="34" height="34"></td>
</tr>
<tr>
<td colspan="7" height="2"><img src="transparent.gif" width="5" height="5"></td>
</tr>
<tr>
<td><img src="page/num/01.gif" width="34" height="34"></td>
<td>&nbsp;</td>
<td><img src="page/num/02.gif" width="34" height="34"></td>
<td>&nbsp;</td>
<td><img src="page/num/03.gif" width="34" height="34"></td>
<td>&nbsp;</td>
<td><img src="page/num/04.gif" width="34" height="34"></td>
</tr>
<tr>
<td colspan="9" height="14" class="spessore"><img src="transparent.gif" width="1" height="10"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="352" height="2" valign="top"><img src="page/scritta_audio.gif" width="352" height="32"><br>
</td>
<td width="10" height="2" valign="top"><img src="page/scritta_video.gif" width="177" height="32"></td>
</tr>
<tr>
<td valign="top" width="216" background="page/sfo05.gif" height="78"><img src="page/Untitled-1.gif" width="216" height="64"><br>
<a href="ingresso.htm">Area riservata</a></td>
<td width="352" height="78" valign="top" background="page/sfo06.gif">
<table width="352" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
<td width="10" height="78" valign="top" background="page/sfo07.gif">
<table width="177" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
<p class="spessore">&nbsp;</p>
<p><br>
</p>
</body>
</html>
come dicevo la css non funziona la pagina asp considera solo la css di default di ultradev. Lo so che sono uno scocciatore ma grazie a voi ed a qualche persona che lavora con me sto imaparndo l'asp,grazie.

crashnet
11.886 messaggi dal 09 febbraio 2002
Contributi
mmhmhm.... è un po' enorme come codice, prendo una linea a caso:

<td colspan="9" height="14" class="spessore"><img src="transparent.gif" width="1" height="10"></td>

lo stile viene applicato a questa cella (TD) secondo le specifiche della classe "spessore".
Nel tuo codice hai inserito un foglio di stile in questo modo:

<link rel="stylesheet" href="menu.css" type="text/css">

questa dichiarazione va bene, ma devi assicurarti che effettivamente esista il file menu.css, che si trovi nella stessa cartella di questa pagina asp e che contenga al suo interno la linea:

TD.spessore {stile}

o qualcosa di simile...
se ultradev inserisce il suo foglio, ignorando quello che gli dai tu, dovresti rinominare il tuo css e chiamarlo menu.css e piazzarlo nella stessa cartella della asp.
Tienitene sempre una copia, nel caso sfortunato in cui debba essere sovrascritto. ciao

Enjoy learning and just keep making

Torna al forum | Feed RSS

ASPItalia.com non è responsabile per il contenuto dei messaggi presenti su questo servizio, non avendo nessun controllo sui messaggi postati nei propri forum, che rappresentano l'espressione del pensiero degli autori.