this blog contains information for .net and sql stuffs. You can find various tips and tricks to overcome problem you may be facing in ...

Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Tuesday, December 29, 2009

Wednesday, December 23, 2009

Image Gallery using j-query

Go through below link to show image gallery in web site with the use of J-Query

Pretty Gallery With J-Query

Its a handy plug in for the Image Gallery.

Tuesday, December 22, 2009

Javascript to allow only numeric in text box

hi , many times we come to situation when in our website we just want to allow numeric value in text box.

This can be done by the client side java script.

Below is the script you need to insert

function isNumberKey(evt)

{

var charCode = (evt.which) ? evt.which : event.keyCode

if (charCode > 31 && (charCode <> 57))

return false;

return true;

}

and here is how to attach this function to your text box either its html or asp.net text box.

onkeypress="return isNumberKey(event)"


Tuesday, June 23, 2009

Disable Right click Context menu on Web Page

There are some situation when we want to hide our source code from user. User can easily see your web page source code by right click on page.


There are so many scripts available to disable right click. you can even open context menu by keyboard.


This is some what easy and hands on attribute to disable right click

Just write..

oncontextmenu=”return false;” in body tag...


This will not allow user to open context menu by key board or by mouse. Just try it..