Mercurial > bins
comparison templates.marc/static/preview.js @ 0:a84c32f131df 1.1.29
Import vendor version
author | Peter Gervai <grin@grin.hu> |
---|---|
date | Wed, 15 Oct 2008 23:28:56 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a84c32f131df |
---|---|
1 var preview = null; | |
2 | |
3 | |
4 function showPreview(name, pos) { | |
5 if (document.getElementById) { | |
6 preview = document.getElementById(name); | |
7 if (preview) { | |
8 if (pos == 'nw') { | |
9 preview.style.bottom = null; | |
10 preview.style.right = null;; | |
11 preview.style.top = '0px'; | |
12 preview.style.left = '0px'; | |
13 } else if (pos == 'ne') { | |
14 preview.style.bottom = null; | |
15 preview.style.left = null; | |
16 preview.style.top = '0px'; | |
17 preview.style.right = '0px'; | |
18 } else if (pos == 'sw') { | |
19 preview.style.top = null; | |
20 preview.style.right = null; | |
21 preview.style.bottom = '0px'; | |
22 preview.style.left = '0px'; | |
23 } else if (pos == 'se') { | |
24 preview.style.top = null; | |
25 preview.style.left = null; | |
26 preview.style.bottom = '0px'; | |
27 preview.style.right = '0px'; | |
28 } else if (pos == 'nc') { | |
29 preview.style.bottom = null; | |
30 preview.style.right = null; | |
31 preview.style.top = '0px'; | |
32 preview.style.left = '50%'; | |
33 } else if (pos == 'sc') { | |
34 preview.style.top = null; | |
35 preview.style.right = null; | |
36 preview.style.bottom = '0px'; | |
37 preview.style.left = '50%'; | |
38 } | |
39 preview.style.visibility = 'visible'; | |
40 } | |
41 } | |
42 } | |
43 | |
44 | |
45 function hidePreview(name) { | |
46 if (preview) { | |
47 preview.style.visibility = 'hidden'; | |
48 } | |
49 } | |
50 | |
51 | |
52 function PreloadNextImage(image) { | |
53 nextimg = new Image(); | |
54 nextimg.src = image; | |
55 } | |
56 |