wrote on 04 mei 2006 in comp.lang.javascript
:
Hi,
I've in my web pages an affectation to this property but it's doesn't
work (same for all the others properties I'm trying to update):
Works fine here. But pleace specify what "doesn't work" means.
Give error texts and what you want it to do.
However:
here is the complete function I call on mouseover :
<script language="javascript">
<script type='text/javascript'> "language" is deprecated
function highLigth (x) {
highLight is English
x.style.borderWidth = '5px';
x.style.borderStyle = 'dotted';
Do not specify constant styles here, but use a css declaration
x.style.backgroundColor ='red';
x.style.borderTop = '5px solid #BCC3F8';
x.style.borderBottom = '5px solid #BCC3F8';
}
function highLigthOut (x) {
x.style.backgroundColor = 'white';
}
</script>
and the result on my webpage :
http://avant-garde.no-ip.biz/cgi-bin...dz.cgi?lang=FR (slow dev
server)
Try this file:
=======================
<script type='text/javascript'>
function highLightOver(x) {
x.style.borderStyle = 'dotted';
x.style.borderColor ='red';
}
function highLightOut(x) {
x.style.borderStyle = 'dashed';
x.style.borderColor ='green';
}
</script>
<div
onmouseover='highLightOver(this)'
onmouseout='highLightOut(this)'
style='border-width:5px;width:300px;'>
xxxxxxxxxxxxxxxxxxxxx
</div>
=======================
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)