Jump to content

help with onmouse


MDanz

Recommended Posts

echo "<div style='display:none;' name='advertisement'>$image
              </div>"; 

<a href='$adz' style='text-decoration: none'; onmouseover=\"GetNames($id)\">$usern</a>


<script type="text/javascript">

function GetNames(id)

{
var newtext2 = document.getElementByName("advertisement").innerHTML;

document.getElementById('adver').style.backgroundImage = "url("+newtext2+")";
}

</script>

 

<textarea name="adver" id="adver" cols="16" rows="13"  readonly="readonly" ></textarea>

 

the $image should appear in the text area, where did i go wrong in my code?

Link to comment
https://forums.phpfreaks.com/topic/181944-help-with-onmouse/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.