GimboMedlem sedan dec. 20001 626 inlägg Hejsan har varldens skummaste problem...
med 2kolumner, i de finns en bakgrundbild pa en linje, nar jag besoker sidan ena gangen sa e linjerna utdragna ifran varandra dvs de sitter inte ihop, men sa fort jag klickar pa refresh sa fixar det sig o allt blir fint, ngn som haft detta problem???
Web-TorMedlem sedan nov. 200013 890 inlägg Ingen kod - ingen hjälp. ;)
GimboMedlem sedan dec. 20001 626 inlägg har en massa jsp kod i den oxo men har kommer ett os med kod:
<table cellSpacing="0" cellPadding="0" width="100%" border="0" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td background="images/sub-BG-vert.gif" width="85">
<img height="1" src="images/spacer.gif" width="70"></td>
<td width="184">
<img height="1" src="images/spacer.gif" width="182"></td>
<td width="346">
<img height="1" src="images/spacer.gif" width="100"></td>
</tr>
<tr>
<td background="images/sub-BG-vert.gif" width="85">
<img src="images/sub-arrow.gif" width="62" height="46" border="0">
</td>
<td class="newsheadline" width="184"><font face="Arial"><label for="Industries"><font face="arial" color="#DADADA" size="5"><% out.print(request.getParameter("itemId")); %></font>
<!-- <font size="1">By Industries</font></label><font size="1"> </font>
</font> <br>
<%//@ include file="selectMenuIndustries.jsp" %><br>
<font face="Arial" size="1"><label for="Industries">By Application</label>
</font> <br>
<select id="busprod" style="WIDTH: 130px; font-size:8pt; font-family:Arial; background-color:#C5E2F9" name="busprod">
<option value="30" selected>-- Select --</option>
<option value="31">Automotive</option>
<option value="32">Aviation</option>
<option value="33">Energy</option>
<option value="34">Healthcare</option>
<option value="35">Retail</option>
<option value="36">Transportation</option>
</select><font face="arial" color="#DADADA" size="5"></font>
-->
</td>
<td align="right" width="346">
<!--
<table cellSpacing="0" cellPadding="0" width="123" border="0">
<tr>
<td></td>
</tr>
<tr>
<td>
<div align="right">
<a onmouseover="MM_swapImage('Image8','','images/sub-BUT04H.gif',1)" onmouseout="MM_swapImgRestore()" href="infoMenu.asp">
<img id="Image8" src="images/sub-BUT04.gif" border="0" name="Image8" width="123" height="18"></a></div>
</td>
</tr>
<tr>
<td>
<div align="right">
<a onmouseover="MM_swapImage('Image5','','images/sub-BUT06H.gif',1)" onmouseout="MM_swapImgRestore()" href="newsMenu.asp">
<img id="Image5" src="images/sub-BUT06.gif" border="0" name="Image5" width="78" height="18"></a></div>
</td>
</tr>
<tr>
<td>
<div align="right">
<a onmouseover="MM_swapImage('Image7','','images/sub-BUT03H.gif',1)" onmouseout="MM_swapImgRestore()" href="specialMenu.asp">
<img id="Image7" src="images/sub-BUT03.gif" border="0" name="Image7" width="101" height="18"></a></div>
</td>
</tr>
<tr>
<td>
<div align="right">
<a onmouseover="MM_swapImage('Image9','','images/sub-BUT05H.gif',1)" onmouseout="MM_swapImgRestore()" href="casestoryMenu.asp">
<img id="Image9" src="images/sub-BUT05.gif" border="0" name="Image9" width="100" height="18"></a></div>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
-->
<%@ include file="dbConnInfo.jsp" %>
<%
// get categoryName
String c_sql = "SELECT * FROM productCategory WHERE productCategoryID = '" + categoryId + "' AND companyID = '" + companyId + "'";
//out.print("<BR>c_sql=" + c_sql);
Statement c_stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
ResultSet c_rs = c_stmt.executeQuery(c_sql);
while (c_rs.next()) {
categoryName = c_rs.getString("name");
//out.print("<BR>categoryName=" + categoryName);
//i_smallDescription = c_rs.getString("smallDescription");
}
%>
<%
// get Type Name
try {
String t_sql = "SELECT * FROM productType WHERE catalogID = '" + catalogId + "'" +
" AND companyID = '" + companyId + "'" +
" AND productCategoryID = '" + categoryId + "'" +
" AND productTypeID = '" + typeId + "'";
//out.print("<BR>t_sql=" + t_sql);
Statement t_stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
ResultSet t_rs = t_stmt.executeQuery(t_sql);
while (t_rs.next()) {
typeName = t_rs.getString("name");
//out.print("<BR>typeName=" + typeName);
//shortDesc = rs.getString("smallDescription");
}
}
catch(SQLException e) {
System.out.println("Failed to get type Name execute t_sql SQL.");
}
%>
<%
if(catalogId.length() > 0) {
//out.print("<BR>catalogId.length()=" + catalogId.length());
typeNav = "DisplayProducts.jsp?typeId=" + typeId + "&categoryId=" + categoryId + "&catalogId=" + catalogId + "&companyId=" + companyId;
categoryNav = "ListTypes.jsp?categoryId=" + categoryId + "&catalogId=" + catalogId + "&companyId=" + companyId;
catalogNav = "DisplayCategories.jsp?companyId=" + companyId + "&catalogId=" + catalogId; //
}
else {
typeNav = "DisplayProducts.jsp?typeId=" + typeId + "&categoryId=" + categoryId + "&catalogId=" + catalogId;
categoryNav = "ListTypes.jsp?categoryId=" + categoryId + "&catalogId=" + catalogId;
catalogNav = "DisplayCategories.jsp?catalogId=" + catalogId;
}
%>
<%
if(companyId.equalsIgnoreCase("JABSCO") || companyId.equalsIgnoreCase("FLOJET")) { %>
<font size="1" face="Verdana, Arial, Helvetica, sans-serif" color="#333333">
<a href="<% out.print(catalogNav); %>"><% out.print(catalogId); %></a> / <a href="<% out.print(categoryNav); %>"><% out.print(categoryName); %></a>/ <a href="<% out.print(typeNav); %>"><% out.print(typeName); %></a>
</font>
<br> <br>
<% }else{ %>
<font size="1" face="Verdana, Arial, Helvetica, sans-serif" color="#333333">
<a href="<% out.print(categoryNav); %>"><b><% out.print(categoryId); %></b></a> / <% out.print(typeName); %>
</font>
<br>
<% } %>
<font size="1"><font face="Arial">By Market Segment</label></font> </font>
</font> <br>
<%@ include file="selectMenuIndustries.jsp" %><br>
<!-- <font face="Arial" size="1"><label for="Industries">By Application</label>
</font> <br>
<select id="busprod" style="WIDTH: 130px; font-size:8pt; font-family:Arial; background-color:#C5E2F9" name="busprod">
<option value="30" selected>-- Select --</option>
<option value="31">Automotive</option>
<option value="32">Aviation</option>
<option value="33">Energy</option>
<option value="34">Healthcare</option>
<option value="35">Retail</option>
<option value="36">Transportation</option>
</select> --> </td>
</tr>
</table>
Web-TorMedlem sedan nov. 200013 890 inlägg jsp-koden är ointressant. Öppna sidan i din webbläsare och välj "Visa källa". Posta sedan den koden. :)
tycker jag känner igen problemet!
kolla hur din webbläsare är inställd:
verktyg/internet alternativ/inställningar (under tillfälliga internet filer)
klicka i att sidan ska uppdateras varje gång.
detta gäller om felet är i ie förståss!
annars kan du ju alltid skriva om koden till css: :)
<td style="background-image: url(images/sub-BG-vert.gif);" width="85">
GimboMedlem sedan dec. 20001 626 inlägg man tackar, jag korde med css metoden