Fancy javascript intro in 55 lines of code
Tonight I was supposed to do some boring database related stuff, but instead I got some ideas about
playing with table cells, random access and opacity.
Result is quite interesting, and it shows true power of Javascript. I suppose it would take lot more trouble to do something similar in flash, and if even if it could be done, this method gives you lot more control.
(For example you can add specific onmouse effects/events on some table cells
)
So, here it is, 55 linse of javascript, no framework used:
Demo:
http://dragan.yourtree.org/projects/javascript-intro/
UPDATE
and now something even more crazy than our last example:
really nice mouse effect in just 18 lines.
(using prototype though
)
Demo:
http://dragan.yourtree.org/projects/js-mouse-grid/
I'm starting to wonder, is it possible to make, lets say 400x400 "display" made from 1x1 table cells and make an javascript demo, like they did in the 90's...
You know, plasmas, rotating cubes, etc..
Give you input fields Facebook look
I found one really interesting piece of code on ajaxian.
I really like this example, it shows true power of ajax in just few lines, an also it runs very smooth and fast.
here is the author page
http://devthought.com/textboxlist-meets-autocompletion/
and the demo
http://devthought.com/wp-content/articles/autocompletelist/test.html
MGraph update - multiple graphs
MGraph - Ajax based graph, updated to v0.96
I've got a letter today from James who asked me how to draw multiple values on the same graph.
That would been too much complicated, because that kind of solution must involve some kind of overlay.
Instead I decided to enable second best solution (as suggested by James), and that is - multiple graphs
New features
- Added Option to draw two or more graphs
- code modified to be more user friendly, and up to date with modern standards
I'll try to improve MGraph as much as I can, so if you have any new ideas - I'm listening.
Google Chart API Prototype plugin
Wrapper in less than 50 lines
Few days ago find out about Google chart api and i thought it might be a good idea to write Prototype plugin, so here it is:

Project page
Version 0.4 alpha
Download GoogleChartAPI.prototype.js
Canvas Gallery with reflections
Canvas gallery with thumb reflection. Based oin Prototype and reflection.js
Coding time (6-8 hours, done in two days)
For last two days I was playing with canvas (again
).
This time i decided to build Gallery, but i wanted to add reflection to images, and to make them scroll left and right, instead of usual scrolling.
First task was to extend Prototype and add 3 new functions: scrollLeft, scrollRight, and stopScroll.
This may not seams completley necessary but it makes code a lot cleaner. Take scroll buttons for example:
//Add event listeners on scroll buttons
$('md').observe('mouseover',function(event){
$('img-holder').scrolRight();
});
$('md').observe('mouseout',function(event){
$('img-holder').stopScroll();
});
// as simple as that :]
I really learned a lot from this project, mostly about prototype.
Prototype really have awesome possibilities, all that you need is good plan and some coding skills.
Even if you are not top-notch ajax programmer there is a lot of examples and resources on the Internet.
Future of this project and usage
This project is still in deep beta, and if someone wants to use this gallery i advise to take demo page and modify it to your needs.
Otherwise you risk to loose some css or javascript dependency.
I will try to make new version of this as soon as possible.
If you have any comments or ideas please let me know.





