|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Onmouseover change background image of textarea
heres what i've done so far
Code:
<textarea name="reply" cols="118" rows="15" wrap="hard" id="reply" style="color:white; background-image:url($image); border-color:#FBB917" readonly="readonly"> how do i do the function? the hyperlink for the image is $image, which i get from a while loop, how do i display image as textarea background via function? Code:
onmouseover=\"ChgText($number)\
<script type='text/javascript'>
function ChgText(number){
}
</script>
|
|
#2
|
|||
|
|||
|
i tried this but the background of the textarea turns white and not to image..
Code:
<script language="javascript" type="text/javascript">
function ChgText(number)
{
var newtext = document.getElementById(number).innerHTML
document.getElementById('reply').style.backgroundI mage = "url(newtext)";
}
</script>
var newtext = document.getElementById(number).innerHTML this is the hyperlink of the image 'reply' is the value of the textarea.. i want the background image to change to 'newtext' how do i do that? Last edited by Dizzle : September 20th, 2009 at 08:58 PM. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Onmouseover change background image of textarea |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|