I think using PHP or any other language may fix this...
shahbaz13
Junior Poster in Training
52 posts since Jul 2011
Reputation Points: 10
Solved Threads: 4
The issue with changing the style and being redirected to the home page is that the links do exactly that - redirect the user to the homepage of the selected style. You would need to add some javascript functionality so the current page is taken into consideration and then a change to the style would redirect the user to the same page but of the selected style version. Does that make sense?
hericles
Practically a Posting Shark
823 posts since Nov 2007
Reputation Points: 136
Solved Threads: 169
How is your javascript? You need to create a function that accepts the selected style as an input parameter and then find the current page the user is on. The javascript command document.location.href will give you the full URL. You can then split that to get the actual page.
Rebuild the URL to include the selected style and current page and then call the redirect to send the user to the new page.
hericles
Practically a Posting Shark
823 posts since Nov 2007
Reputation Points: 136
Solved Threads: 169
Either PHP or Javascript can fix the particular problem with the linking. If you wanted to add more specialized functionality then server side code (be it PHP, .Net, ruby, etc) would be required.
If you aren't familar with any of these I would suggest outsourcing the job to someone who is.
hericles
Practically a Posting Shark
823 posts since Nov 2007
Reputation Points: 136
Solved Threads: 169