source: trunk/protemix/macros/style.dm@ 3177

Last change on this file since 3177 was 3177, checked in by sjboddie, 20 years ago

* empty log message *

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 5.3 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><table border="0" cellpadding="0" cellspacing="0" width="638">
90<tr valign="top">
91
92<td><img name="greydot1" src="_httpcollection_/images/greydot1.gif" width="26" height="11" border="0"></td>
93
94<td>
95<a href="_httpquery_"
96onMouseOut="MM_nbGroup('out');"
97onMouseOver="MM_nbGroup('over','search','_httpcollection_/images/searchon.gif','_httpcollection_/images/searchon.gif',1);"
98onClick="MM_nbGroup('down','navbar1','search','_httpcollection_/images/searchon.gif',1);"><img
99name="search" src="_httpcollection_/images/searchoff.gif" width="52" height="11" border="0" alt="search"></a>
100</td>
101
102<td><img name="greydot2" src="_httpcollection_/images/greydot2.gif" width="96" height="11" border="0"></td>
103
104<td>
105<a href="_httpdocument_&cl=CL1"
106onMouseOut="MM_nbGroup('out');"
107onMouseOver="MM_nbGroup('over','titles','_httpcollection_/images/titleon.gif','_httpcollection_/images/titleon.gif',1);"
108onClick="MM_nbGroup('down','navbar1','titles','_httpcollection_/images/titleon.gif',1);"><img
109name="titles" src="_httpcollection_/images/titleoff.gif" width="52" height="11" border="0" alt="alphabetical title listing"></a>
110</td>
111
112<td><img name="greydot4" src="_httpcollection_/images/greydot2.gif" width="96" height="11" border="0"></td>
113
114<td>
115<a href="_httpdocument_&cl=CL2"
116onMouseOut="MM_nbGroup('out');"
117onMouseOver="MM_nbGroup('over','phrases','_httpcollection_/images/phraseon.gif','_httpcollection_/images/phrase.gif',1);"
118onClick="MM_nbGroup('down','navbar1','phrases','_httpcollection_/images/phraseon.gif',1);"><img
119name="phrases" src="_httpcollection_/images/phraseoff.gif" width="52" height="11" border="0" alt="phrase browser"></a>
120</td>
121
122<td><img name="greydot5" src="_httpcollection_/images/greydot5.gif" width="25" height="11" border="0"></td>
123
124</tr>
125</table></td>
126</tr>
127</table>
128<div style="margin-left:10; margin-right:10; margin-bottom:10">
129}
130
131_footer_ {
132_pagefooterextra_
133</div>
134</body>
135</html>
136}
Note: See TracBrowser for help on using the repository browser.