Answer
Mar 08, 2007 - 06:22 AM
alia,
I'm not sure if you can do this in the "WYSIWYG" side of dreamweaver, but I know you can do this if you edit the HTML source directly.
In order to do this, you'll have to make sure of a few things:
1) The that you're trying to change has a unique ID assigned to it:
2) You will need to add an "onClick" event to the tag:
3) You will need to create the javascript function where you will style the background color:
function doFunction(elem)
{
document.getElementById(elem).style.bgColor = #FF0000;
}
That should give you a good starting point, and hopefully enough information to extend it to fully suit your specific needs.
Take care,
Ric
Answer this question
Please wait...
I'm not sure if you can do this in the "WYSIWYG" side of dreamweaver, but I know you can do this if you edit the HTML source directly.
In order to do this, you'll have to make sure of a few things:
1) The
2) You will need to add an "onClick" event to the tag:
3) You will need to create the javascript function where you will style the
function doFunction(elem)
{
document.getElementById(elem).style.bgColor = #FF0000;
}
That should give you a good starting point, and hopefully enough information to extend it to fully suit your specific needs.
Take care,
Ric
Answer this question
Share Your Own Experience & Expertise
We look to ensure that every question is answered by the best people with relevant expertise and experience, the best answers include multiple perspectives. Do you have relevant expertise or experience to contribute your answer to any of these commonly asked questions?
About Quomon
Quomon is a network of IT professionals from around the world, collaborating by sharing knowledgeable answers in their specific field of expertise.
Please wait...
Add New Comment