Be a Supporter!

Really easy Java question!!

  • 586 Views
  • 5 Replies
New Topic Respond to this Topic
legokiller666
legokiller666
  • Member since: Jan. 28, 2001
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Really easy Java question!! 2001-10-10 16:24:01 Reply

How do i make it so when u click a link it opens a new window without scroll bars and resizability etc?

(ive heard u can do this in html aswell, so, anyone?)

liljim
liljim
  • Member since: Dec. 16, 1999
  • Offline.
Forum Stats
Staff
Level 28
Blank Slate
Response to Really easy Java question!! 2001-10-10 19:36:18 Reply

At 10/10/01 04:24 PM, LegoKiller666 wrote: How do i make it so when u click a link it opens a new window without scroll bars and resizability etc?

(ive heard u can do this in html aswell, so, anyone?)

Umm, you're confusing java with javascript. Look here:
http://www.newgrounds.com/bbs/topic.php?id=11622

QwaNkerkas
QwaNkerkas
  • Member since: Sep. 23, 2001
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to Really easy Java question!! 2001-10-18 11:08:19 Reply

At 10/10/01 04:24 PM, LegoKiller666 wrote: How do i make it so when u click a link it opens a new window without scroll bars and resizability etc?

(ive heard u can do this in html aswell, so, anyone?)

Your mixing this up with java script. I dont really know how to do that but heres a html code for when you enter the site the webpae in the url part pops up:
<SCRIPT LANGUAGE="Javascript">
window.open("URL IN HERE","FORMAT HERE (BANNER AD ETC)","width=, height=,scrollbars,resizeable; FALSE,toolbar,status");
</SCRIPT>

Hopefully it should work

Billism
Billism
  • Member since: Oct. 16, 2001
  • Offline.
Forum Stats
Member
Level 02
Blank Slate
Response to Really easy Java question!! 2001-10-19 10:55:13 Reply

Hello,

This works:

< SCRIPT LANGUAGE="JavaScript" >
< !--
function OpenWin(szURL, szName, szWidth, zsHeight)
{
window.open(szURL, szName, "width=" + szWidth + ",height=" + zsHeight + ",menubar=0,resizable=0,directories=0,hotkeys=0,left=0,location=0,screenX=0 ,screenY=0,scrollbars=0,status=0,toolbar=0,top=0");
}
//-- >
< /SCRIPT >

Open [OpenMe.html] named [Page_Name] with width=[500] and height=[300]

************************
I had to separate the triangle brackets so it owuldnt look like HTML code in the message....

Put this within the body tag.

At 10/10/01 04:24 PM, LegoKiller666 wrote: How do i make it so when u click a link it opens a new window without scroll bars and resizability etc?

(ive heard u can do this in html aswell, so, anyone?)
Billism
Billism
  • Member since: Oct. 16, 2001
  • Offline.
Forum Stats
Member
Level 02
Blank Slate
Response to Really easy Java question!! 2001-10-19 15:13:42 Reply

The message board script mussed it up a bit...
so, in case you need an explanation:

After that java script section, put this inside of an 'A HREF' tag:

javascript:OpenWin('OpenMe.html', 'Page_Name', 500, 300);

in place of just OpenMe.html

At 10/19/01 10:55 AM, Billism wrote: Hello,

This works:

< SCRIPT LANGUAGE="JavaScript" >
< !--
function OpenWin(szURL, szName, szWidth, zsHeight)
{
window.open(szURL, szName, "width=" + szWidth + ",height=" + zsHeight + ",menubar=0,resizable=0,directories=0,hotkeys=0,left=0,location=0,screenX=0 ,screenY=0,scrollbars=0,status=0,toolbar=0,top=0");
}
//-- >
< /SCRIPT >

Open [OpenMe.html] named [Page_Name] with width=[500] and height=[300]

************************
I had to separate the triangle brackets so it owuldnt look like HTML code in the message....

Put this within the body tag.

At 10/10/01 04:24 PM, LegoKiller666 wrote: How do i make it so when u click a link it opens a new window without scroll bars and resizability etc?

(ive heard u can do this in html aswell, so, anyone?)
RancidScammerDude
RancidScammerDude
  • Member since: Jul. 27, 2001
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to Really easy Java question!! 2001-10-21 01:27:56 Reply

<SCRIPT LANGUAGE="Javascript">
window.open("URL IN HERE","FORMAT HERE (BANNER AD ETC)","width=, height=,scrollbars,resizeable; FALSE,toolbar,status");
</SCRIPT>