[thelist] js popup images

sasha sasha at bittersweet2.com
Tue Apr 23 18:59:00 CDT 2002


If you happen to have access to PHP (or other server
side language), you could write just one page that can
include any image you want.

[code]
<html>
<head>
<title><? echo "$image"; ?></title>
</head>

<body marginwidth=0 marginheight=0 leftmargin=0
topmargin=0>

<? echo "<img src=\"images/$image\">"; ?>

</body>
</html>
[/code]

Then call the image like this:
images.php?image=your_image_name_here

I sometimes use a PHP function to determine the size of
the image and insert it for me into the js window call.
Saves me time down the road, incase the image size
changes.

Christy "sasha" Siepker
http://www.bittersweet2.com

4/21/2002 5:33:24 PM, Adam <adam at hallinteractive.com>
wrote:

>hey all
>
>I'm using this juicy script I got to launch images not
docs in new windows
>here's the call
>
> <a href="turnkey8/large/g_pailloading.jpg"
onclick="subWin(this.href, 270,
>386); return false;" title="Larger Picture">
>
>Is there any way for me to assign an attribute to
control the picture's
>position in the new window without creating a document
for it?
>The thing is I have over 200 images to have pop up and
I don't want a doc to
>call the image(200images=200docs). So far in windows
browsers ie5*, moz9.9,
>nn6.2 the pics  aren't snug with the top left. On my
mac the images are the
>exact defined size of the windows.
>
>anyone have any ideas?
>
>any help would be immensely appreciated.
>
><tip type="comments in style sheets">
>In my recent experiences ie will let style rules go
through and display even
>if they written incorrectly. NN6, Moz, will choke on
the same rule. NN6 has
>also given me trouble when I place /* comments */
within the style{}.
></tip>
>
>--
>For unsubscribe and other options, including
>the Tip Harvester and archive of thelist go to:
>http://lists.evolt.org Workers of the Web, evolt !
>








More information about the thelist mailing list