question 2

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bedrosamo
Forum Newbie
Posts: 16
Joined: Wed Sep 20, 2006 2:21 pm

question 2

Post by bedrosamo »

on my website there is a button , that i want when they click on it a pop up page opens. (i have this BUT ), i dont want the pop up page be a regualr full page.. but i want it to open a small page (width = 30 , height =40) , do i do this by using html or php and how ? (i mean what is doing now is like it opens a full white page , and only a small part of the page (30*40) there is my text... but i just dont want the whole page to appear..
thanks for the help:)
User avatar
SpecialK
Forum Commoner
Posts: 96
Joined: Mon Sep 18, 2006 3:49 pm

Post by SpecialK »

As a note I found when wanting a page sized that small.

JavaScript actually limits the size of your window to 100x100 unless you have it digitally signed. I'm a big fan of using JavaScript to save network traffic, although as everyone says, you have to have a backup for the people who turn it off.
bedrosamo
Forum Newbie
Posts: 16
Joined: Wed Sep 20, 2006 2:21 pm

Post by bedrosamo »

anyone can give me the code of a 40*30 page? i mean i need the html+php(if needed) code of a page that is 40*30 (i will use it for as a pop up)
User avatar
gkwhitworth
Forum Commoner
Posts: 85
Joined: Tue Sep 05, 2006 8:28 pm
Location: Wasilla, Alaska

Javascript

Post by gkwhitworth »

For this you are going to want to use javascript...way easier than php.

http://www.yourhtmlsource.com/javascrip ... ndows.html

--
Greg
User avatar
gkwhitworth
Forum Commoner
Posts: 85
Joined: Tue Sep 05, 2006 8:28 pm
Location: Wasilla, Alaska

Post by gkwhitworth »

Oh yeah...remember Google is your friend.

--
Greg
Post Reply