root/documented-examples/trunk/lomdemo-e/macros/extra.dm @ 22898

Revision 22898, 3.6 KB (checked in by kjdon, 9 years ago)

forgot macros folder

Line 
1
2
3package Global
4
5
6_mdtabtrbg_  {\#f0f0f0}
7_mdtabtdbg_  {\#f0fff0}
8_mdtabtabbg_ {\#f0fff0}
9
10_httpopenmdicon_  {_httpcollection_/images/open.gif}
11_httpclosemdicon_ {_httpcollection_/images/close.gif}
12
13
14
15_mdtexttab_ {<td width=100 style='text-align: center;
16                               border-left:  1px solid black;
17                           border-top:   1px solid black;
18                           border-right: 1px solid black'>_1_</td>
19}
20
21_mdtabdip_   {<td width=10  style='border-bottom: 1px solid black;
22                       background-color: white;'>&nbsp;</td>
23}
24
25_mdtabblank_ {<td width=100 style='border-bottom: 1px solid black;
26                       background-color: white;'>&nbsp;</td>
27}
28
29_mdtabfill_  {<td           style='border-bottom: 1px solid black;
30                       background-color: white;'>&nbsp;</td>
31}
32
33_mdhreftab_ {
34  <td width=100 style='text-align: center;
35                   border-left:  1px solid black;
36               border-top:   1px solid black;
37               border-right: 1px solid black'><a class='mdtablink' href='_gwcgi_?e=_cgiarge_&a=d&d=_cgiargd_&showppmd=_1_&showrawmd=_2_&showtext=_3_'>_4_</a></td>
38}
39
40
41_tableextra_ {
42
43
44<style type="text/css">
45<!--
46
47  table.metadata
48  \{
49    border-spacing: 0px
50  \}
51
52  tr.metadata
53  \{
54    text-align: left;
55    background-color: _mdtabtrbg_;
56  \}   
57
58  td.metadata
59  \{
60    background-color: _mdtabtdbg_;
61    border-top:  2pt solid white;
62    padding: 2pt;
63  \}
64
65  th.metadata
66  \{
67    border-top:  2pt solid white;
68    padding: 2pt;
69  \}
70 
71  a.mdtablink:active  \{ color: \#dfb060; text-decoration: none; \}
72  a.mdtablink:visited \{ color: \#dfb060; text-decoration: none; \}
73  a.mdtablink:link    \{ color: \#dfb060; text-decoration: none; \}
74  a.mdtablink:hover   \{ color: \#9f7030; text-decoration: none; \}
75
76-->
77</style>
78
79
80
81
82}
83
84package Style
85
86_pagebannerextra_ {
87<!--  <a href="_httpcollection_/berry/berry.html",
88   onClick='javascript:window.open("_httpcollection_/berry/berry.html","berry","width=400,height=800,toolbar=no")'
89   target="berry">Launch Berry Basket</a> -->
90}
91
92_pagescriptextra_ {
93
94
95
96
97function openWindow(url) \{
98
99  window.open(url,"berry","width=400,height=300,toolbar=no");
100
101\}
102
103var parenttbody = new Array();
104var tbody       = new Array();
105var aftertbody  = new Array();
106
107
108function showTBodyArea(category) \{
109    parenttbody[category].insertBefore(tbody[category],aftertbody[category]);
110        //document[category+"openclose"].src="_httpopenmdicon_";
111
112        var imgname  = category+"openclose";
113        var linkname = category+"opencloselink";
114
115    var imgel = document.getElementById(imgname);
116    imgel.setAttribute("src","_httpopenmdicon_");
117
118    var linkel = document.getElementById(linkname);
119    linkel.setAttribute("href","javascript:hideTBodyArea('"+category+"')");
120
121        //document.links[category+"opencloselink"].href
122    //  ="javascript:hideTBodyArea('"+category+"')";
123\}
124
125function hideTBodyArea(category) \{
126
127        tbody[category] = document.getElementById(category);
128        parenttbody[category] = tbody[category].parentNode;
129        aftertbody[category] = tbody[category].nextSibling;
130        parenttbody[category].removeChild(tbody[category]);
131
132        var imgname  = category+"openclose";
133        var linkname = category+"opencloselink";
134
135    // alert("document link lookup 3 = " + document.links[linkname]);
136
137    var imgel = document.getElementById(imgname);
138    imgel.setAttribute("src","_httpclosemdicon_");
139
140        // document[category+"openclose"].src="_httpclosemdicon_";
141
142    var linkel = document.getElementById(linkname);
143    linkel.setAttribute("href","javascript:showTBodyArea('"+category+"')");
144
145        //document.links[category+"opencloselink"].href
146    //  ="javascript:showTBodyArea('"+category+"')";
147\}
148
149}
Note: See TracBrowser for help on using the browser.