Detecting Browser close event using Jquery

December 13th, 2009 Posted in Web 2.0

The JavaScript window.onbeforeload() event is fired just before the web page is unloaded. This gives us the ability to make sure that the user is certain about leaving the page that they are viewing. We can also use this to catch the browser closing event.

I have mixed the script with Jquery. We can use Jquery’s bind method to bind the event but using bind we can’t handle the event properly. Using the following script we can easly customize the confirmation message and also it will work on IE and most of the common web browsers.
» Read more

Surprising Rock in Saudi Arabia – Real pictures

December 8th, 2009 Posted in Religion

I have got a mail some days before with title “Surprising Rock in Saudi Arabia” and having the following message in it
A huge rock in a village of Al-Hassa region, SAUDI ARABIA raises 11 cms from the ground level once in a year during the month of April and stays elevated for about 30 minutes !!!

surprizing_rock_saudi_Funzug.org_01They say that 17 years ago, one man was shot dead behind this rock as he was hidden there. This encounter happened in the month of April 1989. You can see the fresh blood stains on the rock. Most surprisingly, when the rock raises from the ground, these stains become darker, fresher and wet. Local residents tried to wipe off the stains several times, but after some time it appears again on the rock automatically. …. Isn’t it astounding?  “

When I read it I understood  that it must be a fake picture and fake information so I started to search on google but I didn’t get any real pictures of the rock. But found one Haleem Qureshi Civil Engineer from Saudi Arabia knows the real fact and has the real pictures of the rock. He sent me the  real pictures and shared the real story of the Surprising Rock in Saudi Arabia with me » Read more

New Low Floor Volvo AC buses have started to rule the Trivandrum City

November 24th, 2009 Posted in Our World

The new eight low floor air conditioned Volvo buses flagged off by State Chief Minister V.S. Achuthanandan on Wednesday 18 November 2009 have started to rule Thiruvananthapuram city roads.Currently, there are 17 trips daily to EastFort, starting from Kaniyapuram at 0700, 0800, 0830, 0915, 1015, 1100, 1130, 1300, 1345, 1430, 1500, 1600, 1700, 1745, 1830, 1915, 2045.

After the flagging-off ceremony, the Chief Minister, Union Minister of State for External Affairs Shashi Tharoor, several Ministers and legislators and officials of the Kerala State Road Transport Corporation (KSRTC) boarded an orange-red Volvo bus for a ride from the Central Stadium. As the bus was overcrowded, the Chief Minster and some others alighted at the gate. » Read more

Google is not indexing new Wordpress posts Solved the Issue

October 27th, 2009 Posted in Blogging

I had an issue with my wordpress blog with the google indexing after posted an article . When I first started my blog my posts where getting index within minutes. But last week  none of my posts ware getting indexed.

I looked at my google webmaster tools and at the starting of the month I had a number  of pages that were getting crawled. Now it’s way down. someday I didn’t even get a bot on my site. I had changed nothing. At last I checked my robots.txt file. It was changed to
» Read more

Add lightbox to Wordpress blogs without using a plugin

October 27th, 2009 Posted in Web 2.0

There are a lot of plugins available for adding lightbox support to wordpress blogs. But I am trying to add the lightbox script directly to my blog here. I have followed the below steps to add the plugin to my wordpress blog
Step 1 : Download jquery lightbox plugin
Step 2 : Copy jquery.lightbox-0.x.js, jquery.js, jquery.lightbox-0.x.css from the downloaded plugin pack to a separate a folder and name it to  lightbox. Dont add Jquery if u are already using the jquery in your site.
Step 3 : Upload all the Images to your theme’s image folder
Step 4 : Open jquery.lightbox-0.x.js edit the image variables  to the path of your uploaded images

imageLoading: 'http://feelitfresh.com/wp-content/themes/feelitfresh/images/lightbox-ico-loading.gif',
imageBtnPrev: 'http://feelitfresh.com/wp-content/themes/feelitfresh/images/lightbox-btn-prev.gif',
imageBtnNext: 'http://feelitfresh.com/wp-content/themes/feelitfresh/images/lightbox-btn-next.gif',
imageBtnClose: 'http://feelitfresh.com/wp-content/themes/feelitfresh/images/lightbox-btn-close.gif',
imageBlank: 'http://feelitfresh.com/wp-content/themes/feelitfresh/images//lightbox-blank.gif'

Step 5 : Upload the lightbox directory to your wordpress theme folder. Better to inside the javascript directory /wp-content/themes/feelitfresh/javascript 6)Add the  following lines to your script.js file or to header tag or any of the javascript include file

 $(function() { $('a.lightbox').lightBox(); });

» Read more

Page 2 of 12«12345»...Last »