PHP and javascript
Posted: Mon Jun 17, 2002 4:08 pm
I am trying to hide a URL onMouseOver within PHP. I keep getting runtime errors. I have tried many things, but nothing works. All I want to do is hide my URL on mouseovers. The information is stored in a MySQL database.
Here's what it looks like
----the javascript-----
<script language="JavaScript">
function displayStatusMsg(msgStr) {
status=msgStr;
document.returnValue = true;
}
</script>
-----the variable------
$msgs=$row["name"];
-----the echo statement-----
echo "<a href='$link' onMouseOver='displayStatusMsg($msgs)';return document.returnValue>"."Click Here"."</a>";
Here's what it looks like
----the javascript-----
<script language="JavaScript">
function displayStatusMsg(msgStr) {
status=msgStr;
document.returnValue = true;
}
</script>
-----the variable------
$msgs=$row["name"];
-----the echo statement-----
echo "<a href='$link' onMouseOver='displayStatusMsg($msgs)';return document.returnValue>"."Click Here"."</a>";