Microsoft
Software
Hardware
Network
Question : JavaScript to find if URL and link are the same and change the style if true!
Basically I'm trying to write some code that looks at every link on a page and if it finds one that matches the URL it will change the style of that link.
The link would be like this..
/one/two/three.htm
And the URL would be...
http://www.number.com/one/
two/three.
htm
I'm guessing something like this needs to be used...
lastIndexOf(substr, [start])
Then both URL and link compared and if they match that link will have its style changed.
Any help would be great!
thanks,
Mark
Answer : JavaScript to find if URL and link are the same and change the style if true!
LOL. Change:
Numbervar OverTotal1;
to:
Shared Numbervar OverTotal1;
in all formulas. No, I can't explain why it didn't work like the first report.
Random Solutions
DTPicker Click Event
Netapp - increased LUN volume - resized to gain space - but windows server has not picked up change - what am i Missing please
Website doesnt display correctly in IE7
How to sendkeys commands to two sequential dialog boxes
Resource Booking in Outlook 2003/07
get 550 5.7.1. Unable to relay for specific domains....
Google apps Cname
Dell PowerEdge 2800 server failure - RAID ADAPTER unrecoverable error
PHP QUESTION - OSCOMMERCE - How to remove short description underneath products in Oscommerce 2.2
Modification to Sample CrossTab Database