SitePoint Sponsor

User Tag List

Results 1 to 18 of 18
  1. #1
    ********* Articles ArticleBot's Avatar
    Join Date
    Apr 2001
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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. #2
    Anonymous
    SitePoint Community Guest
    good info for web designer

  3. #3
    SitePoint Member floris's Avatar
    Join Date
    Feb 2003
    Location
    Netherlands
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is a great article! A nice read and very complete. I rated this a 10 for great.
    vbfans network: fans - styles - chat - languages - tutorials - setup
    wetalk network: tv - movies - games - books - music - sports - celebs
    floris network: my personal blog - online irc chat - instant helpdesk

  4. #4
    Anonymous
    SitePoint Community Guest
    Awesome article. Thanks.

  5. #5
    SitePoint Enthusiast Adam E's Avatar
    Join Date
    Apr 2004
    Location
    Australia
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice Article!

    Thanks.

  6. #6
    Anonymous
    SitePoint 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>

  7. #7
    SitePoint Enthusiast osd's Avatar
    Join Date
    Dec 2003
    Location
    Ireland
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good & interesting - Ta.

  8. #8
    Chris
    SitePoint 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;
    };


  9. #9
    SitePoint Addict
    Join Date
    Mar 2003
    Location
    UK
    Posts
    245
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Chris
    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;
    };
    Please expand on this, How would you send different windowAttributes to the specified targets? If if put the different names in the target!='high' it efects all the popups EXCEPT the one I name.
    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.

  10. #10
    SitePoint Addict
    Join Date
    Jun 2004
    Location
    UK, London
    Posts
    312
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by mediaman_12
    Please expand on this, How would you send different windowAttributes to the specified targets? If if put the different names in the target!='high' it efects all the popups EXCEPT the one I name.
    This is the old version that used Dreemweavers built in popup code. there are 2 sizes of popup.
    Thanks for any insights.
    You can check for your different popup classes and but in bespoke attributes

    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.

  11. #11
    SitePoint Addict
    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.

  12. #12
    Kachen
    SitePoint Community Guest
    Thanks for you scripts

  13. #13
    SitePoint Member
    Join Date
    Aug 2001
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i 8 tom caygil

  14. #14
    Jeb
    SitePoint 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 . . .

  15. #15
    Meself
    SitePoint Community Guest
    Pop-ups are equal to viruses

  16. #16
    Philip
    SitePoint Community Guest
    Pop-ups are not viruses...viruses exploit pop-ups to download themselves onto your computer.

  17. #17
    Rizwan
    SitePoint Community Guest
    I can't get this to work...if someone can. please email me at l2izwan@yahoo.com

  18. #18
    gggg
    SitePoint Community Guest
    (unknown virus exploiter) self destruct


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •