Blogroll

Friday, January 13, 2012

Use seclection in css


Something cool that you can do using just CSS is change the selection color when you are range selecting content.

Thursday, January 12, 2012

Create custom hash.

I refer use crypt() instead md5 or sha256, because of crypt proviced many hash method and key to decode is automatic created -> hard to crack.

Wednesday, January 11, 2012

Make auto scroll when page scroll

Link demo 
Technique: auto scroll follow window scroll top and set margin-top for scroll element.

 
Tuesday, December 27, 2011

How to speed up your website ?

Minimize HTTP Requests

tag: content
80% of the end-user response time is spent on the front-end. Most of this time is tied up in downloading all the components in the page: images, stylesheets, scripts, Flash, etc. Reducing the number of components in turn reduces the number of HTTP requests required to render the page. This is the key to faster pages.
Friday, December 23, 2011

Detect load image when change image source

It's useful when you change image source such as photo slider, when you click thumbnail image, you can show the larger image.

Tuesday, December 20, 2011

Create multi background by css3

CSS3 allows web designers to specify multiple background images for box elements, using nothing more than a simple comma-separated list.
Tuesday, December 13, 2011

Detect ajax and render other view in zend

$request = $this->getRequest();
if ($request->isXmlHttpRequest()){
                  $this->_helper->layout()->disableLayout();
                    $this->_helper->viewRenderer('evencalendarajax');
                    //this->_helper->getHelper('viewRenderer')->setNoRender();
                }
1. get all request
 2. check request is ajax request.
3.Disable layout
4. Call another view if you want.
5. Disable view if you don't use view.