Dear Dan,
Not the animations are the reason for this file size.. Let me explain:
-- 1. ------
Thickbox
$("body").append("<div id='TB_load'><img
src='images/loadingAnimation.gif' /></div>");
ImageBox
loader = document.createElement('img');
loader.src = jQuery.ImageBox.options.loaderSRC;
jQuery(loader)
.attr('id', 'ImageBoxLoader')
.css(
{
position : 'absolute'
}
);
-- 2. ------
Thickbox
$("body").append("<iframe id='TB_HideSelect'></iframe><div
id='TB_overlay'></div><div id='TB_window'></div>");
ImageBox
if ($.browser.msie) {
iframe = document.createElement('iframe');
jQuery(iframe)
.attr(
{
id : 'ImageBoxIframe',
src : 'javascript:false;',
frameborder : 'no',
scrolling : 'no'
}
)
.css (
{
display : 'none',
position : 'absolute',
top : '0',
left : '0',
width : '100%',
filter :
'progid:DXImageTransform.Microsoft.Alpha(opacity=0)'
}
);
jQuery('body').append(iframe);
}
overlay = document.createElement('div');
jQuery(overlay)
.attr('id', 'ImageBoxOverlay')
.css(
{
position : 'absolute',
display : 'none',
width : '100%',
top : '0',
left : '0',
opacity : 0
}
)
.append(document.createTextNode(' '))
.click(jQuery.ImageBox.hideImage);
and so on.
And my words where like: " *in some situations Thickbox is too complex
or not that slick like Lightbox.*" So what I've done is a replica of
something slick.
Again I see on this list people trying to put things in competition
where is not the case. This plugin will never get public since Thickbox
fits you to good.
Dan Atkinson wrote:
> While your plugin is slick, there is something of a sacrifice of size for
> sexyness.
>
> The point of thickbox was functionality whilst maintaining a small code
> size. It achieved that, and then some.
>
> While it's not gorgeous, it still weights in at nearly twice of the size of
> thickbox (iutil.js+imagebox.js=15+kb),(thickbox.js = 9.44kb). Whether they
> all play nicely when compressed may even bring more benefits.
>
> Don't get me wrong here... I think your imagebox is great, but I don't think
> thickbox is too complex!
>
>
>
> Stefan Petre wrote:
>
>> Hi,
>>
>> Maybe some of you that migrated from prototype to jQuery miss the Lightbox
>> plugin. I know I do for some projects.
>> I know that we have the great Thickbox plugin. But in some situations
>> thickbox is too complex or not that
>> slick like Lightbox.
>>
>> So, I made a Lightbox replica, named ImageBox
>>
>> http://interface.eyecon.ro/develop/demos/imagebox.html
>>
>> _______________________________________________
>> jQuery mailing list
>> [email protected]
>> http://jquery.com/discuss/
>>
>>
>>
>
>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/