Chandan Web Blog.

Entries for the ‘General’ Category

A simple Big Click function

The following function is useful when we wish to make a certain area clickable. This takes in the first link, and makes the entire area clickable. This code has support for normal links as well as external links. Necessary JS: function cw_bigclick(){ if($(‘.cw-bigclick .bigitem’).length){ $(‘.cw-bigclick .bigitem’).on(‘click’, function() { if ($(this).find(‘a’).length > 0) { if($(this).find(‘a’).attr(‘target’)==’_blank’){ window.open($(this).find(‘a’).attr(‘href’)); [...]

Wrapping Long URLs that is inside A tag

I wanted to wrap long line/URL in an A tag, we surely did not wish to apply it for the p tag, or any other tag as such. So the following solution worked well for me, note the “display:inline-block”. .content p a{ -ms-word-break: break-all; word-break: break-all; word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; display: [...]

How to create a table with fixed-width columns regardless of contents, and/or the type of browser in use (e.g. IE, NN, Opera)?

Here is an example: <table border=1 width=183 style=‘table-layout:fixed’> <col width=67> <col width=75> <col width=41> <tr> <td>First Column</td> <td>Second Column</td> <td>Third Column</td> </tr> <tr> <td>Row 1</td> <td>Text</td> <td align=right>1</td> </tr> <tr> <td>Row 2</td> <td>Abcdefg</td> <td align=right>123</td> </tr> <tr> <td>Row 3</td> <td>Abcdefghijklmnop</td> <td align=right>123456</td> </tr> </table> Notice how a very long entry does not cause a column [...]

Firefox Profile Manager and Backup/restore Profiles on Portable Firefox

A. Creating a New Firefox Profile. 1. Close all instances of Firefox: 2. Run the following code: F:\PortableApps\FireFox3Portable\App\Firefox\firefox.exe -P NOTE: Make sure the above path suits your install location 4. It is nice to put the profiles into a central location, thus convenient in future. Ex: F:\PortableApps\FireFoxProfiles/ff3 F:\PortableApps\FireFoxProfiles/ff4 F:\PortableApps\FireFoxProfiles/ff5 3. You will get profile manager, [...]

jcarousel adds empty item in circular mode

When using the circular mode in jCarousel(wrap : ‘circular’), we used to see a blank item initially, whhich used to get cleared in the next iteration. i.e. It seemed like jCarousel generally expects at least one extra item, than the width of scroll area. In our case the width of scroll area was occupied by [...]

Subscribe to this page grab our RSS feed
search_left
Theme & Wordpress Integration - by Chandan