Peng Zhang on July 3rd, 2014

This screenshot pretty much tells why I chose the width stops to support with media queries.

Continue reading about Choosing Screen Widths to Support with Media Queries

Peng Zhang on August 15th, 2013

I wanted to find a code hosting and version control provider today. And I chose over several other alternatives for a couple of reasons: GitHub – it’s a great hosting and version control system; it’s free; it has by far the largest developer community and the largest number of hosted projects; but it offers [...]

Continue reading about Picking a Code Hosting and Version Control Provider

Peng Zhang on August 29th, 2012

Problem Working on a project, I encountered a weird problem where the background-color of a div does not take effect. Cause The parent or ancestor element has been moved beyond its normal position involving a negative pixel amount – in my case, a negative pixel amount to move the div content up to the top; [...]

Continue reading about CSS background-color does not show

Peng Zhang on December 14th, 2011

The Problem On a Sharepoint page, I am using jQuery to render a link using attr(‘onclick’,’somejavascriptcodehere’), and that link works in Firefox but not in IE. The Solution Use $(‘a#theid’).click() instead of $(‘a#theid’).attr(‘onclick’,’javascript:somejavascriptcodehere’). The Possible Cause IE can handle other tag attributes added or updated by jQuery, but just could not immediately add an event [...]

Continue reading about onclick not working in IE but works in Firefox

Peng Zhang on February 24th, 2011

Olark Zopim I would choose Zopim for about the same functionality with a better pricing and better free account offer.

Continue reading about Online Chat Solutions for Websites

I encountered an issue after changing the publishing settings from Flash Player 9 to 10, where functions defined on the first frame of the timeline of a movieclip is no longer available for invocation on the same frame from scripts on the main timeline. That worked perfectly well when publishing settings were set for Flash [...]

Continue reading about Flash 10 – Code in MovieClip Timeline Not Ready Invocation on the Same Frame