View Single Post
Old 04-29-2008, 11:34 AM   #6 (permalink)
MountainGoat
WARNING! May ask stupid questions...
 
MountainGoat's Avatar
 
Join Date: Feb 2008
Location: Catalan Pyrenees...
Posts: 613
Points: 270
Send a message via MSN to MountainGoat Send a message via Skype™ to MountainGoat
What I am thinking is something like this, but it will be a little more complicated (I left the links simple as not to use too much up here), I think, as I would rather have it running under a PHP array, just in case the users do not run Java...

PHP Code:
script>
if (
language.indexOf('en') > -1document.location.href 'English.html';
else if (
language.indexOf('es') > -1document.location.href 'Spanish.html';
else if (
language.indexOf('ca') > -1document.location.href 'Catalan.html';
else
document.location.href 'English.html';
</ 
script
I'm going to give this a test this evening on the testing server, and the office grid, but am still digging around for a PHP script or a .htaccess that does similar, as this code was something that was written way back in 2001.
__________________
I would change the world, but they would not give me the source code.
MountainGoat is offline   Reply With Quote Send a private message to MountainGoat