Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onmouseover effect

Status
Not open for further replies.
Your error, according to Firefox's JavaScript Console, is

[tt]Error: setting a property that has only a getter
Source File: Line: 11[/tt]

Instead of .style, use specific style definitions (and avoid implied references):

Code:
var f = document.getElementById('form1');
f.borderLeft = '1px dashed #666666';
f.borderRight = '1px dashed #666666';

and remember to give your form an ID.



*cLFlaVA
----------------------------
[tt]( <P> <B>)13 * (<P> <.</B>)[/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
sorry, should be:

Code:
var f = document.getElementById('form1');
f.[b]style.[/b]borderLeft = '1px dashed #666666';
f.[b]style.[/b]borderRight = '1px dashed #666666';



*cLFlaVA
----------------------------
[tt]( <P> <B>)13 * (<P> <.</B>)[/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top