/[webpac]/trunk2/out/js/popup.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk2/out/js/popup.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 476 by dpavlin, Sun Sep 26 18:39:46 2004 UTC revision 483 by dpavlin, Sun Sep 26 21:59:11 2004 UTC
# Line 1  Line 1 
1  function popup() {  function popup(link) {
2          //alert("open "+this.href+" in "+this.target);          var target = 'popup';
3          var popup_win = window.open(this.href,this.target,'width=400,height=400,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');          var url = this.href;
4          popup_win.focus();  
5            if (link.href) {
6                    if (link.target) target = link.target;
7                    url = link.href;
8            }
9    
10            //alert("open "+url+" in "+target+" link:"+link+" this:"+this);
11    
12            var popup_win = window.open(url,target,'width=400,height=400,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
13    
14            if (popup_win) {
15                    popup_win.moveTo((screen.width/2),(screen.height/2)-200);
16                    popup_win.focus();
17            }
18    
19          return false;          return false;
20  }  }

Legend:
Removed from v.476  
changed lines
  Added in v.483

  ViewVC Help
Powered by ViewVC 1.1.26