Computer ForumsComputers  

Go Back   Computer Forums > The World Wide Web > Virus - Spyware Protection / Detection

Reply
 
LinkBack Thread Tools Display Modes
Old 05-19-2005, 03:47 AM   #1 (permalink)
Newb Techie
 
Join Date: Apr 2005
Posts: 1
Default ask a bout HTML

Please help me.
I am writing a web page (for news). Its structure likes.

a index.asp file. This is hompage.
there are links in this page. These links are bill boards (brief of news).
The code of index.asp file
<%@ language="vbscript" %>
<html>
<body>
Brief of the news
........
In this example, For brief. Such as news01.htm is a constant. I can use code of ASP.
</body>
</html>
- news01.htm is HTML page, consist of images, text, etc... The editor can use Frontpage, or Microsoft word to edit the news. Images, and HTML file is in a Folder.
Example of code news01.htm
<html>
[img]image1.jpg[/img]


text.....</p>
</html>

A contentDisplay.asp is used to display the content of another HTML page (all the news. In the example is NEWS01.HTM). I am using DYNAMIC INCLUDE technical. This is the code of contentDisplay.asp

<%@ language="Vbscript" %>
<%
dim con
FileName = Server.MapPath(Request.QueryString("include"))
set con=Server.CreateObject("Scripting.FileSystemObjec t")
%>
<html>
<head>
</head>
<body>
<% con.OpenTextFile (FileName, 1, False, False).readall %>
</body>
</html>

but there is a problem.
When contents of News01.htm is loaded into ContentDisplay.asp file. The images can not display. Because paths of images is changed. image1.jpg and News01.htm in a Folders. Structure of Folder like the following.
C:\Web\index.asp
C:\Web\ContentDisplay.asp
C:\Web\News\news01.htm
C:\Web\News\image1.jpg

When news01.htm is load into ContentDisplay.asp. The path of news01.htm as ContentDisplay.asp. But image1.jpg is different with news01.htm

Now I can not resolve this problem. You can help me or give me the solution?. Thank you very much.
dvhuong2001 is offline   Reply With Quote
Reply

« How do i.. | virus »
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:08 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0