pop ups on my site, having problems :[ HELP! |
pop ups on my site, having problems :[ HELP! |
![]()
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 |
|
|
![]() |
![]()
Post
#2
|
|
![]() ‹(. .)› ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 2,367 Joined: Jun 2004 Member No: 20,089 ![]() |
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.
|
|
|
![]()
Post
#3
|
|
![]() 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 ![]() |
|
|
![]()
Post
#4
|
|
![]() Senior Member ![]() ![]() ![]() Group: Member Posts: 80 Joined: Oct 2004 Member No: 58,607 ![]() |
Do'nt they have generators for stuff like that??
idk knarf ![]() |
|
|
![]()
Post
#5
|
|
![]() hello. ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 1,105 Joined: Jun 2004 Member No: 23,600 ![]() |
umm try this
CODE <!-- begin code provided by createblog.com -->
<a href="#" TARGET=_ onclick="window.open( 'url','','width=400,height=400,status=no,resizable=no,menubar=no,toolbar=no,scrollbars yes'); return false">link here</a> <!-- end code provided by createblog.com --> |
|
|
![]()
Post
#6
|
|
![]() creepy heather ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 4,208 Joined: Aug 2004 Member No: 41,580 ![]() |
that code doesnt work
it has to do with java script.... i think theres a script that goes on the page that i want to pop up and one that goes in the index.html to show the link and stuff |
|
|
*[2]Nekked* |
![]()
Post
#7
|
Guest ![]() |
QUOTE(swe3txprincesz @ Oct 29 2004, 12:57 PM) umm try this CODE <!-- begin code provided by createblog.com --> <a href="#" TARGET=_ onclick="window.open( 'url','','width=400,height=400,status=no,resizable=no,menubar=no,toolbar=no,scrollbars yes'); return false">link here</a> <!-- end code provided by createblog.com --> there should be some js that goes in the <head> before you can use that. |
|
|
![]() ![]() |