TheDocterd 7 Junior Poster

Hi There

I'm in quite a need for an answer, can sombody perhaps help me?

I have an html file. Then I have a folder, say Test Images, in that folder I have more folders, say e3 and e5, in that folders there are images.

I want to write an application that scans through my html file (can be done since it is only a text file). When a line matches the name of a folder in 'Test Images', lets say 'e3' (look at the coding) it must just add a link into the text file that opens at that folder (look at the last part of the coding).


Here is my html coding:

<html>
<head>
<title>Site Map</title>
</head>
<body>
Here is the site map:<br>
<img src="SiteMap.png" usemap="#TruView">
<map name="TruView">
<area title="e21" shape="circle" coords="837,730,8" href="e21\TruView.xml">
<area title="e20" shape="circle" coords="1030,670,8" href="e20\TruView.xml">
<area title="e19" shape="circle" coords="1046,611,8" href="e19\TruView.xml">
<area title="e18" shape="circle" coords="822,633,8" href="e18\TruView.xml">
<area title="e17" shape="circle" coords="822,534,8" href="e17\TruView.xml">
<area title="e16" shape="circle" coords="975,521,8" href="e16\TruView.xml">
<area title="e15" shape="circle" coords="1040,459,8" href="e15\TruView.xml">
<area title="e14" shape="circle" coords="921,377,8" href="e14\TruView.xml">
<area title="e12" shape="circle" coords="784,210,8" href="e12\TruView.xml">
<area title="e10" shape="circle" coords="790,321,8" href="e10\TruView.xml">
<area title="e9" shape="circle" coords="982,363,8" href="e9\TruView.xml">
<area title="e5" shape="circle" coords="973,249,8" href="e5\TruView.xml">
<area title="e3" shape="circle" coords="1016,131,8" href="e3\TruView.xml">

<a href="Test Images\e3">
<img src="Camera.png" style="position: absolute; top: 185; left: 1012;" border="0" alt="Hello">
</a> 
</map>
</body>
</html>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.