I'm trying to implement a "Show the original" rollover effect on my photoblog (which is running Wordpress)
www.marcelbooth.co.uk/photoblog
This is Chrome and Safari
		
		
	
	
		
	
This is Firefox
		
	
It's using jQuery and a tutorial I found via google.
This is the script code :
	
	
	
		
The HTML inside the blog post
	
	
	
		
And finally the CSS :
	
	
	
		
It works on the following browsers :
Mac > Chrome YES
Mac > Safari YES
Mac > Firefox (7) NO
Windows > Opera YES
Windows > Firefox NO
Windows > Chrome YES
Windows > Netscape Navigator NO
Windows > Internet Explorer YES
With Firefox and Navigator showing the image starting from the centre as above.
I know its something to do with the CSS, and I went through every permutation of changing relative to inherit or absolute as I could think of, and this is the closest I could get it.
	
		
			
		
		
	
				
			www.marcelbooth.co.uk/photoblog
This is Chrome and Safari
	This is Firefox
	It's using jQuery and a tutorial I found via google.
This is the script code :
		Code:
	
	<script>
	jQuery(document).ready(function(){
	jQuery(".a").hover(
	function() {
		jQuery(this).stop().animate({"opacity": "0"}, "slow");
	},
	function() {
		jQuery(this).stop().animate({"opacity": "1"}, "slow");
	});
});
</script>
	The HTML inside the blog post
		Code:
	
	<div class="fadeoriginal">
<img src="http://www.marcelbooth.co.uk/photoblog/wp-content/uploads/2011/10/090729_2689.jpg" alt="" class="a size-full wp-image-678" />
<img src="http://www.marcelbooth.co.uk/photoblog/wp-content/uploads/2011/10/090729_2689_original.jpg" alt="" class="b" />
</div>
	And finally the CSS :
		Code:
	
	div.fadeoriginal {
	position: inherit;
	}
 
img.a {
	position: absolute;
	z-index: 10;
    }
 
img.b {
	position: relative;
	margin-top: -16px;
	}
	Mac > Chrome YES
Mac > Safari YES
Mac > Firefox (7) NO
Windows > Opera YES
Windows > Firefox NO
Windows > Chrome YES
Windows > Netscape Navigator NO
Windows > Internet Explorer YES
With Firefox and Navigator showing the image starting from the centre as above.
I know its something to do with the CSS, and I went through every permutation of changing relative to inherit or absolute as I could think of, and this is the closest I could get it.
			
				Last edited: 
			
		
	
								
								
									
	
		
			
		
		
	
	
	
		
			
		
		
	
								
							
							
	
 
