Categories

How to use JavaScript to detect mobile and hand held devices

Share

If you are maintaining separate web pages on your website for visitors viewing your website on their mobile phones or hand held devies then you can use the following JavaScript code to check the visitor’s user agent and direct them to the relevant web pages.

<script type=”text/javascript”>

var mobile = function(){ return { [...]

How to use CKEditor in your web page using JavaScript

Share

CKEditor has replaced its older version FCKEditor with more features and browser compatibility with latest versions of Firefox and Chrome. It’s also more secure than FCKEditor which has been exploited by hackers.

Use the following code to instantiate the CKEditor on a web page

<script type=”text/javascript” src=”http://www.google.com/jsapi”></script> <script type=”text/javascript”>if (typeof jQuery == ‘undefined’) [...]

How to implement Lightbox effect in Zencart

Share

Lightbox effect is now the defacto standard for displaying product, category and other images on your website. Javascript popups are a thing of the past and really don’t look that cool. As more and more website content management and e-commerce frameworks provide this feature I will today discuss how we can use this in [...]