Computers |
|
| | #1 (permalink) |
| Newb Techie Join Date: Apr 2005
Posts: 1
| 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. |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |