ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/SeWeR/nav.htm
Revision: 1.1.1.1 (vendor branch)
Committed: Mon Aug 23 19:36:28 2004 UTC (15 years, 7 months ago) by malay
Branch: MAIN
CVS Tags: HEAD, HEAD
Changes since 1.1: +0 -0 lines
Log Message:
First import

Line File contents
1 <html>
2
3 <head>
4 <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
5 <meta name="author" content="Dr Malay K Basu">
6 <title>SeWeR: Top Navigation</title>
7 <script language="JavaScript" src="scripts/browser.js"></script>
8 <script language="JavaScript"><!--
9 function makeimage(source){
10
11 img=new Image();
12 img.src=source;
13 return img;
14 }
15
16 var home=makeimage("images/home.png");
17 var home_over=makeimage("images/home1.png");
18 var nucleic=makeimage("images/nucleic.png");
19 var nucleic_over=makeimage("images/nucleic1.png");
20 var protein=makeimage("images/protein.png");
21 var protein_over=makeimage("images/protein1.png");
22 var pcr=makeimage("images/pcr.png");
23 var pcr_over=makeimage("images/pcr1.png");
24 var tools=makeimage("images/tools.png");
25 var tools_over=makeimage("images/tools1.png");
26 var database=makeimage("images/database.png");
27 var database_over=makeimage("images/database1.png");
28 var align=makeimage("images/align.png");
29 var align_over=makeimage("images/align1.png");
30 var bookmark=makeimage("images/bookmarklet.png");
31 var bookmark_over=makeimage("images/bookmarklet1.png");
32 var custom=makeimage("images/custom.png");
33 var custom_over=makeimage("images/custom1.png");
34
35 function imageOff(name){
36 //alert(name)
37 document.images[name].src=eval(name).src;
38 }
39 function imageOn(name){
40 //alert(name)
41 document.images[name].src=eval(name+'_over').src;
42 }
43
44 function changepage(pagename){
45 //alert(parent.main.location)
46 //alert(pagename)
47 parent.frames[1].location=pagename;
48 }
49 /* Function to parse the database choice*/
50 function parse(){
51 data=document.form1.database.options[document.form1.database.selectedIndex].value
52 switch (data){
53 case "genbank":
54 url="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=search&db=nucleotide&doptcmdl=GenBank&term="
55 retrieve(url,data)
56 break
57 case "embl":
58 url="http://www.ebi.ac.uk/cgi-bin/emblfetch?"
59 retrieve(url,data)
60 break
61 case "Swiss-Prot":
62 url="http://www.expasy.ch/cgi-bin/get-sprot-raw.pl?"
63 retrieve(url,data)
64 break
65 }
66 }
67
68 /*function to retrieve the sequence and open it it in new window*/
69 function retrieve(add,data){
70 seq=document.form1.id.value;
71 url = add + seq;
72 if (data == "genbank"){
73 url += "[accn]";
74 }
75 urlwindow=window.open(url,"result","menubar,resizable,scrollbars,left=0,top=0,width=600,height=500");
76 }
77 // -->
78 </script>
79 </head>
80
81 <body bgcolor="white" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" alink="red" vlink="red" link="#cc0000">
82 <table width="100%" border="0" cellspacing="0" cellpadding="0">
83 <tr bgcolor="#cc0000" height="10">
84 <td colspan="3" height="10"><spacer type="block" width="1" height="10"><spacer type="block" width="32" height="10"></td>
85 </tr>
86 <tr>
87 <td rowspan="2" width="100" align="center" valign="middle"><img height="39" width="68" src="images/sewer_logo_small.png"></td>
88 <form name="form1">
89
90 <td align="center" valign="middle" bgcolor="#cccccc" nowrap class="size1"><input type="text" name="id" size="10" value="Accession"> <b>from</b> <select name="database" size="1">
91 <option value="genbank" selected>Genbank
92 <option value="embl">EMBL
93 <option value="Swiss-Prot">Swiss-Prot
94 </select> <input type="button" value="Go!" name="Go" onclick="parse()"></td>
95 </form>
96 <form method="POST" action="http://www.ncbi.nlm.nih.gov:80/entrez/query.fcgi" target="_blank">
97 <td align="center" valign="middle" bgcolor="#cccccc" class="size1" nowrap><input type="hidden" name="db" value="PubMed"><input name="orig_db" type="hidden" value="PubMed"><input type="hidden" name="form" value="1"><input type="hidden" name="field" value="All Fields"><input type="hidden" name="mode" value="Automatic"><input type="text" name="term" size="20" value="Pubmed Query"><input name="cmd" type="hidden" value="search"> <input type="submit" value="Go!"></td> </form>
98 </tr>
99 <tr>
100 <td colspan="2" bgcolor="black" align="left">
101 <table border="0" cellpadding="0" cellspacing="0" bgcolor="black">
102 <tr>
103
104 <td width="47" align="center"><a href="javascript:changepage('home.htm')" onmouseover="imageOn('home')" onmouseout="imageOff('home')">
105 <img name="home" height="10" width="27" border="0" src="images/home.png" alt="Go to home page"></a></td>
106
107 <td width="79" align="center"><a href="javascript:changepage('nucleicacid.htm')" onmouseover="imageOn('nucleic')" onmouseout="imageOff('nucleic')">
108 <img name="nucleic" height="11" width="59" border="0" src="images/nucleic.png" alt="Nucleic acid sequence analysis"></a></td>
109
110 <td width="55" align="center"><a href="javascript:changepage('protein.htm')" onmouseover="imageOn('protein')" onmouseout="imageOff('protein')">
111 <img name="protein" height="10" width="35" border="0" src="images/protein.png" alt="Protein sequence analysis"></a></td>
112
113 <td width="63" align="center"><a href="javascript:changepage('database.htm')" onmouseover="imageOn('database')" onmouseout="imageOff('database')">
114 <img name="database" height="11" width="43" border="0" src="images/database.png" alt="Database search"></a></td>
115
116 <td width="39" align="center"><a href="javascript:changepage('pcr.htm')" onmouseover="imageOn('pcr')" onmouseout="imageOff('pcr')">
117 <img name="pcr" height="10" width="19" border="0" src="images/pcr.png" alt="PCR and related analysis"></a></td>
118
119 <td width="75" align="center"><a href="javascript:changepage('align.htm')" onmouseover="imageOn('align')" onmouseout="imageOff('align')">
120 <img name="align" height="14" width="49" border="0" src="images/align.png" alt="Sequence alignment"></a></td>
121
122 <td width="44" align="center"><a href="javascript:changepage('tools.htm')" onmouseover="imageOn('tools')" onmouseout="imageOff('tools')">
123 <img name="tools" height="11" width="24" border="0" src="images/tools.png" alt="Tools for sequence analysis"></a></td>
124 <td width="85" align="center"><a href="javascript:changepage('bookmarklet.htm')" onmouseover="imageOn('bookmark')" onmouseout="imageOff('bookmark')">
125 <img name="bookmark" height="11" width="65" border="0" src="images/bookmarklet.png" alt="Bookmarklets"></a></td>
126 <td width="85" align="center"><a href="javascript:changepage('custom.htm')" onmouseover="imageOn('custom')" onmouseout="imageOff('custom')"><img name="custom" height="13" width="69" border="0" src="images/custom.png" alt="SeWeR Customization"></a></td>
127 </tr>
128 </table>
129 </td>
130 </tr>
131 <tr bgcolor="#cccccc">
132 <td colspan="3"><spacer type="block" height="1" width="1"></td>
133 </tr>
134 </table>
135 </body>
136
137 </html>