one thing you should use to debug this is netscape!
type in
javascript:
in the url field
gets you the javascript debugger
it should tell you what the error is
in a much clearer way than ie and/or visualdev would
one thing:
you dont need the
javascript:
if the javascript function is in the html file {or perl output}
aka
onmouseover=pop('Avaerage lenght of game played','#CCCCCC')
also you might notice the semi colon after your dbl quote
thats not right and since your only using one
function , in javascript you dont need that semi colon
here is your code reworked and running:
<html>
<head>
<script>
function kill()
{
alert('kill');
}
function pop (text, color)
{
alert (text +" "+ color);
}
</script>
</head>
<body>
<a href="js.html" ONMOUSEOVER="pop('Avaerage lenght of game played','#
+CCCCCC')" ONMOUSEOUT="kill()">AVERAGE</a>
</body>
</html>
always try to build a flat file to test javascripts
before inserting them into perl code
hope that helps
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
|
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.