diff options
author | Pablo Saratxaga <pablo@mandriva.com> | 2005-02-18 12:41:26 +0000 |
---|---|---|
committer | Pablo Saratxaga <pablo@mandriva.com> | 2005-02-18 12:41:26 +0000 |
commit | f73c84178bd43796a44cb5f4e0e97b7c3d9fab2c (patch) | |
tree | 7eb3ccef3e3fde25755ee26bdb65a2a9013a3927 /HTML/testonline.html | |
parent | 80db79a9006ab69b2366a512de38646c5acab04d (diff) | |
download | indexhtml-f73c84178bd43796a44cb5f4e0e97b7c3d9fab2c.tar indexhtml-f73c84178bd43796a44cb5f4e0e97b7c3d9fab2c.tar.gz indexhtml-f73c84178bd43796a44cb5f4e0e97b7c3d9fab2c.tar.bz2 indexhtml-f73c84178bd43796a44cb5f4e0e97b7c3d9fab2c.tar.xz indexhtml-f73c84178bd43796a44cb5f4e0e97b7c3d9fab2c.zip |
added testonline.html (checks if mdk website is accessible, and if yes,
opens a page there) and make indiviudal locale html pages use it.
Diffstat (limited to 'HTML/testonline.html')
-rw-r--r-- | HTML/testonline.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/HTML/testonline.html b/HTML/testonline.html new file mode 100644 index 0000000..4555621 --- /dev/null +++ b/HTML/testonline.html @@ -0,0 +1,13 @@ +<html><body onload="bodyLoad();"><script type="text/javascript"><!-- + var isRemoteAvail = false; + function bodyLoad() { + var url = 'http://www.mandrakesoft.com/'; + var lang = /index-(.*)\.html/.exec(parent.location); + if( lang != null ) lang = lang[1]; + if( lang != null ) url += '?wslang='+lang; + if( isRemoteAvail ) parent.location=url; + } + function imgLoad() { isRemoteAvail = true; } + function imgError() { isRemoteAvail = false; } + window.alert = function() {} +--></script><img src="http://images.mandrakesoft.com/mdkv2/logo2.png" onerror="imgError();" onload="imgLoad();" /></body></html> |