This is a discussion on "Use form to display non-preset images...?" within the JavaScript Forum section. This forum, and the thread "Use form to display non-preset images...? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Use form to display non-preset images...?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Use form to display non-preset images...?
Hey, how's it doin? This is my first time here and I hope it will be the best place
I am pretty sure this can be done with simple Javascript but I just can't find the appropriate script. I have a form that askes for a filename. ------------- <input type="text" name="filename"> .PNG <input type="submit" value="Update"></form> ------------- When I press 'Update' I want the page to dynamically (correct term?) load 6 images that begin with the word that was submitted in the form, followed by preset characters. Example: Type your name: "Mike" then the page loads 'Mike_1.png', 'Mike_2.png' ... 'Mike_6.png'. - Mike |
|
|
|
#2
|
||||
|
||||
|
Re: Use form to display non-preset images...?
I'm a complete noob at javascript. Here's my thought for what it's worth. At least it's simple and it works, just an input and a "for" loop. I used a "prompt" for the name, I imagine you can modify that easily to substitute the return from your form:
|
|
#3
|
|||
|
|||
|
Re: Use form to display non-preset images...?
I'm a n00b too
I think it's that 'document.write' I was looking for. I need to know the javascript equivalent to <img src=""> so I can include values and code in the address but I don't know what those commands are called to get a complete list. I'm trying to make a sort of category viewer where you input the word at the start of the image name and it only displays those images. car_mike.png, horse_mike.png, bike_mike.png INPUT = car would only display the first one. - Mike |
![]() |
| Tags |
| use, form, display, nonpreset, images |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Best way to display images/ Keeping file size down | Oak | Graphics and 3D | 17 | May 27th, 2008 17:03 |
| Display different images? | sing2trees | Classic ASP | 6 | Jan 16th, 2008 05:15 |
| Display results of a submit form (getting url) in same window?? | jahphill | JavaScript Forum | 12 | Nov 28th, 2007 23:18 |
| The Best way to display Images and text | thewebkid | Website Planning | 7 | Nov 19th, 2007 13:56 |
| Form Display Issue | RichieRichR6 | JavaScript Forum | 4 | Apr 18th, 2007 17:32 |