easy problem 4U

S

steve32880

I'm building a website.

I have 25 *.gif files, all of the same exact dimensions, and all of which i
would like to display on the same exact background in the same exact spot,
but i don't want to make 25 web pages. I want to make one page that has 25
links (the titles of each *.gif file), each of which, when clicked, will
display the appropriate *.gif in the spot in the middle of the page, so the
viewer can view each *.gif one at a time.

Can I do this in html?
 
B

brucie

In post <[email protected]>
Lorne Cameron said...

<SCRIPT LANGUAGE="javascript"
^^^^^^^^^
delete it 'language' is deprecated in favor of 'type'
TYPE="text/javascript">
^^^^
which you have here anyway
<!--
var imageURL = location.search.substring(1);
document.write("<IMG SRC='" + imageURL + "' ALT='ALT_TEXT_HERE'>");
-->
</SCRIPT>
<A HREF="openImage.html?IMAGE_URL">IMAGE_NAME/thumbnail/etc</A>

what happens without JS?
 
R

Richard Cornford

what happens without JS?

The traditional completely blank page of course.

It might be possible to arrange that JavaScript was used to introduce
the JavaScript dependant openImage.html page into the equation in a way
that might still leave the user looking at the image if JS was not
available.

<a href="theImage.jpg"
onclick="this.href = 'openImage.html?img='+escape(this.href);">
IMAGE_NAME/thumbnail/etc</A>

Though a server-side script could produce reliable and consistent
results for everyone, for an equivalent authoring effort.

Richard.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top