Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Color appearance problem

Status
Not open for further replies.

psyren

Technical User
Jul 21, 2003
22
SG
Hi!,i could not show out the color of the table row name that i wanted. i tried ways re-editin the layout still didnt show... cos i want the title of the to be black blackground. but never shows out... is it sumthin to do with include statement i'm using? this is the layout of the page where the table color cant be change. originally it is dark blue in color... but i want to edit it to black background for the title.. is it been setted up as default color in one set while the rest of the pages follow the same color default page??


<!-- #include file = &quot;includes/header-includes.asp&quot; -->
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<%If Session(&quot;userID&quot;) <> &quot;&quot; Then%>
<form name=&quot;linksDelForm&quot; method=&quot;post&quot; action=&quot;asp/delNewsAndFiles.asp&quot;>
<%End If%>
<tr>
<td align=&quot;center&quot; valign=&quot;top&quot;> <table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td valign=&quot;top&quot; class=&quot;rowHdr&quot; align=&quot;left&quot; width=&quot;10&quot;><img src=&quot;assets/graphix/hpPortal/top_left_trans_small.gif&quot; width=10 height=10 border=&quot;0&quot;></td>
<td width=&quot;100%&quot; class=&quot;rowHdr&quot;>News and Updates</td>
<td valign=&quot;top&quot; class=&quot;rowHdr&quot; align=&quot;right&quot; width=&quot;10&quot;><img src=&quot;assets/graphix/hpPortal/top_right_trans.gif&quot; width=10 height=20 border=&quot;0&quot;></td>
</tr>
<tr valign=&quot;middle&quot;>
<td height=&quot;10&quot; colspan=&quot;3&quot; align=&quot;center&quot; class=&quot;Regular&quot;><img src=&quot;assets/graphix/hpPortal/spacer.gif&quot; width=&quot;1&quot; height=&quot;1&quot;></td>
</tr>
<tr>
<td colspan=&quot;3&quot; class=&quot;Regular&quot;><table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td align=&quot;center&quot;> <table width=&quot;96%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<%
Dim objNewsRS, newsCounter
Set objNewsRS = Server.CreateObject(&quot;ADODB.RecordSet&quot;)
objNewsRS.Open &quot;SELECT posts.postID, posts.title, posts.datePosted FROM posts ORDER BY posts.postID DESC&quot;, objConn, 1, 2

