Subscribe via RSS
Showing posts with label Javascript. Show all posts
Showing posts with label Javascript. Show all posts

Grid Column Sizing

This plugin, applied to a number of HTML tables, provides the behaviour of resizing their columns

# This plugin, applied to n-tables of an HTML page, provides the behaviour of resizing columns by dragging the mouse or double-clicking over a “handler hint”.
# I want it to be FAST, non-intrusive, and for HUGE tables (intranet applications, as well as for internet)
# If you double-click, the column collapse (to minimum width property); if you repeat double-click, the column returns to previous width status, and viceversa.
# If the plugin “jquery.cookies.pack.js” is present and the property “cookies” is true, then the columns width status are preserved from load to load.
Compatibility
Tested in IE6+, Firefox 2+
Release Notes
[25 July 2008] Release version 0.5
Bugs / TODO
(buggy) double-click behaviour is tricky
to update to future jQuery UI module or interface version 2
to indicate visually pixels width, while dragging
to use dinamic methods like “create” / “destroy”
to use dinamic methods like “collapse/expand X column/s”
possibility of defining columns width default values for initiating
to improve documentation and demos
(perhaps?) to change “jquery.grid.” into “jquery.table.” as the connotations of “grid” word are too ambitious…
Javascript:






 
CSS:
table.jquery_columnSizing{
 table-layout: fixed;
 width : 100%;
 }
table.jquery_columnSizing tr td{
 overflow : hidden;
 }
  


Posted by ABDUL SABOOR Sunday, February 7, 2010 0 comments

With Moo.flection you can easily add a Javascript/CSS based cross-browser reflection with true transparency to you images.

It’s based on the Mootools Javascript Framework.

Version number is 0.1 since it’s far from finished. A lot of options for implementation should be added and the code has to be optmized for a real release.


Implementation

You will need mootools v1.1 or higher and moo.flection.js
Example 1

This is the most simple and basic version. All images within any type of block element with the ID ‘reflections’ will gain a nicereflection.
// create a new instance for reflections.
var myReflection = new Reflection(
 'simple_reflection',
); 

HTML:
Hella On Floor
Sea


So if we have an image with the following Javascript, CSS and HTML:
Javascript:
// create a new instance for reflections.
var myReflection = new Reflection(
 'css_copied_reflection',
);  

CSS:
.funnyimage {
 float: left;
 margin: 50px 10px 30px 20px;
 padding: 5px;
 background: #ff0;
 border: 3px solid #f00;
 border-right: 5px dotted #0f0;

}   
HTML:
Hella On Floor
Hella On Floor

Demo: http://www.setragasj.nl/mooflection/
Download: http://www.setragasj.nl/mooflection/js/moo.flection.js
Source: http://www.setragasj.nl/mooflection/

Posted by ABDUL SABOOR Wednesday, December 23, 2009 0 comments


TopUp is an unobtrusive Lightbox clone that is highly customizable & offering advanced features.



It is built with jQuery/jQuery UI can display images, videos, webpages or any HTML content.







TopUp supports grouping of objects to be displayed & they can be browsed with previous-next buttons (ideal for image galleries).

Images used inside (backgrounds, buttons, etc) are displayed with CSS sprites, so there will be fewer requests while loading.

It can work with Ajax requests & the effects while displaying the modal window or transition of contents can be customized.

Posted by ABDUL SABOOR Monday, November 30, 2009 0 comments