Click to See Complete Forum and Search --> : Need help...new window


kennypooh
03-06-2003, 06:15 PM
Hi,
If anyone can help, I'd greatly appreciate it. I made a menu with 1 cool button tool. I want to be able to use a button to open a url in a new pop up window. Here is an example applet code.
-----------------------------------------------------
<html>
<head><title>1 Cool Button Tool</title></head>
<body>
<center>
<applet name="dings" code="BtnPlayer.class" codebase="." alt="dings Navigation" archive="BtnPlayer.jar" width="300" height="300">
<param name="cabbase" value="BtnPlayer.cab">
<param name="p" value="1,0,1,808080,-1,.,0,0,0,.,.,.">
<param name="b0" value="56,14,120,40,1,0,0,2,4,4,5,^4,^192,^1,^12,^0,^1,^40,^25,^1,^0,^40,^25,^.,^.,^Button 1,^.,http://liquidweb.com,.,Button 1,.,ff,ff0000,ff0000,^ffffff,^ff0000,^.">
<param name="r" value="6e91549e">
<param name="c" value="255de4ba">
<map name="dings">
<area shape="rect" alt="Button 1"

*** this is the link I need to use

href="http://liquidweb.com" coords="56,14,176,54">

***

</map>
<img usemap="#dings" src="dingsMap.jpg" width="300" height="300" alt="dings Image Map" border="0">
</applet>
</center>
</body>
</html>
-----------------------------------------------
Thanks in advance,
Ken

Jona
03-06-2003, 06:16 PM
Maybe....

<param name="b0" value=" 56,14,120,40,1,0,0,2,4,4,5,^4,^192,^1,^12,^0,^1,^4
0,^25,^1,^0,^40,^25,^.,^.,^Button 1,^.,http://liquidweb.com,.,Button 1,.,ff,ff0000,ff0000,^ffffff,^ff0000,^." target="_blank">

zapdos900
03-06-2003, 06:21 PM
Go to chami (http://www.chami.com) and download HTML kit! For Help

kennypooh
03-06-2003, 06:21 PM
Thanks Jona,
If I use _blank, I don't know of any way to resize the window, no scroll bar -- that kinda stuff. Can you help with that?
Ken

pyro
03-06-2003, 10:00 PM
Did you try what I suggested here: http://forums.webdeveloper.com/showthread.php?s=&threadid=5444 ?

kennypooh
03-07-2003, 11:35 AM
Pyro,

I just tried that but it didn't work.
Thanks though, I appreciate it.

Anybody else?

Jona
03-07-2003, 02:33 PM
Maybe change _blank to "newWin" and create a function like this:
<script>
newWin = window.open("","newWin","config=yourConfig");
newWin.document.write('<html>
<head><title>1 Cool Button Tool</title></head>
<body>
<center>
<applet name="dings" code="BtnPlayer.class" codebase="." alt="dings Navigation" archive="BtnPlayer.jar" width="300" height="300">
<param name="cabbase" value="BtnPlayer.cab">
<param name="p" value="1,0,1,808080,-1,.,0,0,0,.,.,.">
<param name="b0" value=" 56,14,120,40,1,0,0,2,4,4,5,^4,^192,^1,^12,^0,^1,^4
0,^25,^1,^0,^40,^25,^.,^.,^Button 1,^.,http://liquidweb.com,.,Button 1,.,ff,ff0000,ff0000,^ffffff,^ff0000,^.">
<param name="r" value="6e91549e">
<param name="c" value="255de4ba">
<map name="dings">
<area shape="rect" alt="Button 1"

*** this is the link I need to use

href="http://liquidweb.com" coords="56,14,176,54">

***

</map>
<img usemap="#dings" src="dingsMap.jpg" width="300" height="300" alt="dings Image Map" border="0">
</applet>
</center>
</body>
</html>');

Just a guess....

kennypooh
03-07-2003, 07:36 PM
Thanks a lot, guys. I figured it out. It's the way you have to use 1 Cool Button Tool to Call the function. Anyway, thanks for your help. You guys are great!
Now I'm working on window.close() without getting an alert window warning you about closing window. Haha.
Ken

Jona
03-07-2003, 07:44 PM
Pyro has accomplished this... I forget the URL, though. Pyro, give it to 'em! LOL :D

pyro
03-07-2003, 11:32 PM
Ok, here's the link, but be careful how you use it. It has the potental to annoy the heck out of your visitors:

http://www.infinitypages.com/research/selfclose.htm

zapdos900
03-08-2003, 07:35 AM
No

pyro
03-08-2003, 10:50 AM
zapdos900, what are you talking about?