For newsCounter = 0 to 9
If Not objNewsRS.EOF then
%>
<tr>
<td width=&quot;80&quot; valign=&quot;top&quot; class=&quot;Regular&quot;><%=FormatDateTime(objNewsRs(&quot;datePosted&quot;), 2)%></td>
<td class=&quot;Regular&quot;><%
If DateDiff(&quot;d&quot;, objNewsRs(&quot;datePosted&quot;), Date) <= 7 Then
Response.write &quot;<img src=&quot;&quot;assets/graphix/misc/newFlash.gif&quot;&quot;>&nbsp;&quot;
End If
%>
<a href=&quot;asp/viewNewsInfo.asp?id=<%=objNewsRS(&quot;postID&quot;)%>&quot;><%=objNewsRs(&quot;title&quot;)%></a></td>
<%If Session(&quot;userID&quot;) <> &quot;&quot; Then%><td width=&quot;80&quot; align=&quot;right&quot; class=&quot;Regular&quot;> <input name=&quot;newsID&quot; type=&quot;checkbox&quot; id=&quot;newsID&quot; value=&quot;<%=objNewsRS(&quot;postID&quot;)%>&quot;>
delete</td>
<%End If%>
</tr>
<%
objNewsRS.MoveNext
Else
If newsCounter = 0 then
%>
<tr>
<td width=&quot;80&quot; valign=&quot;top&quot; class=&quot;Regular&quot;>&nbsp;</td>
<td class=&quot;Regular&quot;>No news in database</td>
</tr>
<%
End if
End if
Next
objNewsRS.Close
Set objNewsRS = Nothing
%>
<tr align=&quot;center&quot; valign=&quot;middle&quot;>
<td height=&quot;5&quot; class=&quot;Regular&quot;><img src=&quot;assets/graphix/hpPortal/spacer.gif&quot; width=&quot;1&quot; height=&quot;1&quot;></td>
<td height=&quot;5&quot; class=&quot;Regular&quot;><img src=&quot;assets/graphix/hpPortal/spacer.gif&quot; width=&quot;1&quot; height=&quot;1&quot;></td>
<%If Session(&quot;userID&quot;) <> &quot;&quot; Then%><td height=&quot;5&quot; class=&quot;Regular&quot;><img src=&quot;assets/graphix/hpPortal/spacer.gif&quot; width=&quot;1&quot; height=&quot;1&quot;></td><%End If%>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr valign=&quot;middle&quot;>
<td height=&quot;5&quot; colspan=&quot;3&quot; align=&quot;center&quot; class=&quot;Regular&quot;><img src=&quot;assets/graphix/hpPortal/spacer.gif&quot; width=&quot;1&quot; height=&quot;1&quot;></td>
</tr>
<tr>
<td valign=&quot;bottom&quot; class=&quot;Regular&quot; align=&quot;left&quot; width=&quot;10&quot;><img src=&quot;assets/graphix/hpPortal/btm_left_trans.gif&quot; width=10 height=10 border=&quot;0&quot;></td>
<td width=&quot;100%&quot; class=&quot;Regular&quot;>&nbsp;</td>
<td valign=&quot;bottom&quot; class=&quot;Regular&quot; align=&quot;right&quot; width=&quot;10&quot;><img src=&quot;assets/graphix/hpPortal/btm_right_trans.gif&quot; width=10 height=10 border=&quot;0&quot;></td>
</tr>
</table>
<br>
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td valign=&quot;top&quot; class=&quot;rowHdr&quot; align=&quot;left&quot; width=&quot;10&quot;><img src=&quot;assets/graphix/hpPortal/top_left_trans_small.gif&quot; width=10 height=10 border=&quot;0&quot;></td>
<td width=&quot;100%&quot; class=&quot;rowHdr&quot;>Resource Center</td>
<td valign=&quot;top&quot; class=&quot;rowHdr&quot; align=&quot;right&quot; width=&quot;10&quot;><img src=&quot;assets/graphix/hpPortal/top_right_trans.gif&quot; width=10 height=20 border=&quot;0&quot;></td>
</tr>
<tr valign=&quot;middle&quot;>
<td height=&quot;10&quot; colspan=&quot;3&quot; align=&quot;center&quot; class=&quot;Regular&quot;><img src=&quot;assets/graphix/hpPortal/spacer.gif&quot; width=&quot;1&quot; height=&quot;1&quot;></td>
</tr>
<tr>
<td colspan=&quot;3&quot; class=&quot;Regular&quot;><table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td align=&quot;center&quot;> <table width=&quot;96%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td width=&quot;80&quot; valign=&quot;top&quot; class=&quot;Regular&quot;>&nbsp;</td>
<td class=&quot;Regular&quot;>Recently Added Files</td>
</tr>
<tr align=&quot;center&quot; valign=&quot;middle&quot;>
<td height=&quot;5&quot; class=&quot;Regular&quot;><img src=&quot;assets/graphix/hpPortal/spacer.gif&quot; width=&quot;1&quot; height=&quot;1&quot;></td>
<td height=&quot;5&quot; class=&quot;Regular&quot;><img src=&quot;assets/graphix/hpPortal/spacer.gif&quot; width=&quot;1&quot; height=&quot;1&quot;></td>
</tr>
<%
Dim objFileRS, fileCounter
Set objFileRs = Server.CreateObject(&quot;ADODB.RecordSet&quot;)
objFileRs.Open &quot;SELECT ListFiles.UploadID, ListFiles.UploadDT, ListFiles.Description FROM ListFiles ORDER BY ListFiles.UploadID DESC&quot;, objConn, 1, 2

