I am trying, in Ver 8, to highlight the product that has been selected for a search result page.
We were doing this in ver 7 uisng a little bit of Java script
But can not get it to work in ver 8 - I know the netquotevar etc have all gone and I guess I should be able to adapt the above code or to use a Block statement.
I did try and replace the NETQUOTEVAR:PRODUCTANCHOR with ProductReference but it did not seem to work. Should it?
How can I therefore find/extract the # (anchor) text from the url to compare against the ProductReference in Ver 8.
I would guess any fix for ver 8 would also apply to 9 and 10 now.
We were doing this in ver 7 uisng a little bit of Java script
Code:
<script language=JavaScript> <!-- if ( location.href.search(/&PN=.*#NETQUOTEVAR:PRODUCTANCHOR/) > -1 ) { document.write('<tr bgcolor="white">'); } else { document.write('<tr>'); } // --> </script> <noscript><tr></noscript>
I did try and replace the NETQUOTEVAR:PRODUCTANCHOR with ProductReference but it did not seem to work. Should it?
How can I therefore find/extract the # (anchor) text from the url to compare against the ProductReference in Ver 8.
I would guess any fix for ver 8 would also apply to 9 and 10 now.
Comment