Closed Thread Icon

Preserved Topic: Attention all scripting wizards! Pages that link to <a href="https://ozoneasylum.com/backlink?for=17848" title="Pages that link to Preserved Topic: Attention all scripting wizards!" rel="nofollow" >Preserved Topic: Attention all scripting wizards!\

 
Author Thread
twItch^
Maniac (V) Mad Scientist

From: the west wing
Insane since: Aug 2000

posted posted 08-31-2000 03:10

...okay, maybe I just don't have the attention span for this anymore. I need to figure out how to get a window to close while simultaneously loading up a new window set to my specific size.

I load the instruction into the <head> like so:

code:
<SCRIPT>
function popUp(page,PWidth,PHeight,id) {
eval("fineline"+id+"=window.open('"+page+"','fineline0','toolbar=0,scrollbars=0,location=0,status=0,menubars=0,resizable=0,width="+PWidth+",height="+PHeight+"')")
eval("fineline"+id+".window.moveTo((screen.width/2)-(PWidth/2),(screen.height/2)-(PHeight/2))")
}
</SCRIPT>



then, on the href tag, I use this code;

code:
<A HREF="javascript :popUp('index2.html',730,380,0)">



Help me out here.. I'm running out of patience for myself, and I simply am not creative enough to figure out the solution myself. hah

Thanks in advance.


(edit) had to take slimies off--they made into a smiley, and that was bad.

[This message has been edited by twItch^ (edited 31-08-2000).]

ocb
Bipolar (III) Inmate

From: Dublin, Ireland
Insane since: Jun 2000

posted posted 09-04-2000 14:33

This should help you..

// Make sure this var isnt filled with rubbish from memory
var showWin = null;

function show(urlen,wid,hig)
{
if (showWin != null)
{
if (!showWin.closed)
{
showWin.close();
}
}
showWin = window.open(urlen,"",'toolbar=0,location=0,top=0,left=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+wid+',height='+hig+',dependent=yes');

}

« BackwardsOnwards »

Show Forum Drop Down Menu