Hi everybody,
I have javascript for changing tree node style enumerated in node-list. In document I put list of node-names for changing the style in the hidden field separated by ",". There is one problem:
I want to change style of current node, not of parent node. Could somebody help me? Here is the code:
<code>
// JScript File
ValuePaths = new Array();
ValuePaths_client = new Array();
arrayOf_a = new Array();

function ChangeCss()
{
var browser=navigator.appName;
var b_version=navigator.appVersion;

ValuePaths = document.getElementById("hddnFldValuePaths").value.split(",");
arrayOf_a = document.getElementsByTagName("a");

if(ValuePaths[0] != "")
{
for(q = 0; q < ValuePaths.length; q++)
{
ValuePaths_client[q] = "s" + ValuePaths[q].replace(/\./g, "\\\\");
// alert(ValuePaths_client[q]);
}
}

for(h = 0; h < ValuePaths_client.length; h++)
{
if(ValuePaths_client[h] != "s")
{
for(index = 0; index < arrayOf_a.length; index++)
{
if(arrayOf_a[index].href.indexOf(ValuePaths_client[h]) > -1)
{
arrayOf_a[index].parentNode.getElementsByTagName("input")[0].className = "outline";
}
}
}
}
ValuePaths = new Array();
ValuePaths_client = new Array();
}
</code>