HighDots Forums  

TD bgcolor on mouseOver

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss TD bgcolor on mouseOver in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Cuprik
 
Posts: n/a

Default TD bgcolor on mouseOver - 05-15-2004 , 02:06 PM






Is it possible to change the bgcolor of a TD/mouseOver? And if possible,
what's the code. I've tried a few things but no good so far.

Thx



Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: TD bgcolor on mouseOver - 05-15-2004 , 02:43 PM






Show me what you have done that has not worked, please.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Cuprik" <webforumuser (AT) macromedia (DOT) com> wrote

Quote:
Is it possible to change the bgcolor of a TD/mouseOver? And if possible,
what's the code. I've tried a few things but no good so far.

Thx





Reply With Quote
  #3  
Old   
Cuprik
 
Posts: n/a

Default Re: TD bgcolor on mouseOver - 05-15-2004 , 02:55 PM



Sorry - my message was way too cryptic:

I want to do something like the following using CSS on a TD mouseOver:
Essentially, the best way to change the bgcolor of a TD pulldown menu item
on rollover.

td:hover{
background-color: #FFFFFF
}

OR
a.navlink:hover {
td.background-color: #FFFFFF;
}

(assuming that the TD contains a A HREF statement)
Thx again


"Murray *TMM*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote

Quote:
Show me what you have done that has not worked, please.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Cuprik" <webforumuser (AT) macromedia (DOT) com> wrote in message
news:c85m6o$s02$1 (AT) forums (DOT) macromedia.com...
Is it possible to change the bgcolor of a TD/mouseOver? And if possible,
what's the code. I've tried a few things but no good so far.

Thx







Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: TD bgcolor on mouseOver - 05-15-2004 , 02:56 PM



Let the background color come from the <a> tag by defining a width and
height that will fill the cell -

..navlink a {
width:175px; height:23px;
}
..navlink a:hover {
background-color: #FFFFFF;
}
.....

<td class="navlink"><a href="foo.html">Colored?</a></td>


--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Cuprik" <webforumuser (AT) macromedia (DOT) com> wrote

Quote:
Sorry - my message was way too cryptic:

I want to do something like the following using CSS on a TD mouseOver:
Essentially, the best way to change the bgcolor of a TD pulldown menu item
on rollover.

td:hover{
background-color: #FFFFFF
}

OR
a.navlink:hover {
td.background-color: #FFFFFF;
}

(assuming that the TD contains a A HREF statement)
Thx again


"Murray *TMM*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote in message
news:c85ogb$uu$1 (AT) forums (DOT) macromedia.com...
Show me what you have done that has not worked, please.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO
GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Cuprik" <webforumuser (AT) macromedia (DOT) com> wrote in message
news:c85m6o$s02$1 (AT) forums (DOT) macromedia.com...
Is it possible to change the bgcolor of a TD/mouseOver? And if
possible,
what's the code. I've tried a few things but no good so far.

Thx









Reply With Quote
  #5  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: TD bgcolor on mouseOver - 05-15-2004 , 02:56 PM



Mine is better! 8)

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Dan Vendel *GOF*" <see_my_signature_ (AT) _the_bottom_of_the_post (DOT) org> wrote in
message news:c85p81$r0$3 (AT) forums (DOT) macromedia.com...
Quote:
Cuprik wrote:

Is it possible to change the bgcolor of a TD/mouseOver? And if possible,
what's the code. I've tried a few things but no good so far.

Thx



Add a CSS style to the cell, either in a remote stylesheet or in the
head section of the page, or put this in the cell tag:

td onMouseOver="this.style.backgroundColor='#CC0000'"
onMouseOut="this.style.backgroundColor='#000000'"

--
Dan Vendel - *GOF*
Contact me directly at http://contact.vendel.info
Formmail tutorial at http://www.vendel.info/tut/formmail.html
Nested table demonstration at http://www.vendel.info/tabletut/
Search Engine Optimization & Rank Control Utility at
http://awr.vendel.info
Search Dreamweaver newsgroup at http://www.vendel.info/google.html



Reply With Quote
  #6  
Old   
Dan Vendel *GOF*
 
Posts: n/a

Default Re: TD bgcolor on mouseOver - 05-15-2004 , 02:58 PM



Cuprik wrote:

Quote:
Is it possible to change the bgcolor of a TD/mouseOver? And if possible,
what's the code. I've tried a few things but no good so far.

Thx


Add a CSS style to the cell, either in a remote stylesheet or in the
head section of the page, or put this in the cell tag:

<td onMouseOver="this.style.backgroundColor='#CC0000'"
onMouseOut="this.style.backgroundColor='#000000'">

--
Dan Vendel - *GOF*
Contact me directly at http://contact.vendel.info
Formmail tutorial at http://www.vendel.info/tut/formmail.html
Nested table demonstration at http://www.vendel.info/tabletut/
Search Engine Optimization & Rank Control Utility at http://awr.vendel.info
Search Dreamweaver newsgroup at http://www.vendel.info/google.html


Reply With Quote
  #7  
Old   
Dan Vendel *GOF*
 
Posts: n/a

Default Re: TD bgcolor on mouseOver - 05-15-2004 , 03:03 PM



Murray *TMM* wrote:

Quote:
Mine is better! 8)

Bullocks (my new favvy word).
Who said anything about anchors?
OK, you win. I'm still exhausted after that "framed pages ranks
worse"-thing....

--
Dan Vendel - *GOF*
Contact me directly at http://contact.vendel.info
Formmail tutorial at http://www.vendel.info/tut/formmail.html
Nested table demonstration at http://www.vendel.info/tabletut/
Search Engine Optimization & Rank Control Utility at http://awr.vendel.info
Search Dreamweaver newsgroup at http://www.vendel.info/google.html


Reply With Quote
  #8  
Old   
ranjan
 
Posts: n/a

Default Re: TD bgcolor on mouseOver - 05-15-2004 , 06:45 PM



Murray *TMM* wrote:
Quote:
Let the background color come from the <a> tag by defining a width and
height that will fill the cell -
No it won't! Not unless you set "a" tag as a block element!


Reply With Quote
  #9  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: TD bgcolor on mouseOver - 05-15-2004 , 07:53 PM



Ranjan:

Perhaps, if you want vertical menus. But on a horizontal menu, it's not
necessary. And it might not even be necessary on a vertical one.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"ranjan" <ranjan (AT) NOSPAMdreamlettes (DOT) net> wrote

Quote:
Murray *TMM* wrote:
Let the background color come from the <a> tag by defining a width and
height that will fill the cell -

No it won't! Not unless you set "a" tag as a block element!



Reply With Quote
  #10  
Old   
ranjan
 
Posts: n/a

Default Re: TD bgcolor on mouseOver - 05-15-2004 , 11:16 PM



Murray *TMM* wrote:

Quote:
But on a horizontal menu, it's not necessary.
You can not control the width or height of an inline element

Hence

..navlink a {
width:175px; height:23px;
}

Will not work

Ranjan
www.dreamlettes.net



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.