Click to See Complete Forum and Search --> : Java popup boxes!


bigal
08-22-2003, 09:39 AM
I still have probs with my website!
If i press "clock" it opens a small clock in a small java window! FINE, but if you then click "Mixer" for instance, you get the Mixer, but in the clocks window!, how can i make Everything open in its own window And not in one currently open?


For a demo, download this (http://www.bigalsstuff.hpg.ig.com.br/infa/) file and rename to *.zip
Open openme!!!!.htm
I have this as a frame along the top of my site! Press Clock. Then press Mixer
It opens in the clocks frame! Damn, how to fix? I am at a loss!



Here the script:

--------------------------------------------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>top</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">
<!--
body
{
scrollbar-face-color:#000000;
scrollbar-highlight-color:#FFFFFF;
scrollbar-3dlight-color:#C0C0C0;
scrollbar-shadow-color:#C0C0C0;
scrollbar-darkshadow-color:#404040;
scrollbar-track-color:0000FF;
scrollbar-arrow-color:0000FF;
}
-->
</style>

</head>

<body bgcolor="#000000" text="#0000FF" link="#0000FF" vlink="#0000FF" alink="#0000FF">

<script>
<!--
function fullwin(targeturl){
window.open(targeturl,"","fullscreen,scrollbars")
}
//-->
</script>

<script language=JavaScript>
<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>
..::((<a href="javascript:void(0)" ONCLICK="window.open('mix.htm','miniwin',& #39;toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=565,height=
420')">Mixer</a>
))--((<a href="javascript:void(1)" ONCLICK="window.open('bgmusic.htm','miniwin',& #39;toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=310,height=
450')" >BG
Music</a>))--((<a href="javascript:void(2)" ONCLICK="window.open('clock.htm','miniwin',& #39;toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=125,height=
155')" >Clock</a>))--((<a href="javascript:void(3)" onClick="fullwin('index2.html')" value="Open window">Fullscreen</a>))--((<a href= "javascript:window.close()" target=_top >Exit</a>))::..
</body>
</html>

Khalid Ali
08-22-2003, 10:54 AM
Take a look at this line in your js code

window.open(targeturl,"","fullscreen,scrollbars")

the first parameter in the parenthesis is for the ur to be opened,second is window name(which is empty in your case
make sure you assign a unique name to all of your windows

bigal
08-22-2003, 01:32 PM
When i do this,

<a href="javascript:void(1)" ONCLICK="window.open('bgmusic.htm','music','miniwin','toolbar=1,location=0,directories=0,status=0,menubar=0,s crollbars=0,resizable=0,width=310,height=450')" >BG

It open in a full windows, not of the size i specify!
But everything opens in its own window! One step forward, another back! :(


EDIT: I am a complete IDIOT!
You mean replace 'miniwin' with mixer, or music!

It works brilliantly!
You guys are great! :D