Tuesday, October 13, 2009

Create Files & Folders Without Name

How it is Possible follow this:- ¢

Step 1 :- Select any file or folder

Step 2 :- Right click on it, press rename or simply press F2

Step 3 :- Press and hold the alt key. While holding the Alt key, type numbers 0160 from the numpad.


NOTE : Type the numbers 0160 from the numpad, that is, the numbers present on the right side of the keyboard. Don’t type the numbers which are present on top of the character keys.

Finally :- Press Enter and the nameless file or folder will be created.
Reason: The file or folder that seems nameless is actually named with a single space.


But what if you want to create another nameless file or folder in the same directory ?

For this you will have to rename the file with 2 spaces.

Just follow these steps below:

1. Select file, press F2.
2. Hold alt key and type 0160 from the numpad.
3. Release the alt key. Now without doing anything else, again hold alt key and press 0160.
4. Press enter and you will have second nameless file in the same directory.
5. Repeat step 3 to create as many nameless files or folders in the same directory.

(we’ve had a problem with deleting these folders, to do so, start your computer in safe mode and delete it from there.)

__________________
Enjoy Learning !


Thanks by Somewhereinblog.net

Wednesday, September 16, 2009

Simple Page Peel Effect with jQuery & CSS

You have probably seen these forms of advertisings where you can peel a corner of a website and see a message underneath. It seems most are flash driven, but I decided to try it out using some simple lines of jQuery.

1. HTML – Page Peel Wireframe

The “pageflip” div will act as the container, mainly used to establish the relative positioning. Then nest the image and the span class of “msg_block” wrapped in an tag. Note – If you don’t have any conflicting absolute/relative positioning properties, you technically don’t need the “pageflip” container at all.

Code:
 


2. CSS – Page Peel Styles

Set the image property to a smaller size (50px by 50px) by default and set the absolute positioning to be in the top right corner. The image will be used similar to the “masking” technique in Photoshop or Flash, where it will be placed on top of the hidden message, so only a portion of the message will be shown. Check out the image below for a visual:


The actual message behind the “peeling” effect, is all within the
“msg_block” class. By default, it will start at 50px by 50px,
positioned on the top right corner of the page. The text-indent will
shoot the text off of the page for anyone with CSS enabled.

Code:

#pageflip {
position: relative;
}
#pageflip img {
width: 50px; height: 52px;
z-index: 99;
position: absolute;
right: 0; top: 0;
-ms-interpolation-mode: bicubic;
}
#pageflip .msg_block {
width: 50px; height: 50px;
position: absolute;
z-index: 50;
right: 0; top: 0;
background: url(subscribe.png) no-repeat right top;
text-indent: -9999px;
}

Note that the “msg_block” height is off by 2px compared to the
image property – this is taking in consideration of the drop shadow
that the image has.


3. jQuery – Animating Page Peel

All we are doing here is expanding the image and msg_block on hover, then retracting to its default size on hover out.

Code:

$("#pageflip").hover(function() { //On hover...
$("#pageflip img , .msg_block").stop()
.animate({ //Animate and expand the image and the msg_block (Width + height)
width: '307px',
height: '319px'
}, 500);
} , function() {
$("#pageflip img").stop() //On hover out, go back to original size 50x52
.animate({
width: '50px',
height: '52px'
}, 220);
$(".msg_block").stop() //On hover out, go back to original size 50x50
.animate({
width: '50px',
height: '50px'
}, 200); //Note this one retracts a bit faster (to prevent glitching in IE)

});

Conclusion

The concept is very simple and may come in handy one day.

View Demo

Controlling Font Size With Javascript

Brief :-


This script will change the font size of any text within a paragraph (

tag). If you wish to change text within other tags edit the getElementsByTagName('p'); part.

In order for this code to work your page must be using pixel sized fonts (px) rather than relative sized fonts using 'em' or '%'. Of course if you do use other font units the code can be easily adapted for these. If the script cannot find the font size of a paragraph it will default it to 12px.

The code :-

var min=8;

var max=18;

function increaseFontSize() {

var p = document.getElementsByTagName('p');

for(i=0;i

if(p[i].style.fontSize) {

var s = parseInt(p[i].style.fontSize.replace("px",""));

} else {

var s = 12;

}

if(s!=max) {

s += 1;

}

p[i].style.fontSize = s+"px"

}

}

function decreaseFontSize() {

var p = document.getElementsByTagName('p');

for(i=0;i

if(p[i].style.fontSize) {

var s = parseInt(p[i].style.fontSize.replace("px",""));

} else {

var s = 12;

}

if(s!=min) {

s -= 1;

}

p[i].style.fontSize = s+"px"

}

}

Usage :-

Include the above code in your page (either by placing it within the head section or placing it in an external js file and importing it). You can then call the increase and decrease font size functions like below.

<a href="javascript:decreaseFontSize();">-a> 
<a href="javascript:increaseFontSize();">+a>


Example: http://www.white-hat-web-design.co.uk/articles/js-fontsize.php

Tuesday, September 15, 2009

Create invisible button without handcursor in flash

Step 1 :-

At first I draw a rectangular which is our invisible button. Select rectangular then

press F8. In the Convert to Symbol dialog box, enter a name (button) for the button symbol, and clik ok.

Open the button and move up frames to hit frame like that:



Step 2 : -

Then go to scene1 and select button laters and type in frame lael(button) like that:



Step 3 : - On the first keyframe press F9 and write these two lines:

button.useHandCursor = false;

button._visible = false;




Step 4 : -

Insert a picture and keep in lower layer.

Finally, Press Ctrl+Enter and see magic like that:-

Move your cursor but don’t show handcursor.





Otherwise it shows hand cursor when moves cursor.