sglane
02-05-2003, 06:03 PM
I realize this is not related to PHP, but how do you change a style applied to a html element with javascript? I know there has to be a way to do, but I just can't find the DOM for it. Thanks in advance.
|
Click to See Complete Forum and Search --> : Javascript and CSS sglane 02-05-2003, 06:03 PM I realize this is not related to PHP, but how do you change a style applied to a html element with javascript? I know there has to be a way to do, but I just can't find the DOM for it. Thanks in advance. elfyn 02-09-2003, 08:21 AM Just Google ;-) What you need (http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=change+style+element+in+javascript) danielson2k 02-09-2003, 08:37 AM document.getElementById('elementname').style = "<styles go here>"; you could always use PHP to grab the style from the CSS file and put it in the <styles go here> bit if you dont want to re-write the whole lot... sglane 02-09-2003, 01:43 PM I feel so dumb. Thanks for the info, I really appreciate it. PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved. |