16
Goood day comrades XOOPERS!
All done! all was so damn(sorry) simple as it could be!
Look at at my previous post... and find the correction...
here is a correct variant of script -
le="color: #000000"><?php <!-- highlight script--> <SCRIPT LANGUAGE="JavaScript"> <!-- function highlightLink() { //Get filename from the URL thisPage = document.URL.substring(document.URL.lastIndexOf("%")+1 ,document.URL.length); //Loop through all the links for (i=0; i<document.links.length; i++ ) { //Get only the filename from the href of navigation link pageLink = document.links[i].href.substring(document.links[i].href.lastIndexOf("%")+1 ,document.links[i].href.length); //if the current filename & the link-ed file name are the same, change the background color of that link if (thisPage == pageLink) { //BG is the name of a class that I have defined, that sets background color to grey document.links[i].className = "BG"; } } } //--> </SCRIPT> <!-- highlight script--> </head> <body id="<{$xoops_dirname}>" class="<{$xoops_langcode}>" onload="highlightLink()">
insert it as is in your theme and add to your CSS
le="color: #000000"><?php /* highlight styles */ .BG {color: #FF0000;} /* Highlight styles */
the decision was so close as i said...
and here is the key - just looked at the JS closely and changed
le="color: #000000"><?php href.lastIndexOf("/")+1
to
le="color: #000000"><?php href.lastIndexOf("%")+1
the result could be seen here
http://water.info.tmthanks to every one for your replies and suggestions...
________________________________________
with best regards and wishes Happy hollydays xoopers...