Closed Thread Icon

Preserved Topic: Dynamic Texture Page (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=17750" title="Pages that link to Preserved Topic: Dynamic Texture Page (Page 1 of 1)" rel="nofollow" >Preserved Topic: Dynamic Texture Page <span class="small">(Page 1 of 1)</span>\

 
Wes
Paranoid (IV) Mad Scientist

From: Inside THE BOX
Insane since: May 2000

posted 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" -->
<!--#if expr="$which != ''" -->
<!--#include virtual="$which" -->
<!--#endif --><P>Again, not being a programmer, I'm really not sure how to tackle this without having someone write me a Perl program to handle everything.<P>Anyone have any ideas?<P>Thanks for your help, and I'll try to contribute more.
<P>

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted 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>

Wes
Paranoid (IV) Mad Scientist

From: Inside THE BOX
Insane since: May 2000

posted 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.
<P>

Wes
Paranoid (IV) Mad Scientist

From: Inside THE BOX
Insane since: May 2000

posted 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" -->
<!--#echo var="which" --><P>...which worked. Had to define it as the variable "which" first for some reason. However...<P><!--#fsize virtual="$QUERY_STRING_UNESCAPED"--><P>...worked.<P> <p>[This message has been edited by Wes (edited 02-06-2000).]

« BackwardsOnwards »

Show Forum Drop Down Menu