source: other-projects/trunk/protemix/macros/style.dm@ 14162

Last change on this file since 14162 was 3186, checked in by sjboddie, 22 years ago

* empty log message *

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 5.4 KB
Line 
1#######################################################################
2# PAGE STYLES
3#######################################################################
4
5package Style
6
7_pagetitle_ {_collectionname_}
8_pagescriptextra_ {
9function initialize () \{ \}
10}
11_pagebannerextra_ {}
12_pagefooterextra_ {}
13
14_header_ {
15<html>
16<head>
17<script language="JavaScript">
18<!--
19function MM_findObj(n, d) \{
20 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) \{
21 d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);\}
22 if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
23 for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
24\}
25function MM_nbGroup(event, grpName) \{
26 var i,img,nbArr,args=MM_nbGroup.arguments;
27 if (event == "init" && args.length > 2) \{
28 if ((img = MM_findObj(args[2])) != null && !img.MM_init) \{
29 img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
30 if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
31 nbArr[nbArr.length] = img;
32 for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) \{
33 if (!img.MM_up) img.MM_up = img.src;
34 img.src = img.MM_dn = args[i+1];
35 nbArr[nbArr.length] = img;
36 \} \}
37 \} else if (event == "over") \{
38 document.MM_nbOver = nbArr = new Array();
39 for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) \{
40 if (!img.MM_up) img.MM_up = img.src;
41 img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
42 nbArr[nbArr.length] = img;
43 \}
44 \} else if (event == "out" ) \{
45 for (i=0; i < document.MM_nbOver.length; i++) \{
46 img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; \}
47 \} else if (event == "down") \{
48 if ((nbArr = document[grpName]) != null)
49 for (i=0; i < nbArr.length; i++) \{ img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; \}
50 document[grpName] = nbArr = new Array();
51 for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) \{
52 if (!img.MM_up) img.MM_up = img.src;
53 img.src = img.MM_dn = args[i+1];
54 nbArr[nbArr.length] = img;
55 \} \}
56\}
57function MM_preloadImages() \{
58 var d=document; if(d.images)\{ if(!d.MM_p) d.MM_p=new Array();
59 var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
60 if (a[i].indexOf("#")!=0)\{ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];\} \}
61\}
62_pagescriptextra_
63// -->
64</SCRIPT>
65</head>
66<body marginwidth=0 topmargin=0 background="_httpiconchalk_"
67link="#0000ee" text="#000000"
68onload="MM_preloadImages('_httpcollection_/images/searchon.gif','_httpcollection_/images/titleon.gif'); initialize();"
69vlink="#551a8b" alink="#ff0000" bgcolor="#ffffff" leftmargin=0 marginheight=0>
70
71<table border="0" cellpadding="0" cellspacing="0" width="638" align="center">
72<tr valign="top">
73<td><img src="_httpcollection_/images/shim.gif" width="638" height="29" border="0"></td>
74</tr>
75<tr valign="top">
76<td><table border="0" cellpadding="0" cellspacing="0" width="638">
77
78<tr valign="top">
79<td><img src="_httpcollection_/images/shim.gif" width="384" height="34" border="0"></td>
80<td><img name="protemixlogo" src="_httpcollection_/images/protemixlogo.gif" width="254" height="34" border="0" alt="protemix logo"></td>
81</tr>
82</table></td>
83</tr>
84<tr valign="top">
85<td><img name="bluedots" src="_httpcollection_/images/bluedots.gif" width="638" height="7" border="0"></td>
86</tr>
87
88<tr valign="top">
89<td><center><table border="0" cellpadding="0" cellspacing="0" width="100%">
90<tr valign="top">
91
92<td align="center" width="25%">
93<a href="_httpquery_"
94onMouseOut="MM_nbGroup('out');"
95onMouseOver="MM_nbGroup('over','search','_httpcollection_/images/searchon.gif','_httpcollection_/images/searchon.gif',1);"
96onClick="MM_nbGroup('down','navbar1','search','_httpcollection_/images/searchon.gif',1);"><img
97name="search" src="_httpcollection_/images/searchoff.gif" width="52" height="11" border="0" alt="search"></a>
98</td>
99
100<td align="center" width="25%">
101<a href="_httpdocument_&cl=CL1"
102onMouseOut="MM_nbGroup('out');"
103onMouseOver="MM_nbGroup('over','titles','_httpcollection_/images/titleon.gif','_httpcollection_/images/titleon.gif',1);"
104onClick="MM_nbGroup('down','navbar1','titles','_httpcollection_/images/titleon.gif',1);"><img
105name="titles" src="_httpcollection_/images/titleoff.gif" width="52" height="11" border="0" alt="alphabetical title listing"></a>
106</td>
107
108<td align="center" width="25%">
109<a href="_httpdocument_&cl=CL2"
110onMouseOut="MM_nbGroup('out');"
111onMouseOver="MM_nbGroup('over','phrases','_httpcollection_/images/phraseon.gif','_httpcollection_/images/phraseon.gif',1);"
112onClick="MM_nbGroup('down','navbar1','phrases','_httpcollection_/images/phraseon.gif',1);"><img
113name="phrases" src="_httpcollection_/images/phraseoff.gif" width="52" height="11" border="0" alt="phrase browser"></a>
114</td>
115
116<td align="center" width="25%">
117<a href="_httppagesubdocs_"
118onMouseOut="MM_nbGroup('out');"
119onMouseOver="MM_nbGroup('over','subdocs','_httpcollection_/images/sdocson.gif','_httpcollection_/images/sdocson.gif',1);"
120onClick="MM_nbGroup('down','navbar1','subdocs','_httpcollection_/images/sdocson.gif',1);"><img
121name="subdocs" src="_httpcollection_/images/sdocsoff.gif" width="110" height="11" border="0" alt="view submission documents"></a>
122</td>
123
124</tr>
125</table></center></td>
126</tr>
127</table>
128<center>
129<table border="0" cellpadding="0" cellspacing="0" width="638"><tr><td>
130}
131
132_footer_ {
133_pagefooterextra_
134</td></tr></table>
135</body>
136</html>
137}
Note: See TracBrowser for help on using the repository browser.