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

Searching CD-ROM How to??

Status
Not open for further replies.

hassified

Technical User
Jun 25, 2002
43
US
Hello everyone,
I made a CD with about 600 pics all named with numbers.
Then made an HTML doc so to browse through them (all in a scrollable list). Then figured out how to have it autorun upon inserting into the computer. Now, everthing is working just fine but, would like to add a search field, so someone could type the number of the pic hit a button and have it come up. Is there a way to do this?? Don't know if this should be a Javascript or HTML question but, if someone could please point me in the right direction I would be really grateful. Thanks in advance.

PS: This maybe needed info, I saved the HTML doc as an .HTA file.

Life Is Good.
HASSIFIED
 
I found what I needed

<html>
<head>
</head>
<body>
<form onsubmit=&quot;return false;&quot;>
<input type=&quot;text&quot; id=&quot;foo&quot; name=&quot;foo&quot; value=Hello>
<input type=&quot;button&quot; value=&quot;Get It&quot; onclick=&quot;document.bar.src='images/'+this.form.foo.value+'.jpg'&quot;>
</form>
<img src=&quot;images\bg\notice.jpg&quot; width=&quot;50px&quot; height=&quot;50px&quot; alt=&quot;&quot; name=&quot;bar&quot;>
</body>
</html>

Then just change the path to the images and the type of images it will be calling up('images/')('.jpg').
Then you can change the first image that shows on startup(&quot;images\bg\notice.jpg&quot;).
You also can change the text in the field that shows at startup(Hello).
Now you can change the size of pics to be shown by changing the number in the width=&quot;400px&quot; height=&quot;400px&quot;.

Now this codes works if in the root directory you have the files:
images(folder where images are stored)
index.html (HTML doc)



Life Is Good.
HASSIFIED
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top