diff options
author | Pablo Saratxaga <pablo@mandriva.com> | 2005-02-18 16:17:49 +0000 |
---|---|---|
committer | Pablo Saratxaga <pablo@mandriva.com> | 2005-02-18 16:17:49 +0000 |
commit | 32aa642f6537c181a28295fa4dfb2f3a0c7720b6 (patch) | |
tree | eff4cc401c3177019b178f963d0890db25712b24 /HTML/testonline.html | |
parent | f73c84178bd43796a44cb5f4e0e97b7c3d9fab2c (diff) | |
download | indexhtml-32aa642f6537c181a28295fa4dfb2f3a0c7720b6.tar indexhtml-32aa642f6537c181a28295fa4dfb2f3a0c7720b6.tar.gz indexhtml-32aa642f6537c181a28295fa4dfb2f3a0c7720b6.tar.bz2 indexhtml-32aa642f6537c181a28295fa4dfb2f3a0c7720b6.tar.xz indexhtml-32aa642f6537c181a28295fa4dfb2f3a0c7720b6.zip |
new testonline.html, using lang= attribute of parent file;
added lang= attribute to all index-*.html files
Diffstat (limited to 'HTML/testonline.html')
-rw-r--r-- | HTML/testonline.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/HTML/testonline.html b/HTML/testonline.html index 4555621..cf4a052 100644 --- a/HTML/testonline.html +++ b/HTML/testonline.html @@ -2,8 +2,7 @@ var isRemoteAvail = false; function bodyLoad() { var url = 'http://www.mandrakesoft.com/'; - var lang = /index-(.*)\.html/.exec(parent.location); - if( lang != null ) lang = lang[1]; + var lang = parent.window.document.documentElement.attributes.getNamedItem('lang').value; if( lang != null ) url += '?wslang='+lang; if( isRemoteAvail ) parent.location=url; } |