Variable Previous Next controls using Javascript?
Hello all,
I am currently working on a site for a friend and have reached a navigational problem I cannot figure out how to achieve...
He has a list of products that link to relevant individual pages which also have next and previous buttons to browse all the product pages on the site (only 10 so no big deal).
However, he wants to add additional lists that recommend products by category preference? So for example; 4 products may appeal to a particular category, but when you click the link to view one of the products shown the next and previous buttons scroll through the entire products pages! and not only the ones recommended?? IS it possible using Javascript to define which pages are linked to as next previous without having to create lots more html copies of content pages?
I have a basic knowledge of Javascript but cannot find a workable answer or example using google. Any help would be much appreciated.
Thanks in advance...
|