E
eggie5
I know how to edit my page using xpath selectors in firefox, it's just
like this (in the else if). However, I can't find any way to do it in
IE? I just want to find all links with the className=='leftNavPElement'
and then set them to 'leftNavBltItem', but I can't find how to do the
xpath stuff in IE. Can somebody please fill in the if statment ie code
for me?
if (window.ActiveXObject)
{
//how do I do the code below for IE???
}
// code for Mozilla, Firefox, Opera, etc.
else if (document.implementation &&
document.implementation.createDocument)
{
try
{
var layers =
document.evaluate('//a[@class="leftNavPElement"]', document, null,
XPathResult.ANY_TYPE, null );
var thisLayer = layers.iterateNext();
while (thisLayer) {
thisLayer.className="leftNavBltItem";
thisLayer = layers.iterateNext();
}
}
catch(exception)
{
//this try catch is required for the
leftnav to work for some reason....
}
}
else
{
alert('errors in breadcrums.js line: 104');
}
like this (in the else if). However, I can't find any way to do it in
IE? I just want to find all links with the className=='leftNavPElement'
and then set them to 'leftNavBltItem', but I can't find how to do the
xpath stuff in IE. Can somebody please fill in the if statment ie code
for me?
if (window.ActiveXObject)
{
//how do I do the code below for IE???
}
// code for Mozilla, Firefox, Opera, etc.
else if (document.implementation &&
document.implementation.createDocument)
{
try
{
var layers =
document.evaluate('//a[@class="leftNavPElement"]', document, null,
XPathResult.ANY_TYPE, null );
var thisLayer = layers.iterateNext();
while (thisLayer) {
thisLayer.className="leftNavBltItem";
thisLayer = layers.iterateNext();
}
}
catch(exception)
{
//this try catch is required for the
leftnav to work for some reason....
}
}
else
{
alert('errors in breadcrums.js line: 104');
}