2 waltercruz Jul 23, 2008 16:49

This may help you... ;)
This is how IE6 displays images on your site
http://ru.b2evo.net/media/images/13.JPG
Chess board in IE7
You should comment out the script in jQuery Lightbox plugin or pages fail the validation test
$jqcode = '<script type="text/javascript"><!--//
jQuery.noConflict();
I wrote it here because I didn't find a jQuery Lightbox plugin thread.
Thanks for the plugin, I like it very much!
Hi sam2kb
Thanks for the feedback.
I have the Lightbox fixed in SVN (http://sourceforge.net/projects/evocms-plugins/) however I haven't got a clue what is in the most recent released version. My head runs over caused by the many plugins I work on simultanously:
$jqcode = '<script type="text/javascript">
//<![CDATA[
jQuery.noConflict();
(function($) {
$(function() {
This code however is prone to revision. Blueyed wrote a script that caches all javaScript. It needs the script to be in a file rather than in the <head> section, so this is going to be moved and incidentally that will solve the validation problems.
I did fix the javaScript for the Imagefit plugin and that cured this particular problem in IE7 (the only version I could get hold on). That fix is in Imagefit plugin version 0.9.1, so 0.9 is bad and 0.9.1 is good. Maybe it is not good enough for IE6. Please check what version for the plugin you have.
Also the p4wn Chess plugin doesn't work in IE (6 & 7). I haven't found the problem there. If anyone has suggestions, please let me know.
Have a nice day
Hi Afwas,
I didn't install the Imagefit plugin, I just opened your link in IE6/IE7. Don't know if you have the current version installed, but for now images are still double-sized in IE6.
Also the p4wn Chess plugin is working well on my IE6, I'm using [url=http://multipleies.en.softonic.com/]MultipleIEs[/url]
Can anyone with IE6 have a look at http://www.blog.hemminga.net/index.php?blog=8
The images should look fine (scaled to the width of the container).
I haven't found a way (yet) for the p4wn Chess plugin in IE7. My guess is it doesn't load the script without an explicit call at the <body> tag. I tried things like these:
jQuery(window).load(H)
// addEvent(window,"load",H);
in many variations.
Released [url=http://downloads.sourceforge.net/evocms-plugins/jquery_imagefit_plugin-0.9.3.zip?use_mirror=osdn]jquery_imagefit_plugin-0.9.3.zip[/url] that should cure problems in IE. Check my blog for proof ;) I still haven't tested in the dreaded IE6 and older.
Have fun
Well done!
Everything is working in IE6/IE7
Great. I hate debugging for IE. But that's solved now. Thanks for the help.
Plugin updated to v1.0.0
Supports more skins by default
sam2kb wrote:
Plugin updated to v1.0.0
Supports more skins by default
new topic and download links please (:
Download link is in the first post.
Why do we need a new topiс for the same plugin?
I get this after uploading plugin and switching to available plugins list
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/****/public_html/blog/plugins/jquery_imagefit_plugin/_jquery_imagefit.plugin.php on line 78
There was a bug. Please update to v1.0.1
hello all,
u have to try this:
(function( $, undefined ) {
$.fn.extend({
imageFit:function(mode) {
return this.each(function() {
var $this = $(this);
var $parent = $this.parent();
$parent.css({"overflow":"visible"});
$this.css({width:"100%",height:"auto",margin:0,padding:0,border:"none"});
var imgW = $this.width();
var imgH = $this.height();
var contW = $parent.width();
var contH = $parent.height();
var imgWHratio = imgW/imgH;
var contWHratio = contW/contH;
var marginLeft=0;
var marginTop=0;
if(mode=="fit"){
if(contWHratio>imgWHratio){
$this.css({height:"100%",width:"auto"});
marginLeft = Math.floor((contW-$this.width())/2);
$this.css({"margin-left":marginLeft});
}else if(contWHratio<imgWHratio) {
marginTop = Math.floor((contH-$this.height())/2);
$this.css({"margin-top":marginTop});
}else{
//do nothing
}
}
if(mode=="pan"){
if(contWHratio>imgWHratio){
marginTop = Math.floor((contH-$this.height())/2);
$this.css({"margin-top":marginTop});
$parent.css({"overflow":"hidden"});
}else if(contWHratio<imgWHratio){
$this.css({height:"100%",width:"auto"});
marginLeft = Math.floor((contW - $this.width())/2);
$this.css({"margin-left":marginLeft});
$parent.css({"overflow":"hidden"});
}else{
//do nothing
}
}
});
}//fitImage end
});
})( jQuery );
// end of image-fit
Source: code.google.com
I will test it now!