Preserved Topic: Dynamic Texture Page |
|
---|---|
Author | Thread |
Paranoid (IV) Mad Scientist From: Inside THE BOX |
posted 06-01-2000 21:17
Hope everyone doesn't mind my asking for so much help here; I just don't have much of a programmer's mind.<P>If you take a look at my old Free Stuff page http://www.bigwaste.com/freestuff/ you'll discover a number of texture thumbnails. Click on one and you get an ugly page using the selected texture as a background, with the name of the texture and a link to the image itself. Of course, I did this a long time ago and did it the dumb way of having a different HTML file for each texture.<P>Well, I've been redoing the entire site and it is now Free Stuff's turn. It will look more like http://www.bigwaste.com/info/ and I will be adding about 30 new textures. What I would like to do is set it up to navigate similarly, although I'm considering having the thumbnail link to a page with the full-size image, it's name, file size and download instructions, with a link to open a blank window with just the image as background to show how it tiles. (Opinions on this navigation idea are welcome.) Regardless, I don't want to create a new page for every texture.<P>I pondered using Ozone's XSSI technique shown below, but I soon realized I would still need to create a different HTML file for each texture with the image name, etc.<P><!--#set var="which" value="$QUERY_STRING_UNESCAPED" --> |
Maniac (V) Lord Mad Scientist Sovereign of all the lands Ozone and just beyond that little green line over there... From: Stockholm, Sweden |
posted 06-01-2000 21:26
Actually, you could still use XSSI for this. Call for a display.html page, like...<P><a href="display.html?tiledimage.jpeg"><P>Now you could use a single include statement like this...<P><!--#echo var="$QUERY_STRING_UNESCAPED" --><P>This single line would output that image name. Now you have stuff like...<P><body background="<!--#echo var="$QUERY_STRING_UNESCAPED" -->"><P><H1><!--#echo var="$QUERY_STRING_UNESCAPED" --></H1><P>You get the idea. Try it out, I used an ugly javascript to generate my background pages, it was heavier than it needed to be, maybe I'll re-write mine too!<P> |
Paranoid (IV) Mad Scientist From: Inside THE BOX |
posted 06-02-2000 00:24
Ahh! It seems so simple. I told you I don't have a programmer's mind. Now, how about this - say I want to add a second variable. Use the file name like you did here, but also display a more user-friendly name for the image like "Plasma Storm" above the image. Can you add another variable like that to the link?<P>Thank you for the help. |
Paranoid (IV) Mad Scientist From: Inside THE BOX |
posted 06-02-2000 01:50
Incidentally, I tried...<P><!--#echo var="$QUERY_STRING_UNESCAPED" --><P>...and all I got was the result (none).<P>I played with it for awhile and came up with...<P><!--#set var="which" value="$QUERY_STRING_UNESCAPED" --> |