PDA

View Full Version : Inset Webpage


Jo McF
07-01-2000, 04:33 PM
Hello![nbsp][nbsp]I'm trying to get my products page to show an enlarged image on an inset webpage (on top) of the item when the user clicks on the picture of the shirt.[nbsp][nbsp]WHat is the code for this?[nbsp][nbsp]Thanks!
~Jo

Brian
07-01-2000, 05:26 PM
It sounds like the best thing to do is link the small image to another page that shows the big image and whatever else you desire.

-Brian

wolfstalks
07-01-2000, 05:31 PM
here's a little java script that I use.
Put this in the head of your document:
<script LANGUAGE=&quot;JavaScript&quot;>
<!--
function PopWindow()
{
window.open('MyPicture.htm','MyPicture','width=300,height=300,men ubar=no,scrollbars=no,toolbar=no,lo-cation=no,directories=no,resizable=no');
}
//-->
</script>

and then use this for the link from the small picture.
<a href=&quot;javascript:PopWindow()&quot;>

You need to create a new html file with the picture in it and then insert the name of the new html file where MyPicture.htm is , and change the width and height atributes to match those of the picture.

Hope thi helps
Bob

Jo McF
07-09-2000, 09:48 PM
<script LANGUAGE=&quot;JavaScript&quot;>
<!--
[
function PopWindow()
{
window.open('MyPicture.htm','MyPicture','width=300,height=300,men ubar=no,scrollbars=no,toolbar=no,lo--cation=no,directories=no,resizable=no');
}
//-->
</script>

and then use this for the link from the small picture.
<a href=&quot;javascript:PopWindow()&quot;>
]

I'll try the javascript, but does that work when I am publishing on AOL?[nbsp][nbsp]I'm not sure what I'm writing my page in (I'm script illiterate) so I don't know if I can use Java if I'm not using it for the rest of my page.
------------------
Jo

wolfstalks
07-10-2000, 10:12 AM
AOL supports javascript,[nbsp][nbsp]I use this on a site that is viewed by alot of AOL users.[nbsp][nbsp]You can use javascript on a single page or thoughout your site, as far as I know it dosen't matter.

Good Luck
Bob