Commit 42c55d64 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Fixing IE CSS thanks to Gradius9 and deplifer10 from furusystems.com

parent 1122f97b
......@@ -25,11 +25,14 @@ echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
<title><?php echo $title; ?></title>
<link rel="alternate" type="application/rss+xml" title="RSS - News" href="/videolan-news.rss" />
<link rel="stylesheet" type="text/css" href="/main.css" />
<!--[if lt IE 7]>
<style type="text/css">
@media screen{ body{behavior:url("/width.htc");} }
</style>
<![endif]-->
<!--[if lt IE 7]>
<style type="text/css">
@media screen{ body{behavior:url("/width.htc");} }
/* PNG support for IE */
img { behavior: url("/png.htc");}
.DXImageTransformed { display: inline-block; }
</style>
<![endif]-->
<link rel="shortcut icon" type="image/x-icon"
href="/images/icons/favicon.ico" />
<?php if( $enable_live == true ) {?>
......
......@@ -9,10 +9,6 @@
.clearfix {display: block;}
/* End hide from IE-mac */
/* PNG support for IE */
img { border: none; behavior: url("/png.htc");}
.DXImageTransformed { display: inline-block; }
/***************** General Styles *********************/
html, body {
......@@ -26,6 +22,8 @@ body { background: #fff url("images/bg.png") repeat-x top;
font-size: 12px; color: #333; text-align: center;
}
img { border: none;}
ul {
list-style-type: none;
margin: 0;padding: 0;
......@@ -110,7 +108,8 @@ p.center { text-align:center;}
#submenucontainer ul li a {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-weight: normal; color: #2D58AE;font-size: 17px;
text-decoration: none;text-shadow: 0.2em 0.2em;
text-decoration: none;
/* text-shadow: 0.2em 0.2em;*/
float: left; padding: 14px 20px 10px 0;
text-transform: lowercase;
}
......
/* Made by Furu systems - furusystems.com */
<public:component lightWeight="true">
<public:attach event="oncontentready" onevent="parse()" />
<public:method name="parse" />
<public:attach event="oncontentready" onevent="png()" />
<public:method name="png" />
<script>
function parse(){
if(/.*?[.]png$/i.test(src) && parentNode.className != "DXImageTransformed"){
applyElement(element.document.createElement("span"));
parentNode.className ="DXImageTransformed";
try{
runtimeStyle.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity='0');";
parentNode.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src +"',sizingMethod='scale');";
}catch(e){return;}
}else{ return;}
function png(){
if(parentNode.className != "DXImageTransformed"){
try{
runtimeStyle.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity='0');";
applyElement(element.document.createElement("span"));
parentNode.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"',sizingMethod='scale');";
parentNode.className ="DXImageTransformed";
} catch(e){ return; }
}
}
</script>
</public:component>
</public:component>
\ No newline at end of file
/* Made by Furu systems - furusystems.com */
<public:component lightWeight="true">
<public:attach event="oncontentready" onevent="setWidth()" />
<public:attach for="window" event="onresize" onevent="setWidth()" />
<public:method name="setWidth" />
<script>
function setWidth(){
var windowWidth = element.document.compatMode == 'CSS1Compat' ? element.document.documentElement.clientWidth : element.document.body.clientWidth;
element.runtimeStyle.width = windowWidth < 750 ? 750 : 100+'%';
}
<script>
function setWidth(){
var windowWidth = element.document.compatMode == 'CSS1Compat' ? element.document.documentElement.clientWidth : element.document.body.clientWidth;
element.runtimeStyle.width = windowWidth < 780 ? 780 : 86+'%';
}
</script>
</public:component>
</public:component>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment