From 32aa642f6537c181a28295fa4dfb2f3a0c7720b6 Mon Sep 17 00:00:00 2001 From: Pablo Saratxaga Date: Fri, 18 Feb 2005 16:17:49 +0000 Subject: new testonline.html, using lang= attribute of parent file; added lang= attribute to all index-*.html files --- HTML/testonline.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'HTML/testonline.html') 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; } -- cgit v1.2.1