Log In · Register

 
pop ups on my site, having problems :[ HELP!
Heathasm
post Oct 29 2004, 03:43 AM
Post #1


creepy heather
*******

Group: Official Member
Posts: 4,208
Joined: Aug 2004
Member No: 41,580



edit:
okay now i cant figure out how to do it now...
can any one explain how to make pop ups to me? x_x from clicking on a link...and having them fixxed to a certain size for each link

ok figured it out
heres the code if any one does a search on this
CODE
<!-- begin code provided by createblog.com -->
<body>

<script>
var myWin = null;

function popUp(url,x) {
var _w='1080';
var _h='792';
if (x && x==1) { _w='500';_h='466'; }
if (x && x==2) { _w='897';_h='677'; }
if (x && x==3) { _w='999';_h='726'; }
if (x && x==4) { _w='472';_h='349'; }

var _parms = 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable
1,width='+_w+',height='+_h;
myWin=window.open(url,"win1",_parms,true);
myWin.focus();
self.name = "mainWin";
}

</script>

<a href="javascript:popUp('w/e.html')">link</a>,
     <a href="javascript:popUp('w/e.html',1)">link</a>,
     <a href="javascript:popUp('w/e.html',2)">link</a>
  <a href="javascript:popUp('w/e.html',3)">link</a>
<!-- end code provided by createblog.com -->


:] so there
and plus you can add more to that...this is a really useful cod
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: