Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
In theory javascript should go here??use CGI qw(:standard); print header(); print start_html( -title=>'KEGG Connection', -style=>{-src=>'style.css'}, -script=>{-language=>'JavaScript', -src=>'row.js'} # +##this does not work ); perl code to get data print <<EOF; <table> <tr><th>KEGG Entry</th><th>KEGG Glycan Composition</th></tr> EOF more perl print <<EOF; <tr><td><a href="http://">$1</a></td><td>$2</td></tr> EOF
Any suggestions please? I havent included the css file, simply because this works in html file? hilite corresponds to the css entry. Thanksprint '<script language="javascript">'; var rows = document.getElementsByTagName('tr'); for (var i = 0; i < rows.length; i++) { rows[i].onmouseover = function() { this.className += 'hilite'; } rows[i].onmouseout = function() { this.className = this.className.replace('hilite', ''); } } print "</script>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI combining javascript
by jeffa (Bishop) on Nov 17, 2005 at 15:19 UTC | |
by Anonymous Monk on Nov 17, 2005 at 15:23 UTC | |
|
Re: CGI combining javascript
by ikegami (Patriarch) on Nov 17, 2005 at 15:16 UTC | |
by Anonymous Monk on Nov 17, 2005 at 15:36 UTC | |
|
Re: CGI combining javascript
by ickyb0d (Monk) on Nov 17, 2005 at 15:28 UTC | |
|
Re: CGI combining javascript
by radiantmatrix (Parson) on Nov 17, 2005 at 18:03 UTC | |
|
Re: CGI combining javascript
by kulls (Hermit) on Nov 18, 2005 at 07:44 UTC |