4 Replies - 2337 Views - Last Post: 18 June 2002 - 08:15 AM

#1 westhefunkyhuman   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 25-January 02

Thumbnail, New Window Question

Post icon  Posted 17 June 2002 - 10:13 PM

i want a thumbnail, when you click it, to open the whole image in a new window

but.. i want the window to be about the same size as the image.. not full screen

anyone know how to go about this?


:D
Is This A Good Question/Topic? 0
  • +

Replies To: Thumbnail, New Window Question

#2 Guest_Red93CobraR*


Reputation:

Re: Thumbnail, New Window Question

Posted 17 June 2002 - 10:58 PM

Well, you're going to have to use a javascript Pop_up link. Which should look something like this....

javascript:popUpHoriz('060171.htm','060171')


First you'll have to find a window that will fit your pictures. In this case the window was named "Horiz". If you would like an example of this effect it can be found here: David Lewis Photography

Go into the gallery, choose a category and click one of the thumbnail images. I would suggest using Internet Explorer to view this site.

If you need any further details just let me know.
Was This Post Helpful? 0

#3 skyhawk133   User is offline

  • Head DIC Head
  • member icon

Reputation: 1972
  • View blog
  • Posts: 20,425
  • Joined: 17-March 01

Re: Thumbnail, New Window Question

Posted 17 June 2002 - 11:25 PM

On that particular site we used a few differnent sized windows:

<script language="Javascript">

<!-- hide from non-[url=http://www.dreamincode.net/forums/forum/32-java/]Java[/url] enabled browsers

function popUpVert(path,wname) {
newWin=eval("window.open('"+path+"',wname,'width=500,height=650,left=150,top=150,screenX=150,screenY=150,scrollbars=0,toolbar=0,location=0,status=0,menubars=0,resizable=0')")
}
function popUpHoriz(path,wname) {
newWin=eval("window.open('"+path+"',wname,'width=650,height=450,left=0,top=0,screenX=0,screenY=0,scrollbars=0,toolbar=0,location=0,status=0,menubars=0,resizable=0')")
}
function popUp(path,wname) { 
newWin=eval("window.open('"+path+"',wname,'width=650,height=600,left=150,top=150,screenX=150,screenY=150,scrollbars=0,toolbar=0,location=0,status=0,menubars=0,resizable=0')")
}
function popUpVert2(path,wname) {
newWin=eval("window.open('"+path+"',wname,'width=600,height=650,left=150,top=150,screenX=150,screenY=150,scrollbars=0,toolbar=0,location=0,status=0,menubars=0,resizable=0')")
}

// end hide -->


</script>


I would suggest doing something like that... or if you can pull back the size of the picture using PHP (???) or javascript (???) you can then dynamically create the above Javascript with the width and height equal to your picture + 10 or so pixels... course I gotta find if there is a way to pull back height and width on a picture using PHP.
Was This Post Helpful? 0
  • +
  • -

#4 westhefunkyhuman   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 25-January 02

Re: Thumbnail, New Window Question

Post icon  Posted 18 June 2002 - 02:36 AM

well, it took a while (its now 4:36AM here) but i got it done.. results are at http://www.smallbang.com/images.htm if anyone cares.. thanks for the help guys. maybe i will stay here a little longer :D
Was This Post Helpful? 0
  • +
  • -

#5 Guest_Red93CobraR*


Reputation:

Re: Thumbnail, New Window Question

Posted 18 June 2002 - 08:15 AM

Yes I realize we used a few different sizes....I did them all remember! But Good work Wes.
Was This Post Helpful? 0

Page 1 of 1