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

Library Archive, to open folders? 2

Status
Not open for further replies.

Matt2801

Technical User
Jan 15, 2010
2
GB
Hi,

I Have been working on a archive/library for our animators here, with images of old and useful models/3d work.

to help them out and save them some time, I wanted to add the ability to click on a jpeg and open the folder where the files are stored for the desired character/set.

Being a animator myself, and working for a small company (who have no javascript programmers) we have little to no knowledge of the code and would appreciate any help possible.

this is what i have come up with so far

Code:
<HEAD>

<SCRIPT LANGUAGE="JavaScript">

function DriveList()
{
var folder=document.Drive.Name.options[document.Drive.Name.selectedIndex].value;
document.frames['MyComputer'].location.href = folder;
}
function FolderChoose()
{
var location=document.UserLocation.FolderLocation.value;
document.frames['MyComputer'].location.href = location;
}
</script>

</HEAD>

<BODY>

<FORM NAME="UserLocation">
<P><font size="2">Type in a Folder Location: </font>
<INPUT TYPE="text" name="FolderLocation" length="25" size="20">
<INPUT TYPE="button" value="Open Folder" onClick="FolderChoose();"></P>
</FORM>
<IFRAME NAME="MyComputer" SRC="about:blank" WIDTH="50%" HEIGHT="20%"></IFRAME>
</CENTER>

however this only allows the user to manually search for the files.
Is it possible and what would be the best approach to achieving this.

I have been using DreamWeaver to create the library if that is of any help.

Thanks in advance!

Matt
 
Note: The code in that FAQ will only run in IE, so if you use Firefox or Safari, you'd need to use server-side scripting.

This assumes all of your images, etc are in s central location, and not local to each PC - unless you fancy running a web server on each PC, that is...

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
 
Thanks guys :) i spent hours on google trying to find a solution. was obviously looking in the wrong places >.<!

Much Appreciated!

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top