TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

popup window

Page: 1 2 Reply
May 13th 2002#47386 Report
Member since: Feb 15th 2002
Posts: 84
On my splash page, i'm trying to create a pop up window to display the main content on my site; without a scrollbar, a menubar, etc. etc.

How do I do this? I really hope it's not php. Every site that i've seen that had this effect, always had the main content with .php extension.

Any ideas? Thx
Reply with Quote Reply
May 13th 2002#47392 Report
Member since: Mar 24th 2002
Posts: 3114
onClick="window.open(all attributes here)"
attributes: URL, width, height, statusbar=no, etc etc...Can´t remember all the attribs, but check google or hotscripts or something.... lol...
Reply with Quote Reply
May 13th 2002#47401 Report
Member since: May 1st 2002
Posts: 3034
SCRIPT LANGUAGE="JavaScript"

function popup() {
var URL = URLhere;

var windowName = what.windowName.value;

var features =
'width=' ',height=' ' ',location='
',menubar=' ',scrollbars='
',status=' ',toolbar=' ',Resizable='

window.open (URL, windowName, features);
}

/SCRIPT

input type="button" onclick="popup";
something like that
[edit]onclick="popup();"[/edit]
Reply with Quote Reply
May 13th 2002#47438 Report
Member since: Feb 15th 2002
Posts: 84
Originally posted by Zyconium

var features =
'width=' ',height=' ' ',location='
',menubar=' ',scrollbars='
',status=' ',toolbar=' ',Resizable='





oh yes, Javascript...

excellent /mr.burns cynical deep voice

so with the ' do i place either a yes or a no, and with the " do i place a specific #? Is that right?


thx
Reply with Quote Reply
May 13th 2002#47440 Report
Member since: May 1st 2002
Posts: 3034
yeah just put yes or no becaue its a boolean expression or whatever, I don't think you need a spiecific #
except for the width and height but thats only if you want it specific size
if not just remove those variables
Reply with Quote Reply
May 13th 2002#47447 Report
Member since: Apr 20th 2002
Posts: 3000
http://www.teamphotoshop.com/forum/vbforum/showthread.php?s=&threadid=7115

Read my post, its the shortest and doesn't require extra script commands.
Reply with Quote Reply
May 14th 2002#47650 Report
Member since: Feb 15th 2002
Posts: 84
moochman, I just tried your code, added a height, width, and location, and placed it in the body tag... but nothing happened. The link doesn't work. Maybe I did something wrong

I'm now trying Zycon's
Reply with Quote Reply
May 14th 2002#47655 Report
Member since: Mar 24th 2002
Posts: 3114
var winAttributes = '"width=800,height=600,status=no,menubar=no,toolbar=no,copyHistory=no,left=0,top=0"'
function popper1()
{
window.open("THEURLHERE!!","",winAttributes)
}

Code A´la Paavo. Works great. :D
Reply with Quote Reply
May 14th 2002#47656 Report
Member since: May 1st 2002
Posts: 3034
paavo isn't that like the same as mine?
cept I used a var for the url?
I wouldn't do 800x600
try
750x550
Reply with Quote Reply
May 14th 2002#47657 Report
Member since: Feb 15th 2002
Posts: 84
oh sorry moochman, it really helps reading the entire thread b4 rejecting something..

so it's working now

oh and Paavo, whoops I totally skipped over your post... You probably could have saved me the time of reading an entire new thread if I had seen it I have this weird internet dyslexia thing going on, where when i read a message board,I typically read bottom up, since all the post are typically ordered from oldest to latest.

I dunno
Reply with Quote Reply
Page: 1 2 Back to top
Please login or register above to post in this forum