473,406 Members | 2,549 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Style Not being applied in HTML event

I have the following definition for a Table cell:

<TD class="clsMenuItem"
onmouseover="this.classname='clsMenuOver'"
onmouseout="this.classname='clsMenuItem'">WHATEVER </TD>
The class(Style) is being applied when I run the page but
the mouseover event is not being triggered because the
style is not being applied. Am I doing something wrong
here. I want the Table Cell to change color as I move my
mouse over it.

Thanks...
Nov 18 '05 #1
1 1090
Hi Angel,

make sure that any below tags are specified in head section

<STYLE TYPE="text/css">
P {font-size: 24pt;}
.redText {color: red;}
.blueText {color: blue;}
.italicText {font-style: italic;}
</STYLE>
<LINK href="../styles/Styles.css" type="text/css"
rel="stylesheet">

And also try changing this statement
this.classname='clsMenuOver' to
this.className='clsMenuOver' because javascript may be
case sensitive.

Best Of Luck
Raja Balaji R
-----Original Message-----
I have the following definition for a Table cell:

<TD class="clsMenuItem"
onmouseover="this.classname='clsMenuOver'"
onmouseout="this.classname='clsMenuItem'">WHATEVE R</TD>
The class(Style) is being applied when I run the page but
the mouseover event is not being triggered because the
style is not being applied. Am I doing something wrong
here. I want the Table Cell to change color as I move my
mouse over it.

Thanks...
.

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: philjhanna | last post by:
Hi, In the example code below can anyone tell me why the first link alerts an empty string but the second alerts the width? The only difference is the way the left: 20px; is applied but I...
9
by: Chandy | last post by:
Hi, Is there any way to apply a style that will effectively block the application of any applied or inherited styles for that object and any contained objects? E.g., CSS: P {backgro...}
1
by: blue | last post by:
My app draws a bunch of tables on the page and has a form for the user to enter data and submit. The form is contained within a User Control called DecisionCtl. When they submit the form, a bunch...
1
by: r_mun | last post by:
Hello, I think it would be an interesting issue to everyone. What I'd like to do is simply change the style of my dynamically created table cell. I have written the following code to...
8
by: Amit | last post by:
I have a master page and a content page but the stylesheet isnt getting applied like how it looks in visual studio design view. The master page is defined like this: <%@ Master Language="VB"...
1
by: abaybas | last post by:
I'm creating a page in which a certain "content" part of the page is refreshed using ajax. I do this by using a div#content, and it's child div#container. the code: ... ...
2
nirmalsingh
by: nirmalsingh | last post by:
hai all, i am using asp.net, on first time loading of a page the style is correctly applied for the div but on postback only font style is not applied. i dont know y? <div...
5
by: Nathan Sokalski | last post by:
I have css that would normally be placed in style tags in the header of the Master page that I want to add programmatically for a specific Web Content Form (the *.aspx page). How do I do this for a...
6
by: TidalWave | last post by:
I have a horizontal navigation. When you click a navigation link that has a child menu, this menu pops out to the side and the parent link gets a background-color applied to it. If the navigation...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.