GardenGnome2
11-23-2008, 05:10 PM
Ok first of all, this code works in IE. An image in a div is blurry, but on mouseover it focuses and it is also opaque. I want to know if there's an easier way to do this and how to get it to work in FF.
<style type="text/css">
body {
background-color:red;
}
.blur {
background-image: url(image.gif);
height:100px;
width:100px;
filter:progid:DXImageTransform.Microsoft.Blur();
}
.noblur {
background-color:transparent;
border:1px solid black;
height:100px;
width:100px;
}
.opac {
background-image: url(image.gif);
border:1px solid black;
height:100px;
width:100px;
filter:alpha(opacity=80);
opacity:0.8;
}
</style>
<div class="noblur">
<div class="opac">
<div class="blur" onmouseover="this.className='noblur';" onmouseout="this.className='blur';">
</div>
</div>
</div>
<style type="text/css">
body {
background-color:red;
}
.blur {
background-image: url(image.gif);
height:100px;
width:100px;
filter:progid:DXImageTransform.Microsoft.Blur();
}
.noblur {
background-color:transparent;
border:1px solid black;
height:100px;
width:100px;
}
.opac {
background-image: url(image.gif);
border:1px solid black;
height:100px;
width:100px;
filter:alpha(opacity=80);
opacity:0.8;
}
</style>
<div class="noblur">
<div class="opac">
<div class="blur" onmouseover="this.className='noblur';" onmouseout="this.className='blur';">
</div>
</div>
</div>