Forum Moderators: open
Basically i have a script set up to hide (hopefully) an email from bots.
<!-- start JavaScript to hide email address from spambots and display "Site Feedback" for webmaster. -->
<script language="JavaScript" type="text/javascript">
var web = "webmaster";
var url = "example.com";
var subject = "?subject=Site Feedback";
function site_feedback() {
document.write("<A HREF=\"mailto");
document.write(":" + web + "@");
document.write(url + subject + "\">" + "Site Feedback" + "<\/a>");
}
</script>
I want to add a onmouseover window.status command but I can't get it in there without there either being errors or it just adding "onmouseover=" to the subject line.
Basically I just want to add onMouseover="window.status='Site Feedback!'; return true"
onMouseout="window.status=' '; return true">
Any help would be great.
[edited by: Woz at 10:24 am (utc) on June 12, 2004]
[edit reason] examplified [/edit]
function site_feedback() {
document.write("<A HREF='mailto:" + web + "@");
document.write(url + subject + "' onmouseover=\"window.status='Site Feedback!'; return true\" onmouseout=\"window.status=' '; return true\">" + "Site Feedback" + "<\/a>"); }