~ubuntu-branches/ubuntu/lucid/gallery/lucid

« back to all changes in this revision

Viewing changes to js/wz_jsgraphics.js

  • Committer: Bazaar Package Importer
  • Author(s): Michael C. Schultheiss
  • Date: 2007-03-30 16:12:33 UTC
  • mfrom: (1.1.6 upstream) (4.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20070330161233-lia4toyh02oekwcn
Tags: 1.5.5-pl1-1
* New upstream release (Closes: #398862)
* debian/postrm: Make conditional call to debconf (Closes: #416747)  Urgency
  high since this is an RC bug.
* debian/apache.conf: Don't disallow access to .default 
  files (Closes: #404944)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* This notice must be untouched at all times.
2
2
 
3
 
wz_jsgraphics.js    v. 2.33
 
3
wz_jsgraphics.js    v. 2.36
4
4
The latest version is available at
5
5
http://www.walterzorn.com
6
6
or http://www.devira.com
8
8
 
9
9
Copyright (c) 2002-2004 Walter Zorn. All rights reserved.
10
10
Created 3. 11. 2002 by Walter Zorn (Web: http://www.walterzorn.com )
11
 
Last modified: 24. 10. 2005
 
11
Last modified: 21. 6. 2006
12
12
 
13
13
Performance optimizations for Internet Explorer
14
14
by Thomas Frank and John Holdsworth.
70
70
 
71
71
function pntCnvDom()
72
72
{
73
 
        var x = document.createRange();
 
73
        var x = this.wnd.document.createRange();
74
74
        x.setStartBefore(this.cnv);
75
75
        x = x.createContextualFragment(jg_fast? this.htmRpc() : this.htm);
76
 
        this.cnv.appendChild(x);
 
76
        if(this.cnv) this.cnv.appendChild(x);
77
77
        this.htm = '';
78
78
}
79
79
 
80
80
 
81
81
function pntCnvIe()
82
82
{
83
 
        this.cnv.insertAdjacentHTML("BeforeEnd", jg_fast? this.htmRpc() : this.htm);
 
83
        if(this.cnv) this.cnv.insertAdjacentHTML("BeforeEnd", jg_fast? this.htmRpc() : this.htm);
84
84
        this.htm = '';
85
85
}
86
86
 
87
87
 
88
88
function pntCnvIhtm()
89
89
{
90
 
        this.cnv.innerHTML += this.htm;
 
90
        if(this.cnv) this.cnv.innerHTML += this.htm;
91
91
        this.htm = '';
92
92
}
93
93
 
892
892
                this.htm += '<div style="position:absolute;'+
893
893
                        'left:' + x + 'px;'+
894
894
                        'top:' + y + 'px;'+
895
 
                        'width:' +  w + ';'+
896
 
                        'height:' + h + ';">'+
 
895
                        'width:' +  w + 'px;'+
 
896
                        'height:' + h + 'px;">'+
897
897
                        '<img src="' + imgSrc + '" width="' + w + '" height="' + h + '"' + (a? (' '+a) : '') + '>'+
898
898
                        '<\/div>';
899
899
        };