Hide or show element if checkbox input is checked

Posted by & filed under Website Development.

For example, if you wish to hide or show a textbox based on if a checkbox is selected: HTML: <input id=”showTextbox” type=”checkbox” /> <textarea id=”textbox”></textarea> JS if($(“#showTextbox”).is(‘:checked’)) $(“#textbox”).show(); // checked else $(“#textbox”).hide(); // unchecked

HTML5 Quickstart Template – Mobile Viewport, CSS3, Google Font, Latest jQuery – All Ready

Posted by & filed under HTML, Javascript, jQuery, Website Development.

Whenever I want to quickly make a webpage, I don’t want to have to build the whole page everytime. Here is my starter code for an HTML5 page. The key points are : HTML5 Doctype – Ready Viewport and Mobile – Ready Title tags, Character Set, Keyword and Description Meta, Favicon, Stylesheet tags – Ready… Read more »

How to get a substring of Chinese or Japanese text without cutting off characters in PHP?

Posted by & filed under Website Development.

I used to try to get substrings of Chinese text and would get partial characters than came out as strange diamonds or squares…. until I found the mb_strcut() function! When using PHP, avoid using the substr() function, as it will often cut off Chinese and Japanese characters. For example: $text = ‘拿小锤锤的那个人好可爱的说,哈哈哈,生活太有爱了,加油加油了’; echo substr($text, 0,… Read more »

Google Site Map Generator and Broken Link Checker

Posted by & filed under Website Development.

Found two great sites today to help create a sitemap for google and find broken links. It indexed over 3000 pages and helped me discover 2 big broken links. It even pointed me to which line in the code the broken link was found. Great websites~ http://www.web-site-map.com/ http://www.brokenlinkcheck.com/

Submit your website to Chinese Search Engines

Posted by & filed under Website Development.

Here are several URLs you can go to if you want to add your website to Chinese search engines for free. Google China http://www.google.com/intl/zh-CN/add_url.html Yahoo! China http://search.help.cn.yahoo.com/h4_4.html Sohu http://db.sohu.com/regurl/regform.asp?Step=REGFORM&class= Baidu http://www.baidu.com/search/url_submit.html MSN China http://beta.search.msn.com.cn/docs/submit.aspx?FORM=WSDD2 Yisousou http://www.yisousou.com/join.jsp 免费推广网站地址