For fileCounter = 0 to 9
If Not objFileRS.EOF then
%>
<tr>
<td width=&quot;80&quot; valign=&quot;top&quot; class=&quot;Regular&quot;><%=FormatDateTime(objFileRs(&quot;UploadDT&quot;), 2)%></td>
<td class=&quot;Regular&quot;><a href=&quot;asp/viewFileInfo.asp?id=<%=objFileRs(&quot;UploadID&quot;)%>&quot;><%=Mid(objFileRs(&quot;Description&quot;), CLng(InStrRev(objFileRs(&quot;Description&quot;), &quot;\&quot;) + 1), Len(objFileRs(&quot;Description&quot;)))%></a></td>
<%If Session(&quot;userID&quot;) <> &quot;&quot; Then%><td width=&quot;80&quot; align=&quot;right&quot; class=&quot;Regular&quot;> <input name=&quot;fileID&quot; type=&quot;checkbox&quot; id=&quot;fileID&quot; value=&quot;<%=objFileRs(&quot;UploadID&quot;)%>&quot;>
delete</td>
<%End If%>
</tr>
<%
objFileRs.MoveNext
Else
If fileCounter = 0 then
%>
<tr>
<td width=&quot;80&quot; valign=&quot;top&quot; class=&quot;Regular&quot;>&nbsp;</td>
<td class=&quot;Regular&quot;>No files has been added so far..</td>
</tr>
<%
End if
End if
Next
%>
<%
If objFileRs.RecordCount > 10 Then
%>
<tr>
<td width=&quot;80&quot; valign=&quot;top&quot; class=&quot;Regular&quot;>&nbsp;</td>
<td class=&quot;Regular&quot;>&nbsp;</td>
</tr>
<tr>
<td width=&quot;80&quot; valign=&quot;top&quot; class=&quot;Regular&quot;>&nbsp;</td>
<td class=&quot;Regular&quot; align=&quot;right&quot;><a href=&quot;asp/viewFileAll.asp&quot;>View
all files</a></td>
</tr>
<%
End If
%>
<%
objFileRs.Close
Set objFileRs = Nothing
%>
<tr align=&quot;center&quot; valign=&quot;middle&quot;>
<td height=&quot;5&quot; class=&quot;Regular&quot;><img src=&quot;assets/graphix/hpPortal/spacer.gif&quot; width=&quot;1&quot; height=&quot;1&quot;></td>
<td height=&quot;5&quot; class=&quot;Regular&quot;><img src=&quot;assets/graphix/hpPortal/spacer.gif&quot; width=&quot;1&quot; height=&quot;1&quot;></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr valign=&quot;middle&quot;>
<td height=&quot;5&quot; colspan=&quot;3&quot; align=&quot;center&quot; class=&quot;Regular&quot;><img src=&quot;assets/graphix/hpPortal/spacer.gif&quot; width=&quot;1&quot; height=&quot;1&quot;></td>
<%If Session(&quot;userID&quot;) <> &quot;&quot; Then%><td height=&quot;5&quot; class=&quot;Regular&quot;><img src=&quot;assets/graphix/hpPortal/spacer.gif&quot; width=&quot;1&quot; height=&quot;1&quot;></td><%End If%>
</tr>
<tr>
<td valign=&quot;bottom&quot; class=&quot;Regular&quot; align=&quot;left&quot; width=&quot;10&quot;><img src=&quot;assets/graphix/hpPortal/btm_left_trans.gif&quot; width=10 height=10 border=&quot;0&quot;></td>
<td width=&quot;100%&quot; class=&quot;Regular&quot;>&nbsp;</td>
<td valign=&quot;bottom&quot; class=&quot;Regular&quot; align=&quot;right&quot; width=&quot;10&quot;><img src=&quot;assets/graphix/hpPortal/btm_right_trans.gif&quot; width=10 height=10 border=&quot;0&quot;></td>
</tr>
</table>
<%If Session(&quot;userID&quot;) <> &quot;&quot; Then%>
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td align=&quot;center&quot;><br>
<input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;Delete Selected&quot;></td>
</tr>
</table><%End If%></td>
</tr>
<%If Session(&quot;userID&quot;) <> &quot;&quot; Then%>
</form>
<%End If%>
</table>
<!-- #include file = &quot;includes/footer-includes.asp&quot; -->










this is the bar that i have it include in the header statement which i want to change the color of the bar to be black.



