in reply to Re: CGI combining javascript
in thread CGI combining javascript
This implementation does not work, but i am going to guess its wrong the way i have coded. Thanksuse CGI qw(:standard); print header(); #$JSCRIPT=<<END; print <<EOF; <script> function add_handlers { 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', ''); } } } </script> EOF print start_html( -title=>'KEGG Connection', -style=>{-src=>'style.css'}, ); print "<body onload=\"add_handlers();\">"; do the perl stuff and print table.
|
|---|