pop ups on my site, having problems :[ HELP! |
pop ups on my site, having problems :[ HELP! |
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 |
|
|
|
![]() |
Oct 29 2004, 04:39 AM
Post
#2
|
|
![]() creepy heather ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 4,208 Joined: Aug 2004 Member No: 41,580 |
QUOTE(synkro @ Oct 29 2004, 4:12 AM) it doesn't work that way... all your popups will be the same because it's the same function. in your script, you're using the function "popitup"... it doesn't know how to differentiate between the first script you posted and the rest. i suggest you use another popup script... one in which you can change the sizes from the link tag itself rather than the script. ohhh thank you for the quick answer |
|
|
|
Heathasm pop ups on my site Oct 29 2004, 03:43 AM
synkro it doesn't work that way... all your popups wi... Oct 29 2004, 04:12 AM
knarf_knarf_knarf Do'nt they have generators for stuff like that... Oct 29 2004, 11:41 AM
swe3txprincesz umm try this
CODE<!-- begin code provided... Oct 29 2004, 11:57 AM
Heathasm that code doesnt work
it has to do with java scri... Oct 29 2004, 04:48 PM
[2]Nekked QUOTE(swe3txprincesz @ Oct 29 2004, 12:57 PM)... Oct 29 2004, 06:45 PM![]() ![]() |