Hello,
Can you someone please give me an example of how you can change the text-decoration of an href when you mouseover a separate image?
Ex: When you mouseover img "a", the text in link "b" gets a text-decoration of "underline"
thxIf the image and the link are next to eachother in the code you should be able to just wrap them in the same <a> tag, but if not you would probably have to use JavaScript.Here's how with JavaScript:
<a href=http://www.webdeveloper.com/forum/archive/index.php/"blah.html" title="Blah" id="linky">This is a link</a>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"blahblah.html" title="Blah Blah"><img src="foo.gif" alt="Foo" onmouseover="document.getelementbyid('linky').style.textdecoration='underline';" /></a>I tried the getelementbyid and get the following error message:
"Object doesn't support this property or method"
Can you someone please give me an example of how you can change the text-decoration of an href when you mouseover a separate image?
Ex: When you mouseover img "a", the text in link "b" gets a text-decoration of "underline"
thxIf the image and the link are next to eachother in the code you should be able to just wrap them in the same <a> tag, but if not you would probably have to use JavaScript.Here's how with JavaScript:
<a href=http://www.webdeveloper.com/forum/archive/index.php/"blah.html" title="Blah" id="linky">This is a link</a>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"blahblah.html" title="Blah Blah"><img src="foo.gif" alt="Foo" onmouseover="document.getelementbyid('linky').style.textdecoration='underline';" /></a>I tried the getelementbyid and get the following error message:
"Object doesn't support this property or method"