SitePoint Sponsor |
|
User Tag List
Results 1 to 18 of 18
-
Jun 14, 2004, 02:11 #1
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'
-
Jun 14, 2004, 13:21 #2AnonymousSitePoint Community Guest
good info for web designer
-
Jun 14, 2004, 17:03 #3
-
Jun 15, 2004, 02:20 #4AnonymousSitePoint Community Guest
Awesome article. Thanks.
-
Jun 15, 2004, 02:24 #5
- Join Date
- Apr 2004
- Location
- Australia
- Posts
- 91
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Nice Article!
Thanks.
-
Jun 19, 2004, 12:29 #6AnonymousSitePoint Community Guest
<p>What if you want different window attributes for different links?</p>
<p>Any way to specify by target="_style1" vs target="_style2"?</p>
<p>Or would you have to give the links IDs (preferably CLASS's)?</p>
<p>Great article!</p>
-
Jun 21, 2004, 04:20 #7
- Join Date
- Dec 2003
- Location
- Ireland
- Posts
- 33
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Good & interesting - Ta.
-
Jun 23, 2004, 04:00 #8ChrisSitePoint Community Guest
If you want to use several targets, you need to change the check for _blank and read the target name. Then you use the target name to set the name of the new window.
if(as[i].target!='')
{
popfun=function(){
window.open(this.href,this.target,windowAttributes);
return false;
};
-
Jun 24, 2004, 01:27 #9
- Join Date
- Mar 2003
- Location
- UK
- Posts
- 245
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Chris
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 02:37.
-
Jun 25, 2004, 04:35 #10
- Join Date
- Jun 2004
- Location
- UK, London
- Posts
- 312
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by mediaman_12
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.
-
Jun 28, 2004, 03:07 #11
- Join Date
- Mar 2003
- Location
- UK
- Posts
- 245
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks a lot, after a bit of a struggle (including ridding the site of JS rollovers), I managed to get the lower version working.
-
Jul 7, 2005, 21:13 #12KachenSitePoint Community Guest
Thanks for you scripts
-
Jul 11, 2005, 06:31 #13
- Join Date
- Aug 2001
- Posts
- 0
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
i 8 tom caygil
-
Jan 6, 2006, 10:22 #14JebSitePoint Community Guest
The article on ALA is actually here:
http://www.alistapart.com/articles/popuplinks/
I say this because it's yet another wonderful ALA article . . .
-
Apr 12, 2006, 09:11 #15MeselfSitePoint Community Guest
Pop-ups are equal to viruses
-
Apr 27, 2006, 16:24 #16PhilipSitePoint Community Guest
Pop-ups are not viruses...viruses exploit pop-ups to download themselves onto your computer.
-
Jul 22, 2007, 19:54 #17RizwanSitePoint Community Guest
I can't get this to work...if someone can. please email me at l2izwan@yahoo.com
-
Jun 12, 2008, 20:01 #18ggggSitePoint Community Guest
(unknown virus exploiter) self destruct
Bookmarks