Ciao
ho creato una pag asp con una tabella dove carica le immagini, il mio problema è che vorrei che le immagini caricate dentro la tabella ad un punto andassero a capo ( a secondo della dimensione della tabella) invece mi si proiettano tutte a dx allungandomi la pagina.
Come posso fare?
grazie a tutti![]()
Inserisco il mio codice asp e la pagina ora si vede cosi
link pagina:
http://www.sf-reenactorsoftair.it/pu...lleryprova.asp
<html>
<script>
<!--
/*
Prevents right mouse click from viewing source code
*/
/*
Made By Eddie Traversa http://nirvana.media3.net
*/
function stopmouse(e) {
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
return false;
else if
(navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
alert("Sorry..copyright sf-reenactorsoftair.it");
return false;
}
return true;
}
document.onmousedown=stopmouse;
if (document.layers)
window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=stopmouse;
function P7_JumpMenu(selObj,restore){ //v1.7 by Project Seven
var theFullString = selObj.options[selObj.selectedIndex].value;
if (restore) selObj.selectedIndex=0;
var theLength = theFullString.length;
var endPos = theFullString.lastIndexOf("~");
var theUrl, theTarget, theParent;
if (endPos > 0) {theUrl = theFullString.substring(0,endPos);}
else {theUrl = theFullString;}
endPos++
if (endPos < theLength) {theTarget = theFullString.substring(endPos,theLength)}
else {theTarget = "window:Main";}
if (theTarget == "window:New") {window.open(theUrl);}
else if (theTarget == "window:Main") {eval("parent.location='"+theUrl+"'");}
else {eval("parent.frames[\'"+theTarget+"\'].location='"+theUrl+"'");}
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<head>
<TITLE>Foto Gallery</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.desc { font-family: Arial; font-size: 11px; color: #000000; text-align: left}
.neretto { font-family: Arial; font-size: 11px; font-weight: bold; color: #000000; text-align: right}
-->
</style>
<style type="text/css">
<!--
.nome {
font-family: Arial;
font-size: 14px;
font-weight: bold;
color: #000000;
}
-->
</style>
<script type="text/javascript" language="JavaScript">
<!--
function esempio(str) {
searchWin = window.open(str,'esempio','scrollbars=yes,resizabl e=yes,width=700,height=470,status=no,location=no,t oolbar=no');
}
//-->
</script>
</head>
<body background="../sfondino.jpg" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="670" border="0" cellspacing="0" cellpadding="0" align="center">
<tr bgcolor="#333333">
<td height="15" bgcolor="#999966">
<div align="center" class="nome">FOTO GALLERY</div></td>
</tr>
</table>
<table width="670" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#999966">
<tr>
<td valign="top" class="nome">
<%
set conn=server.CreateObject("adodb.connection")
conn.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & server.MapPath("/mdb-database/softair.mdb")
set rs=conn.Execute("select * from gallery where sezione like 'gallery' ORDER BY id DESC")%> <%
if rs("foto")="0" then
else
%> <%
End If
%>
<table width="650" border="0" cellspacing="0" cellpadding="0" height="173" align="center">
<tr>
<%
Do While (Not rs.EOF)
%>
<td align="center" width="143" height="173" > <div class="abilita">
<div align="left">')">[img]img/gallery/<%=rs.fields([/img]" width="230" height="173" border="0" align="absmiddle">
</div>
</div></td>
<%
rs.MoveNext
Loop %>
</tr>
</table>
</td>
</tr>
</table>
<p class="desc"></p>
</body>
</html>

Rispondi quotando