As being more familiar with JS, we proposed a website using AS3 as View and JS as model.
To make things easier, jquery1.4 is chosen to transfer data between PHP to JS, and there is almost no problem except that the oncomplete function might be executed before loaded JS code is executed
Recently, a requirement about display images using JS came to me.
The requirement is like: in a div, display 3 images. After 6 seconds, display 3 other images. The problem is: the images have to go across the Internet, and the end user will wait when the images are loading.
And I came w
Colorbox is a jquery plugin. It can be found at http://colorpowered.com/colorbox/.
For a gallery, if the images are transfered through PHP, the path of the image would be like image.php?id=5
If the colorbox is loaded using a easy way like
$(document).ready(function(){
$("a[rel='group
If you are using javascript, you might probably meets regular expression later or sooner.
What's the easiest way? Learning it and writing your own expression is one choice. However, as long as its something common, it is almost impossible to do better than others did that before.
So looking for code o
YUI Compressor can compress .js or .css files.
I downloaded YUI Compressor 2.4.2 from http://yuilibrary.com/downloads/#yuicompressor.
However, its provided command-line interface might be a problem, so here came the graphics interface version.
Executable: yuicompressor-2.4.2-GUI.jar (Some browser might
- 2012
- 2011
- 2010
