|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
SitePoint Articles
Join Date: Apr 2001
Posts: 0
|
Discussion thread for Create Pop-ups Without Dead Links
This is a dedicated thread for discussing the SitePoint article 'Create Pop-ups Without Dead Links'
|
|
|
|
|
|
#2 | |
|
SitePoint Addict
![]() ![]() ![]() Join Date: Mar 2003
Location: UK
Posts: 246
|
Quote:
This is the old version that used Dreemweavers built in popup code. there are 2 sizes of popup. Thanks for any insights. Last edited by mediaman_12; Jun 24, 2004 at 03:37. |
|
|
|
|
|
|
#3 | |
|
SitePoint Addict
![]() ![]() ![]() Join Date: Jun 2004
Location: UK, London
Posts: 314
|
Quote:
if(as[i].target=='target1') { popfun=function(){ window.open(this.href,this.target,'width=100,height=100'); return false; }; if(as[i].target=='target2') { popfun=function(){ window.open(this.href,this.target,'width=400,height=400'); return false; }; or smoother would be if(as[i].target!='') { var attribs; switch (as[i].target) { case 'target1': attribs='width=100,height=100'; break; case 'target2': attribs='width=400,height=400'; break; // ... and so on } as[i].attribs=attribs; popfun=function(){ window.open(this.href,this.target,this.attribs); return false; }; and so on. |
|
|
|
|
|
|
#4 |
|
SitePoint Addict
![]() ![]() ![]() Join Date: Mar 2003
Location: UK
Posts: 246
|
Thanks a lot, after a bit of a struggle (including ridding the site of JS rollovers), I managed to get the lower version working.
|
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 00:44.








Hybrid Mode
