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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help

Status
Not open for further replies.

help120

Technical User
Apr 15, 2001
198
US
I'm having a problem with <!--#include virtual=&quot;/links/indexlinks.asp&quot;-->

take a look at
The way I have it set up is I have a page called indexlinks.asp where I have all my nav bar links posted on it then on my i have <!--#include virtual=&quot;/links/indexlinks.asp&quot;-->
placed where I want the links from indexlinks.asp to be. Now on indexlinks I have my links, vlinks, visited links set to dif colors. I only want these color to come up in the nav bar cell in the middle where I have all the news to be a dif color for the links, vlinks etc. I would like to have dif colors set by index1.asp. what am I doing wrong?
 
This is what my index1.asp and indexlinks.asp looks like (I only included a part of my code for the inex1.asp)

------indexlinks.asp--------


<html><head>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1252&quot;><meta name=&quot;GENERATOR&quot; content=&quot;Microsoft FrontPage 4.0&quot;><meta name=&quot;ProgId&quot; content=&quot;FrontPage.Editor.Document&quot;><title>News Log In</title><style>
<!--
A:link { text-decoration: none }
A:hover { text-decoration: none }
A:Visited { text-decoration: none }
-->FF9900}</style>
<style fprolloverstyle>A:hover {color: #FF9A00}</style>
</head>
<body bgcolor=&quot;#ffffff&quot; leftmargin=&quot;0&quot; marginwidth=&quot;0&quot; topmargin=&quot;0&quot; marginheight=&quot;0&quot; link=&quot;#FFFFFF&quot; vlink=&quot;#FFFFFF&quot; alink=&quot;#FF9A00&quot;><div align=&quot;left&quot;><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;144&quot;><tr><td width=&quot;100%&quot; background=&quot;navebarbackground.jpg&quot;><p style=&quot;margin-top: 0; margin-bottom: 0&quot; align=&quot;left&quot;><fontface=&quot;Arial Narrow&quot; color=&quot;#C0C0C0&quot;><a href=&quot;../index1.asp&quot;>News</a><br><a href=&quot; In</a></font></p><p style=&quot;margin-top: 0; margin-bottom: 0&quot; align=&quot;left&quot;><fontface=&quot;Arial Narrow&quot; color=&quot;#C0C0C0&quot;><a href=&quot;../about.asp&quot;>About</a></font></p><p style=&quot;margin-top: 0; margin-bottom: 0&quot; align=&quot;left&quot;><fontface=&quot;Arial Narrow&quot; color=&quot;#C0C0C0&quot;><a href=&quot;../movies.asp&quot;>Movies</a></font></p><p style=&quot;margin-top: 0; margin-bottom: 0&quot; align=&quot;left&quot;><fontface=&quot;Arial Narrow&quot; color=&quot;#C0C0C0&quot;><a href=&quot;../games.asp&quot;>Games</a></font></p><p style=&quot;margin-top: 0; margin-bottom: 0&quot; align=&quot;left&quot;><fontface=&quot;Arial Narrow&quot; color=&quot;#C0C0C0&quot;><a href=&quot;../music.asp&quot;>Music</a><br><a href=&quot;../art.asp&quot;>Art</a></font></p><p style=&quot;margin-top: 0; margin-bottom: 0&quot; align=&quot;left&quot;><fontface=&quot;Arial Narrow&quot; color=&quot;#C0C0C0&quot;><a href=&quot;../clubsdjs.asp&quot;>Clubs/DJs</a><br><a href=&quot;../crazycrap.asp&quot;>Crazy Crap</a></font></p><p style=&quot;margin-top: 0; margin-bottom: 0&quot; align=&quot;left&quot;><fontface=&quot;Arial Narrow&quot; color=&quot;#C0C0C0&quot;><a href=&quot;../merchandise.asp&quot;>Merchandise</a></font></p><p style=&quot;margin-top: 0; margin-bottom: 0&quot; align=&quot;left&quot;><fontface=&quot;Arial Narrow&quot; color=&quot;#C0C0C0&quot;><a href=&quot;../links.asp&quot;>Links</a><br><a href=&quot;../forums.asp&quot;>Forums</a><br><a href=&quot;../contact.asp&quot;>Contact</a></font></p></td></tr></table></div></body>
</html>

------index1.asp-------

</head><body bgcolor=&quot;#ffffff&quot; leftmargin=&quot;0&quot; marginwidth=&quot;0&quot; topmargin=&quot;0&quot; marginheight=&quot;0&quot;><div align=&quot;left&quot;><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;800&quot;><tr><td width=&quot;144&quot; height=&quot;144&quot; background=&quot;navebarbackground.jpg&quot; valign=&quot;top&quot; align=&quot;left&quot;><img border=&quot;0&quot;src=&quot;topleft.jpg&quot; width=&quot;144&quot; height=&quot;144&quot; align=&quot;top&quot;></td><td width=&quot;504&quot; height=&quot;144&quot; valign=&quot;top&quot; align=&quot;left&quot; background=&quot;topcenterbackground.jpg&quot;><imgborder=&quot;0&quot; src=&quot;topcenter.jpg&quot; width=&quot;504&quot; height=&quot;144&quot;></td><td width=&quot;152&quot; height=&quot;144&quot; background=&quot;topcenterbackground.jpg&quot; valign=&quot;top&quot; align=&quot;left&quot;><imgborder=&quot;0&quot; src=&quot;topright1.jpg&quot; width=&quot;157&quot; height=&quot;148&quot;></td></tr><tr><td background=&quot;navebarbackground.jpg&quot; valign=&quot;top&quot; align=&quot;left&quot; height=&quot;800&quot; rowspan=&quot;2&quot;><p style=&quot;margin-top: 0; margin-bottom: 0&quot; align=&quot;right&quot;>&nbsp;</p><p style=&quot;margin-top: 0; margin-bottom: 0&quot;><img border=&quot;0&quot;src=&quot;indexnav.jpg&quot; width=&quot;114&quot; height=&quot;22&quot;></p><p style=&quot;margin-top: 0; margin-bottom: 0&quot; align=&quot;left&quot;><fontface=&quot;Arial Narrow&quot; color=&quot;#C0C0C0&quot;><!--webbot bot=&quot;HTMLMarkup&quot;startspan --><STYLE><!--
a:visited { text-decoration: none }
-->
</STYLE>
<!--webbot bot=&quot;HTMLMarkup&quot; endspan -->
<!--#include virtual=&quot;/links/indexlinks.asp&quot;--></font></p><p style=&quot;margin-top: 0; margin-bottom: 0&quot;>&nbsp;</p><p style=&quot;margin-top: 0; margin-bottom: 0&quot;><img border=&quot;0&quot;src=&quot;servicesnav.jpg&quot; width=&quot;114&quot; height=&quot;22&quot;></p><p style=&quot;margin-top: 0; margin-bottom: 0&quot;><font face=&quot;Arial Narrow&quot;color=&quot;#C0C0C0&quot;><a href=&quot;webdesign.asp&quot;>Web Design</a></font></p><p style=&quot;margin-top: 0; margin-bottom: 0&quot;><font face=&quot;Arial Narrow&quot;color=&quot;#C0C0C0&quot;><a href=&quot;webhosting.asp&quot;>Web Hosting</a></font></p><p style=&quot;margin-top: 0; margin-bottom: 0&quot;><font face=&quot;Arial Narrow&quot;color=&quot;#C0C0C0&quot;><a href=&quot;graphics.asp&quot;>Graphics</a></font><p style=&quot;margin-top: 0; margin-bottom: 0&quot;><font face=&quot;Arial Narrow&quot;color=&quot;#C0C0C0&quot;><a href=&quot;portfolio.htm&quot;>Portfolio</a></font><p style=&quot;margin-top: 0; margin-bottom: 0&quot;><fontface=&quot;Arial Narrow&quot; color=&quot;#C0C0C0&quot;><a href=&quot;contact.asp&quot;>Contact&nbsp;</a></font><p style=&quot;margin-top: 0; margin-bottom: 0&quot;>&nbsp;<div align=&quot;left&quot;><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;100&quot;><tr><td><div align=&quot;center&quot;><center>
 
well - a couple things that may go wrong, are these.

first off, if you are going to include a file, you may need to strip the <html>,<head>,<body>, etc.. tags since multiple occurances of those elements will result in an error. I just took a look at the resulting source code, and you do have multiple occurances of the top level tags (<html>,<head>,<title>, etc...).

second, if you are trying to control the color scheme for the interior of your page, it seems like this would be a problem better handled by CSS, and explicitly declaring A classes, and the pseudo-classes for them.

ex:
A.inside:hover{color:#FFFFFF;}

See if that helps.

good luck
leo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top