The problem:
When you have mouseover and mouseout events bound to some element on you page with children elements. Hovering over children element fires parent’s mouseover and/or mouseout event.
Posted on 03 September 2010.
When you have mouseover and mouseout events bound to some element on you page with children elements. Hovering over children element fires parent’s mouseover and/or mouseout event.
Posted in JavaScript - Ajax0 Comments
Posted on 03 September 2010.
<script type=”text/javascript”>
function showImg() {
$(“img”, this).fadeIn(200);
}
function hideImg() {
$(this).fadeOut(200);
}
$(function(){
$(“.reveal img”).mouseenter(hideImg());
$(“.reveal img”).mouseleave(showImg());
</script>
<div>foo<img src=”img/water.png” /></div>
<div>bar<img src=”img/eye.png” /></div>
Posted in JavaScript - Ajax0 Comments
Posted on 03 September 2010.
The “good news” is that we can’t control the browser. It either sends the Accept-encoding: gzip, deflate header or it doesn’t.
Our job is to configure the server so it returns zipped content if the browser can handle it, saving bandwidth for everyone (and giving us a happy user). Continue Reading
Posted in .htaccess, PHP, Programming1 Comment
