PDA

View Full Version : html help


Hypo
03-29-2001, 01:27 AM
I have a site with thumbnails leading to images on html pages. I want the links on the thumbnailsto be like - imagepage.html?img=17 etc so that I can have just one page for the image html pages and it pulls up the image acording to the link. I can do this using php. Is there any way I can do this using some non-server side method like javascript?

guy2
03-29-2001, 02:27 AM
yes this can be done with just regular html, on the image html pages, before each image put

<a name=#pic1">

and then on the other page where the link is, put

<a href="picpage.html#pic1">click here for pic1 </a>

that should work for you

Hypo
03-29-2001, 02:51 AM
I dont think you have understood me right. I want to have one page with links to all the pictures, and one page that will display the picture. Say one is index.html and the other is image.html . The index.html has links like -

<a href="image.html?img=1">Img1</a>
<a href="image.html?img=2">Img2</a>
<a href="image.html?img=3">Img3</a>

And depending on the link the image.html will display the respective picture.

richard
03-29-2001, 04:06 AM
i understand you, i did this myself with a little perl script, because it had a load of other functions rather than just displaying the images, but its very easy in javascript:

http://www.qbabes.com/awi_query_image.html?logo

<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">

</head>
<body>

Hey there AWI reader, the next line contains javascript to display an image from the query string - try changing it to "logo", "logo_small" or "q" http://bbs.adultwebmasterinfo.com/ubb/smile.gif<br><br><br>

<SCRIPT>

s=new String(location.search)


if(s.substring(1) != ""){

document.write("<img src=http://www.qbabes.com/images/"+s.substring(1)+".gif")

}
</SCRIPT>

</BODY></HTML>

enjoy http://bbs.adultwebmasterinfo.com/ubb/smile.gif

Hypo
03-29-2001, 05:21 AM
Just what I wanted. Thanks!

Hypo
03-29-2001, 05:25 AM
Has anyone noticed, pasting some html code on this BB shifts all the messages to the left? See this thread and compare it with any other thread on the board. Wonder what does it?

Hypo
03-29-2001, 05:28 AM
Looks like somehow the 'table width=95%' gets overridden.

richard
03-29-2001, 06:28 AM
no worries http://bbs.adultwebmasterinfo.com/ubb/smile.gif

i have notice this too, i think it might just be the code tags?