|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
Task Problem
Hey everyone, I'm stuck with a small problem. For the past few days I have been trying to come up with something to solve an issue i have. I wish to send out cd's to clients and on the cd have a visual demo of my documentation system.
Task: Create a dynamic website that when you mouse over an image it brings up the correct documentation for that image. Problem: Can't use PHP (because it has to be installed on localmachine) So right now I have my system setup so that it auto generates the docs into individual text files (1 for each machine) or into one big XML file. What is the best way to go about doing this? It has to work on a localmachine with nothing too difficult to install. Thanks a million for your help - |
|
#2
|
||||
|
||||
|
this isn't supposed to be 'the' solution, mostly because it's not particularly good, but it's something to get you started, so that you can adapt it to suit your need or rule it out..
Code:
function getFilename(imgName)
{
// do a proper lookup here based on image name to get the associated documentation file
return lookedUpFileName; // c:\\temp\\testFile.txt
}
function displayDocumentation(imgName)
{
document.all["documentation_frame"].src = getFilename(imgName);
}
</script>
<img src="img1.gif" onMouseOver="displayDocumentation(this.src)"/>
<img src="img2.gif" onMouseOver="displayDocumentation(this.src)"/>
<img src="img3.gif" onMouseOver="displayDocumentation(this.src)"/>
<img src="img4.gif" onMouseOver="displayDocumentation(this.src)"/>
<br/>
<iframe name="documentation_frame" src="blank.html"></iframe>
i wasn't really sure how you imagine "it brings up the correct documentation" would bring it up |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > Task Problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|