Click on image to enlarge
#1
Posted 29 May 2005 - 01:32 AM
Heres an example: http://www.naruto-ku...wallpapers.html
Please help! Thanks.
#2
Posted 29 May 2005 - 01:48 AM
just resize the image to the size you need the thumbnail to be, and link it to the image itself to open in a new broswer window (easy way). or use javascript to have a popup with the image in it like they have in your example.
search google for javascript popup and you'll be able to find some code and more info.
#3
Posted 29 May 2005 - 02:39 AM
Does your host support PHP?
#4
Posted 29 May 2005 - 05:02 AM
#5
Posted 29 May 2005 - 06:56 PM
#6
Posted 30 May 2005 - 02:18 AM
Also, Don't double post.
#7
Posted 07 June 2005 - 09:29 PM
hope that helps use the same image
#8 _*Speed_*
Posted 07 June 2005 - 10:00 PM
<script LANGUAGE="JavaScript"> <!-- Begin function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=80 0,height=600,left = 240,top = 212');"); } </script>
and to open it by link you do this,
<A HREF="javascript:popUp('http://www.yourwebsite.com/yourpicture.jpg')">Open Picture</A>
#9
Posted 07 June 2005 - 10:25 PM
#10 _*Speed_*
Posted 11 June 2005 - 10:14 PM
#11
Posted 11 June 2005 - 11:00 PM
um, i tried putting this on, but then it messes up the entire page. i add it in the head area rite?Hmm i found this code.
<script LANGUAGE="JavaScript"> <!-- Begin function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=80 0,height=600,left = 240,top = 212');"); } </script>
and to open it by link you do this,<A HREF="javascript:popUp('http://www.yourwebsite.com/yourpicture.jpg')">Open Picture</A>
#12 _*Speed_*
Posted 11 June 2005 - 11:20 PM
#13
Posted 12 June 2005 - 12:47 AM
#14
Posted 22 June 2005 - 07:48 AM
I'm sure I wrote a PHP script that does this automatically, I'll go look for it.
Does your host support PHP?
adam did you have any luck finding that script? happens that im looking for the same thing now but too lazy to do it myself with 20 or 30 thumbnails.
also, what was that local server you posted before, i cant find it in search.
#15
Posted 22 June 2005 - 01:58 PM
<?php $image = $_GET['image']; if (!$max_width) $max_width = 490; if (!$max_height) $max_height = 368; $size = GetImageSize($image); $width = $size[0]; $height = $size[1]; $x_ratio = $max_width / $width; $y_ratio = $max_height / $height; if ( ($width <= $max_width) && ($height <= $max_height) ) { $tn_width = $width; $tn_height = $height; } else if (($x_ratio * $height) < $max_height) { $tn_height = ceil($x_ratio * $height); $tn_width = $max_width; } else { $tn_width = ceil($y_ratio * $width); $tn_height = $max_height; } $src = ImageCreateFromJpeg($image); $dst = ImageCreateTrueColor($tn_width,$tn_height); ImageCopyResized($dst, $src, 0, 0, 0, 0, $tn_width, $tn_height, $width, $height); header('Content-type: image/jpeg'); ImageJpeg($dst, null, -1); ImageDestroy($src); ImageDestroy($dst); ?>
I've got it set so it takes the address of the image in the url, but i'm sure you could edit it so it takes the value of a database and the like.
You can adjust max_width and height variables to your needs.
Oh yeah, you need GD2Lib installed as a PHP extenstion.
=================
PHPTriad is the server package I mentioned.
#16
Posted 22 June 2005 - 11:58 PM
#17
Posted 23 June 2005 - 12:25 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users