Posts

Showing posts from May, 2011

Javascript Page Loading Effect

Image
A simple javascript page load effect This example shows you how you can create a page loading effect that runs until the complete page loads and exit automatically when page loads completely. The code is simple and self explanatory. Copy the below code and paste in notepad and save it with .html extension and run. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Loading</title> <style type="text/css"> #load {     background:url(opacity.png);     width:100%;     height:2000px;     z-index:11;     position:absolute;     top:0px;     left:0px;     text-align:center; } </style> <script type="text/javascript" language="javascript"> fu

Windows Moive Maker

In Windows 7, Window Movie Maker is not found by default. So where it is... Don't panic. Just copy the link below, read instructions, download and install new Window Live Movie Maker. http://windows.microsoft.com/en-IN/windows7/products/features/movie-maker And Done....

Javascript Image Zoomin Zoomout

The below javascript program is simple and self explanatory. Create the html file and copy the below code in it. Save the html file and image to be zoomin / zoomout in the same directory or folder. <html> <head> <title>zomminout</title> <style type="text/css"> #img_zoom { width:500px; height:200px; margin: 0 auto; } img { border: solid Gray 3px; padding: 5px; } </style> <script type="text/javascript" language="javascript"> function zoom(ctrl) { var ctrl_id = ctrl.id; if(document.getElementById("hide_id").value == "") { document.getElementById("hide_id").value = ctrl_id; } var hide_val = document.getElementById("hide").value; var pass_id = document.getElementById("hide_id").value; if(hide_val == 0) { setTimeout(function(){zoom(pass_id);}, 1); var ht = parseInt(document.getElementById(pass_id).height); var wd = parseInt(document.getEle

Javascript Blinking Text inside Textbox

This javascript shows how you could blink text inside the textbox. <script language="javascript" type="text/javascript"> function text_blink() { if(document.getElementById("blink_me").style.color == "black") { document.getElementById("blink_me").style.color = "white"; } else { document.getElementById("blink_me").style.color = "black"; } setTimeout("text_blink()", 500); } </script> Place the script inside head tags i.e. <head> script here </head> and in body <body onload="text_blink()"> Blinking Text in a Textbox : <input type="text" id="blink_me" value="Hello Blink Blink.." /> </body> Thats All.....

Javascript Calander

