473,410 Members | 1,914 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,410 software developers and data experts.

Treenode color from anchor style

If you see this posted twice - sorry.
My news reader showed my first post as "No Longer Available"
I have the following in a .css file.

The treeNodes behave as if they were "a" elements.

I can't get them to not respond to the mouse!

The treenodes are in a content file and the link is in the master file.

If I change the color of a:hover it effects the treenodes so I know this is
actually what is controlling them.

Can you tell me why?

Thanks

TreeNode:link

{

color:Red;

}

TreeNode:visited {

color: Red;

}

TreeNode:hover {

color: Red;

}

TreeNode:active {

color: Red;

}


a:link {color:Red;

}

a:visited {

color: #C19B28;

}

a:hover {

text-decoration: underline;

color: #E6CD84;

}

a:active {

color: #C19B28;

}


Aug 7 '08 #1
1 3254
On someone else's computer I saw my other post an done reply, which said the
nodes were "a" elements.
Below is the code except that Ive removed most of the text. These nodes
change color as the mouse hovers, etc.
<asp:TreeView ID="TreeView1" runat="server" NodeIndent="40" ShowLines="True"

ShowCheckBoxes="All" ShowExpandCollapse="False"

NodeStyle-ForeColor="Yellow" HoverNodeStyle-ForeColor="Yellow"

LeafNodeStyle-ForeColor="Yellow" ParentNodeStyle-ForeColor="Yellow"
RootNodeStyle-ForeColor="Yellow"

SelectedNodeStyle-ForeColor="Yellow">
<Nodes>

<asp:TreeNode Text="Rome???" >

<asp:TreeNode Text="Antioch " >

<asp:TreeNode Text="Brooklyn" >

<asp:TreeNode Text="Utica" ></asp:TreeNode>

<asp:TreeNode Text=" parishs..." ></asp:TreeNode>

</asp:TreeNode>

<asp:TreeNode Text=" Los Angeles" >

<asp:TreeNode Text="parishs..." ></asp:TreeNode>

</asp:TreeNode>

<asp:TreeNode Text=" dioceses..." >

<asp:TreeNode Text=" parishs..." ></asp:TreeNode>

</asp:TreeNode>

</asp:TreeNode>

<asp:TreeNode Text=" New York " >

<asp:TreeNode Text="Syracuse" >

<asp:TreeNode Text=" the" ></asp:TreeNode>

<asp:TreeNode Text="parishs..." ></asp:TreeNode>

</asp:TreeNode>

<asp:TreeNode Text="dioceses..." >

<asp:TreeNode Text=" parishs..." ></asp:TreeNode>

</asp:TreeNode>

</asp:TreeNode>

<asp:TreeNode Text="churches" >

<asp:TreeNode Text="Their parishs..." ></asp:TreeNode>

</asp:TreeNode>

</asp:TreeNode>

</Nodes>

</asp:TreeView>

"AAaron123" <aa*******@roadrunner.comwrote in message
news:uD****************@TK2MSFTNGP04.phx.gbl...
If you see this posted twice - sorry.
My news reader showed my first post as "No Longer Available"
I have the following in a .css file.

The treeNodes behave as if they were "a" elements.

I can't get them to not respond to the mouse!

The treenodes are in a content file and the link is in the master file.

If I change the color of a:hover it effects the treenodes so I know this
is
actually what is controlling them.

Can you tell me why?

Thanks

TreeNode:link

{

color:Red;

}

TreeNode:visited {

color: Red;

}

TreeNode:hover {

color: Red;

}

TreeNode:active {

color: Red;

}


a:link {color:Red;

}

a:visited {

color: #C19B28;

}

a:hover {

text-decoration: underline;

color: #E6CD84;

}

a:active {

color: #C19B28;

}


Aug 10 '08 #2

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

Similar topics

8
by: Chuck | last post by:
given that the img border >0, how is a border color specified? Chuck
15
by: phillip.s.powell | last post by:
<style> div div table tr td a.navbar, div div table tr td font {display: none;} </style> <div class="navigationbar" style="background-color:Black; position: absolute; left:50%; top:127px;...
4
by: Turban | last post by:
When I attempt to run the following code: protected void NavigationTreeView_TreeNodePopulate(object sender, TreeNodeEventArgs e) { TreeNode tn1 = new TreeNode("node1","node1"); TreeNode tn2 =...
8
by: Chad | last post by:
Should links automatically appear in the "visited" color as defined by the user's IE settings without having to add any special coding? I have a situation where the link was not changing color...
0
by: divya1949 | last post by:
Create a windows c# application which will Read a xml file and populate nodes in the treeview. 1 On selection of treenode display the child nodes of that node in listview control 2. ...
11
by: nma | last post by:
Hi How can I make the anchor link once I do onclick? <td width="<?php echo ($cellwidth); ?>" height="17" bgcolor="#00ff00" onMouseOver="this.style.background ='red'" ...
6
by: shapper | last post by:
Hello, On a bottom of a form I have 2 buttons: Submit and Cancel. Submit is an input and submits the form. Cancel should just redirect the user to a new page without submitting the form. I...
1
by: AAaron123 | last post by:
I have the following in a .css file. The treeNodes behave as if they were "a" elements. I can't get them to not respond to the mouse! The treenodes are in a content file and the link is in...
5
by: Kalpana Durairaj | last post by:
I want to insert my image within search result anchor(say google search results). <a href="http://www.codeproject.com">Code Project <!-- Google search result link--> <img src="myimage.png"...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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.