bluepills
05-18-2012, 06:10 PM
Hello everyone,
First off thanks for taking a moment to help me out here.
I'm currently building a webpage using html5 and javascript and i'm fairly new to this.
I'm using a "sliding website plugin" to navigate different section of my website on a single page.
The URL's are then displayed like this : "../Website/en/index.html#/home", "../Website/en/index.html#/casestudy" etc..
As you can see it's included inside an /en/ folder.
I would like people to be able to change from english to french but to stay on the same "page" (ie : en/index.html#/casestudy to fr/index.html#/casestudy)
Currently for accessing the translated page my code is : <li><a href="../fr/index.html" title="francais">Français</a></li> but it will link to "../Website/fr/index.html#/home" no matter what page the user was on. I do not want them to be sent back to the home page.
Is there anyway I can achieve this with html or javascript?
First off thanks for taking a moment to help me out here.
I'm currently building a webpage using html5 and javascript and i'm fairly new to this.
I'm using a "sliding website plugin" to navigate different section of my website on a single page.
The URL's are then displayed like this : "../Website/en/index.html#/home", "../Website/en/index.html#/casestudy" etc..
As you can see it's included inside an /en/ folder.
I would like people to be able to change from english to french but to stay on the same "page" (ie : en/index.html#/casestudy to fr/index.html#/casestudy)
Currently for accessing the translated page my code is : <li><a href="../fr/index.html" title="francais">Français</a></li> but it will link to "../Website/fr/index.html#/home" no matter what page the user was on. I do not want them to be sent back to the home page.
Is there anyway I can achieve this with html or javascript?