<!-- start of hpTopTable-includes //-->
<table width=&quot;100%&quot; height=&quot;26&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
<tr>
<td align=&quot;center&quot; valign=&quot;bottom&quot;>
<table width=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
<tr>
<td class=&quot;rowHdrmanager&quot; align=&quot;left&quot; height=&quot;20&quot;><%
If InStr(Request.ServerVariables(&quot;SCRIPT_NAME&quot;), &quot;search&quot;) > 0 then
Response.write &quot;<a href=&quot;&quot;default.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/noticeBoard.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team: Notice Board&quot;&quot;></a><a href=&quot;&quot;asp/favouriteLink.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/favourites.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team:Favourites Links&quot;&quot;></a><a href=&quot;&quot;Minutesdefault.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/minutes.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team: Meeting Minutes&quot;&quot;></a><a href=&quot;&quot;asp/adminTools/adminLogin.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/adminTools.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team: Administrative Tools&quot;&quot;></a><a href=&quot;&quot;asp/searchpage.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/searchOver.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team: Search Engine&quot;&quot;></a>&quot;
Else
If InStr(Request.ServerVariables(&quot;SCRIPT_NAME&quot;), &quot;admin&quot;) > 0 then
Response.write &quot;<a href=&quot;&quot;default.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/noticeBoard.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team: Notice Board&quot;&quot;></a><a href=&quot;&quot;asp/favouriteLink.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/favourites.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team:Favourites Links&quot;&quot;></a><a href=&quot;&quot;Minutesdefault.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/minutes.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team: Meeting Minutes&quot;&quot;></a><a href=&quot;&quot;asp/adminTools/adminLogin.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/adminToolsOver.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team: Administrative Tools&quot;&quot;></a><a href=&quot;&quot;asp/searchpage.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/search.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team: Search Engine&quot;&quot;></a>&quot;
Else
If InStr(Request.ServerVariables(&quot;SCRIPT_NAME&quot;), &quot;Min&quot;) > 0 then
Response.write &quot;<a href=&quot;&quot;default.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/noticeBoard.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team: Notice Board&quot;&quot;></a><a href=&quot;&quot;asp/favouriteLink.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/favourites.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team:Favourites Links&quot;&quot;></a><a href=&quot;&quot;Minutesdefault.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/minutesOver.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team: Meeting Minutes&quot;&quot;></a><a href=&quot;&quot;asp/adminTools/adminLogin.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/adminTools.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team: Administrative Tools&quot;&quot;></a><a href=&quot;&quot;asp/searchpage.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/search.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team: Search Engine&quot;&quot;></a>&quot;

Else
If InStr(Request.ServerVariables(&quot;SCRIPT_NAME&quot;), &quot;favourite&quot;) > 0 then
Response.write &quot;<a href=&quot;&quot;default.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/noticeBoard.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team: Notice Board&quot;&quot;></a><a href=&quot;&quot;asp/favouriteLink.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/favouritesOver.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team:Favourites Links&quot;&quot;></a><a href=&quot;&quot;Minutesdefault.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/minutes.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team: Meeting Minutes&quot;&quot;></a><a href=&quot;&quot;asp/adminTools/adminLogin.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/adminTools.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team: Administrative Tools&quot;&quot;></a><a href=&quot;&quot;asp/searchpage.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/search.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team: Search Engine&quot;&quot;></a>&quot;


Else

Response.write &quot;<a href=&quot;&quot;default.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/noticeBoardOver.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team: Notice Board&quot;&quot;></a><a href=&quot;&quot;asp/favouriteLink.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/favourites.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team:Favourites Links&quot;&quot;></a><a href=&quot;&quot;Minutesdefault.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/minutes.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team: Meeting Minutes&quot;&quot;></a><a href=&quot;&quot;asp/adminTools/adminLogin.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/adminTools.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team: Administrative Tools&quot;&quot;></a><a href=&quot;&quot;asp/searchpage.asp&quot;&quot;><img src=&quot;&quot;assets/graphix/button/search.gif&quot;&quot; border=&quot;&quot;0&quot;&quot; alt=&quot;&quot;Emergency Response Team: Search Engine&quot;&quot;></a>&quot;
End if
End if
End if
End If
Response.write &quot;<img src=&quot;&quot;assets/graphix/button/endTab.gif&quot;&quot;>&quot;
%></td>
<td class=&quot;rowHdrmanager&quot; align=&quot;right&quot; width=&quot;200&quot;><font size=&quot;2&quot;><%=FormatDateTime(Now, 1)%>&nbsp;</font></td>
</tr>
</table><!-- end of hpTopTable-includes //-->



Thanks
 
Sorry i fergot moreover...i dont even knoe where the hell the color came out frm...so i suspected that it sets a set of deafult color in a way.... but is there any other ways i could edit color to it? as you can see frm the top... there's no bgcolor=&quot; &quot; statements......


thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top