Jump to content


create pop up with set height and wifth


7 replies to this topic

#1 donkeymusic

    Jedi In Training

  • Members
  • PipPip
  • 495 posts
  • Gender:Male
  • Location:Warrington, UK

Posted 15 February 2006 - 07:53 PM

i have created a gallery which i would like that whe a ser clicks the image it opens anew window with details, i want this widnow to be a set height and width.

how wolud i do this?

thanks for any help.

#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 15 February 2006 - 09:12 PM

<a href="java script:window.open('URL', 'obj', 'width=20px,height=20px');">link</a>
This is fairly common, look in the tutorial database for more detailed tutorials.

note: the space between java and script shouldn't be there, ipb just doesn't like me.

Edited by rc69, 16 February 2006 - 05:53 PM.


#3 donkeymusic

    Jedi In Training

  • Members
  • PipPip
  • 495 posts
  • Gender:Male
  • Location:Warrington, UK

Posted 16 February 2006 - 09:59 AM

does it have to use javascript?

#4 Av-

    I Feel Left Out

  • Members
  • PipPipPipPip
  • 1,971 posts
  • Gender:Male
  • Location:10 ft. below sea level

Posted 16 February 2006 - 12:22 PM

If you want to set a specific width and height, yes

#5 donkeymusic

    Jedi In Training

  • Members
  • PipPip
  • 495 posts
  • Gender:Male
  • Location:Warrington, UK

Posted 11 March 2006 - 05:30 AM

View PostAvalanche, on Feb 16 2006, 05:22 PM, said:

If you want to set a specific width and height, yes
i thought you could just create a new html page with the hieight and width set so that when the link is clicked it opens th epop in a new window, am i wrong?

#6 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 11 March 2006 - 01:32 PM

html alone cannot set the size of a window. You can use the target attribute in a link to create a new window, but you will have no control over it's size, position, etc.

#7 donkeymusic

    Jedi In Training

  • Members
  • PipPip
  • 495 posts
  • Gender:Male
  • Location:Warrington, UK

Posted 12 March 2006 - 05:15 AM

okay this willseem stupid but what do i search for? i had done a search after the origianl post and got some good tutorials but have since loast them and cant remember how i found them

Edited by donkeymusic, 12 March 2006 - 06:24 AM.


#8 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 13 March 2006 - 04:38 PM

The simplest thing i can think of would be pop ups.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users