Below is the javascript copy it and run it.. /* JAVASCRIPT CALANDER Version 1.0 Date: 24 Feb 2011 By: Anish Rana (Software Developer, Keyprompt Technologies Pvt. Ltd.) This script create a calendar and allow user to select date from it. It is almost browser compatible. (IE, Firefox, Chrome) How to use.. 1. Add a textbox in your page and add onclick function to it. 2. Now call the function on this onclick method like onclick="genrateCalendar(this)" and Done... mail : anishrana19@gmail.com */ function genrateCalendar(ctrl) { var ctrlid = document.getElementById("hideid"); if(ctrlid.value == "") { ctrlid.value = ctrl.id; } var divId = document.getElementById("dateDiv"); if(divId != null) { destroyCalander(); } if(divId == null) { var dt = new Date(); var day = dt.getDate(); var month = dt.getMonth()+1; var year = dt.getFullYear(); var yrmnth = month +":"+ year; var nwDt = new Date(); nwDt.setDate(1); nwDt

Hide your folder without using any software

This trick show you to hide your folder without using any software. Follow the steps :- 1. Create a Folder any where in your Hard Drive that you want to hide. 2. Make sure that your Num Pad is on. 3. Now this step is the important one. Rename the folder. While renaming press ALT key and the type 0160 form numpad. Release the ALT key and click anywhere in your computer. Now you notice that the folder is named with no name. Actually the folder is named with a space. 0160 is the ASCII code of space. 4. Now time to hide the folder. Right click on the folder and select "Properties" select the tab "coustimize" and select "change icon" scroll it and you will find some blank space icon. Select it. Apply -> Ok Now you see the your folder is hidden. Place the files and folder into this folder to hide. In this way you will hide the folders without using any software. If you have any difficulties using the trick then leave a comment.

Javascript Loading Bar

Hello everyone. This code shows you that how to create a LOADING BAR with a simple trick. This code is easy and built inn Javascript..  <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Loading.aspx.cs" Inherits="Loading" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script language="javascript" type="text/javascript"> function widthDiv() { var currentWidth = parseInt(document.getElementById('result').style.width); var maxWidth = parseInt(document.getElementById('hideAns').value); if(currentWidth > 150) { document.getElementById('result').style.backgroundColor = "Yellow"; } if(currentWidth > 250) { document.getElementById

Multiple Yahoo Messanger Login at same time

Multiple Yahoo Messanger Login Trick for multiple login in Yahoo Messanger Follow the steps:- 1 . First open REGISTRY. (Be aware, follow the steps carefully, if you do any thing wrong accidentally then it may affect your hardware and Operating System. The best is to backup your registry before applying the trick.) Start -> Run -> regedit 2. Navigate to Key HKEY_CURRENT_USER\Software\yahoo\pager\Test Then, on the right pane, right click on the registry editor and select New, then create a new DWORD registry value. Name the new registry key as Plural, and assign it the value of 1 (decimal) . If some case, the value of 2 should also works. To disable or disallow multiple instance of Yahoo Messengers, simply change and set the Plural registry key’s value to 0, or Delete the Plural key. Comments.................!

Css Top Margin Trick

Sometimes you see that on the browser there show a margin from top as by default and it is about 20px in height. But when you view the same page in other browser it looks fine, there is no margin from the top. Now, what to do to fix it or to make is compatible with all the browsers so that it look same in all the browsers. Many people use a trick by applying top margin in negative (margin-top: -20px;). Sometimes it works but it is not a good solution. Also some people use CSS-Hacks to fix this, but what about those who don’t know how to fix this. So there is a better solution to do this. Just in the very first line of you CSS write the code below. *{margin:0px; padding:0px;} And done…… Just a single line of code fix this problem. Here * is for all the elements in the html page. It sets default margin and padding to 0px;

Javascript Password Meter

Image
This code is for password meter as you see in gmail that measure the password srength...   Copy the Bellow code and run... <html> <head runat="server">     <title></title>     <script type="text/javascript" language="javascript">         function pass(ctrl)         {             if (document.getElementById("passdiv") == null)             {                 var newPos = getPosition(ctrl);                 var coods = newPos.split(" ");                 var leftPos = parseInt(coods[0]);                 var topPos = parseInt(coods[1]);                 var passDiv = document.createElement("div");                 passDiv.setAttribute("id", "passdiv");                 passDiv.style.left = (leftPos + 160) + 'px';                 passDiv.style.top = (topPos + 15) + 'px';                 passDiv.style.width = '1px';                 passDiv.style.height = '

Load DIV dynamically

The Dynamic Div code. The bellow code fill the main Div body with the contents of the Div whose hyper link on the top of the page is clicked. The code is self explanatory but for more understanding comments are there in green color. Its a magic of javascript to make it happen. Just copy n paste the code bellow and run. <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script language="javascript" type="text/javascript"> function div(reset, ctrl) // Function recving arguments as reset and id in ctrl. { if (reset == 1) { // Setting Div main to default. document.getElementById("main&q

Javascript In Masterpage

This trick shows you how to make JavaScript work in Master Page When you use JavaScript for client side validation in .aspx form, it works well. But as soon as you apply the same JavaScript code to validate form having Master Page, it gives you error like Object required or anything else. Many people thinks that why this is happening and can’t find any reason and any solution to solve this. But there is a trick to solve this problem. First make a simple form without using Master Page and use JavaScript to validate it. You found o errors and code will run smoothly. Now make a new form having Master Page. Now modify the same JavaScript to make it work. JavaScript used in form without Master Page. document.getElementById(‘txtName’).value; Here txtName is the ID of the textbox. Now just modify the above code to make it work in the form having Master Page. document.getElementById(“<%= txtName.ClientID %>”).value; And done problem is solved. Remember C , ID is in caps in Client

Lock folder without any software

Trick to lock any Folder in computer without using any Software Many windows users use folder lock softwares to keep there private data safe form others. But there is a trick so that you can do this without using any software. Follow the trick below. This trick also works for drive locking.. Windows XP Open My Computer Go to Tools -> Folder Option Click On Views Tab Scroll down to last Uncheck the last entry " Use Simple file Sharing" Ok-> Apply -> Ok Now right click on the folder/drive u want to lock. Now the Security Tab is visible in the Task bar. Now click Security Tab, now there is a list of User. Select the user and below in the permissions check Deny options. OK -->APPLY -> OK Now if you click on the folder there is a message "Access Dined". If you deny the permissions for all users accept Administrator then the only administrator is allow to open that folder. To unlock the Folder or drive do reverse the above process i.e; allow the us

Multiple Google-Talk Login at same time

"When any one login to google talk then it allows only one user to login at a time, but this trick shows you how to hack GOOGLE TALK to allow user to login multiple at same time " Follow the Steps :- 1. First create a shortcut of Google Talk on your Desktop. Right Click on Desktop -> New -> Shortcut ->Browse( Browse for the location of googletalk.exe, by default in C:\Program Files\GoogleTalk and Click Finish. 2. Now open properties of the the shortcut of googletalk on the desktop. Right Click on googletalk shortcut -> Properties -> and in the target area type the following or copy and paste the below code. "C:\Program Files\Google\Google Talk\googletalk.exe" /nomutex 3. Apply Ok And you are done. Now double click on the googletalk icon and login. Now again double click the googletalk icon. Wow it will open new googletalk. Enter with seprate google id and password. Now you can use both logins at the same time. If you like it then pleas

Fix Boot Error

Some times when you just start your computer, It shows you some errors at the time of startup on a Black booting screen about some missing files needed to start your Operating System(WINDOWS). Some are the examples below:- --> Windows could not start because the following file is missing or corrupt: C: \WINDOWS\SYSTEM32\CONFIG\SYSTEM --> Windows NT could not start because the below file is missing or corrupt: C:\WINNT\System32\Ntoskrnl.exe --> Windows NT could not start because the below file is missing or corrupt: C:\WINNT\System32\HAL.dll --> NTLDR is Missing --> Invalid boot.ini or boot.ini is missing Press any key to restart Solution 1:- Open your CPU and make sure all the connections of motherboard and hard drive are well, also check your BIOS battery. Clean the dust if there and start your computer. Now see the errors are fixed or not. If not then go for solution 2. Solution 2:- 1. Put the Windows XP installation CD into your CD drive 2. Press