Saturday, 15 February 2014

Best HTML Codes for-

1.Snow on my page-


<!-- This Script is from 'thebestwithin.blogspot.in' Coded by: CODESMACHER-->
<script>
// Set the number of snowflakes (more than 30 - 40 not recommended)
var snowmax=35

// Set the colors for the snow. Add as many colors as you like
var snowcolor=new Array("#aaaacc","#ddddFF","#ccccDD")

// Set the fonts, that create the snowflakes. Add as many fonts as you like
var snowtype=new Array("Arial Black","Arial Narrow","Times","Comic Sans MS")

// Set the letter that creates your snowflake (recommended:*)
var snowletter="*"

// Set the speed of sinking (recommended values range from 0.3 to 2)
var sinkspeed=0.6

// Set the maximal-size of your snowflaxes
var snowmaxsize=22

// Set the minimal-size of your snowflaxes
var snowminsize=8

// Set the snowing-zone
// Set 1 for all-over-snowing, set 2 for left-side-snowing
// Set 3 for center-snowing, set 4 for right-side-snowing
var snowingzone=3

///////////////////////////////////////////////////////////////////////////
// CONFIGURATION ENDS HERE
///////////////////////////////////////////////////////////////////////////


// Do not edit below this line
var snow=new Array()
var marginbottom
var marginright
var timer
var i_snow=0
var x_mv=new Array();
var crds=new Array();
var lftrght=new Array();
var browserinfos=navigator.userAgent
var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/)
var ns6=document.getElementById&&!document.all
var opera=browserinfos.match(/Opera/) 
var browserok=ie5||ns6||opera

function randommaker(range) {       
    rand=Math.floor(range*Math.random())
    return rand
}

function initsnow() {
    if (ie5 || opera) {
        marginbottom = document.body.clientHeight
        marginright = document.body.clientWidth
    }
    else if (ns6) {
        marginbottom = window.innerHeight
        marginright = window.innerWidth
    }
    var snowsizerange=snowmaxsize-snowminsize
    for (i=0;i<=snowmax;i++) {
        crds[i] = 0;                     
        lftrght[i] = Math.random()*15;        
        x_mv[i] = 0.03 + Math.random()/10;
        snow[i]=document.getElementById("s"+i)
        snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)]
        snow[i].size=randommaker(snowsizerange)+snowminsize
        snow[i].style.fontSize=snow[i].size
        snow[i].style.color=snowcolor[randommaker(snowcolor.length)]
        snow[i].sink=sinkspeed*snow[i].size/5
        if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}
        if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}
        if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}
        if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}
        snow[i].posy=randommaker(2*marginbottom-marginbottom-2*snow[i].size)
        snow[i].style.left=snow[i].posx
        snow[i].style.top=snow[i].posy
    }
    movesnow()
}

function movesnow() {
    for (i=0;i<=snowmax;i++) {
        crds[i] += x_mv[i];
        snow[i].posy+=snow[i].sink
        snow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i]);
        snow[i].style.top=snow[i].posy
       
        if (snow[i].posy>=marginbottom-2*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){
            if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}
            if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}
            if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}
            if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}
            snow[i].posy=0
        }
    }
    var timer=setTimeout("movesnow()",50)
}

for (i=0;i<=snowmax;i++) {
    document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowletter+"</span>")
}
if (browserok) {
    window.onload=initsnow
}
</script>

<font face="Tahoma"><a target="_blank" href="http://www.thebestwithin.blogspot.com/"><span style="font-size: 8pt; text-decoration: none">HTML Free Code</span></a></font>












2.shake internet explorer-

<meta http-equiv="Content-Language" content="en-us">
<SCRIPT language=JavaScript>
 Begin
function shake(n) {
if (parent.moveBy) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {

parent.moveBy(-i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
parent.moveBy(0,-i);
parent.moveBy(i,0);
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,i);
         }
      }
   }


}
//  End


shake(1);
//
 </SCRIPT>
<font face="Tahoma"><a target="_blank" href="http://www.thebestwithin.blogspot.com/"><span style="font-size: 8pt; text-decoration: none">The Best within Everything</span></a></font>



3.Different times of world by the users choice-

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>New Page 2</title>
</head>

<body>

<table border="0" width="200" cellspacing="0" cellpadding="3">
<form name="where">
  <tr>
    <td width="100%">
<select name="city" size="1" onchange="updateclock(this);">
<option value="" selected>Local time</option>
<option value="0">London GMT</option>
<option value="1">Rome</option>
<option value="7">Bangkok</option>
<option value="8">Hong Kong</option>
<option value="9">Tokyo</option>
<option value="10">Sydney</option>
<option value="12">Fiji</option>
<option value="-10">Hawaii</option>
<option value="-8">San Francisco</option>
<option value="-5">New York</option>
<option value="-3">Buenos Aires</option>
</select>

</td>
  </tr>
  <tr>
    <td width="100%">
<script language="JavaScript">

/*
Drop Down World Clock- By Learn iran (http://www.webloger.5u.com)
Portions of code by Kurt @ http://www.webloger.5u.com/
This credit notice must stay intact
*/

if (document.all||document.getElementById)
document.write('<span id="worldclock" style="font:bold 16px Arial;"></span><br>')

zone=0;
isitlocal=true;
ampm='';

function updateclock(z){
zone=z.options[z.selectedIndex].value;
isitlocal=(z.options[0].selected)?true:false;
}

function WorldClock(){
now=new Date();
ofst=now.getTimezoneOffset()/60;
secs=now.getSeconds();
sec=-1.57+Math.PI*secs/30;
mins=now.getMinutes();
min=-1.57+Math.PI*mins/30;
hr=(isitlocal)?now.getHours():(now.getHours() + parseInt(ofst)) + parseInt(zone);
hrs=-1.575+Math.PI*hr/6+Math.PI*parseInt(now.getMinutes())/360;
if (hr < 0) hr+=24;
if (hr > 23) hr-=24;
ampm = (hr > 11)?"PM":"AM";
statusampm = ampm.toLowerCase();

hr2 = hr;
if (hr2 == 0) hr2=12;
(hr2 < 13)?hr2:hr2 %= 12;
if (hr2<10) hr2="0"+hr2

var finaltime=hr2+':'+((mins < 10)?"0"+mins:mins)+':'+((secs < 10)?"0"+secs:secs)+' '+statusampm;
if (document.all)
worldclock.innerHTML=finaltime
else if (document.getElementById)
document.getElementById("worldclock").innerHTML=finaltime
else if (document.layers){
document.worldclockns.document.worldclockns2.document.write(finaltime)
document.worldclockns.document.worldclockns2.document.close()
}


setTimeout('WorldClock()',1000);
}

window.onload=WorldClock
//-->
</script>

<!--Place holder for NS4 only-->
<ilayer id="worldclockns" width=100% height=35><layer id="worldclockns2" width=100% height=35 left=0 top=0 style="font:bold 16px Arial;"></layer></ilayer>

</td>
</form>
  </tr>
</table>

</body>

</html>



Wednesday, 12 February 2014

Transfer your Gmail Messages to another Email Address



'This tutorial explains how you can transfer email messages from your Gmail account to any other email address with the help of Google Scripts.'



Say you have an old Gmail account and you would like to transfer all the existing email messages from the old account to your new email address. The new address could be on @gmail.com, @outlook.com, Google Apps (@yourcompany.com) or anywhere else.
Gmail does include the useful Mail Fetcher utility to help you automatically transfer mails between Gmail accounts or between Gmail and Outlook accounts.
If you are however planning to transfer your existing Gmail messages to another email service that doesn’t support POP3 based importing, you can make use of a simple Google Script that will auto-forward all your old messages, one by one, to your new email address.

How to Transfer Gmail Messages – Step by Step
To configure the script, log on to your old Google account and then follow these steps:

  1. Click here to copy the Mail Forwarding sheet to your Google Drive (associated with old Gmail Address).
  2. You’ll see a new Gmail menu in the Google Sheet. Choose Gmail -> Authorize to allow the script to access your Gmail account.
  3. Once the script has been authorized, choose Gmail -> Transfer and type your new email address where the old messages are to be auto-forwarded.
The Google Script will now run in the background and will auto-forward every single message from your old @gmail.com address to the new one. The script will add the label “cloned” to all the threads that have been successfully forwarded. This is required to keep track of messages that have been processed.
The transfer process, depending upon the size of your mailbox, may take a few days to complete because of Gmail’s daily sending limit. The messages in the Trash, Spam and your Sent Items folders are ignored.
Also, the “Transfer My Gmail” script works on your entire Gmail mailbox. If you would like to auto-forward a select group of messages, see the previous tutorial on how to auto-forward Gmail messages in bulk.



Hope you like this post!!
Don't forget to Like us on Facebook !!

Monday, 3 February 2014

How to Change the Date of your Digital Photographs

My friend John Q. Public has just finished importing the videos and pictures from the digital camera to his laptop but realizes that the media files are incorrectly time-stamped.
Maybe the date and time settings of his “point and shoot” camera were set incorrectly or maybe the digital camera was stamping the files with local time though the pictures were being shot in another country with a different time zone. He probably forgot to change the time stamp of the camera before going on vacation.

How does John change the data and time of his pictures?


Most image editing software, Picasa and iPhoto included, allow you corect the data and time of photographs imported from a digital camera or a smartphone. You can import your digital photos in the software and select the ones that need to be fixed.


In the case of Picasa, choose Tools -> Adjust Date & Time and select a new date for your photos. This will change the “Date Picture Taken” field in the EXIF data of you picturs. Similarly, iPhoto users can choose Photos -> Adjust Date & Time to set the selected photos to a particular date and time.


I however prefer a little-known command line utilitly called ExifTool for such operations since it is much more versatile. To get started, download the ExifTool executable and extract the zip file to your desktop. Now rename the exiftool(-k).exe utility to exiftool.exe and we are all set to adjust the date and time of our photographs.


Unlike the iPhoto or Picasa software that simply set the date and time of a photograph to another time stamp, Exif Tool can “shift” the data and time values associated with a picture. For instance, if your camera’s time was off by 2 hours 30 minutes at the time of capture, you can use ExifTool to shift the time stamp of all your pictures only by that “off” duration.


The sytax is:

exiftool.exe "-DateTimeOriginal+=Y:M:D h:m:s" filename.jpg
 
 
 
 
 
For instance, if wish to shift the time of photographs by 5 hours and 30 minutes, the command would be:

exiftool.exe "-DateTimeOriginal+=0:0:0 5:30:0" filename.jpg
 
And if you wish to perform a negative shift by 1 day, the command would be:

exiftool.exe "-DateTimeOriginal-=0:1:0 0:0:0" filename.jpg
 
Please refer to this document for the exact syntax and other examples.

While other programs only modify the “Date Picture Taken” (DateTimeOriginal),, Exif Tool can also be used to modify other meta data include the “Date Modified” (ModifyDate) and “Date Created” (CreateDate) fields.

The command would be:

exiftool.exe "-AllDates+=Y:M:D h:m:s" filename.jpg
 
Exif Tool makes a copy of your original photograph before updating the time stamp. The tool is free and available for Windows, Mac and Linux.



For further queries post on Our Facebook Page. Don't forget to like us !!





Saturday, 1 February 2014

Add Search Shortcuts on your Android or iPhone



How do you search a popular website, say Twitter or YouTube, on your mobile phone? You would launch the browser, open the corresponding website and then use the search box inside that site. Or you would use the mobile app, if you have installed one.
There’s an alternate way as well. You may consider installing search shortcuts on the home screen of your mobile phone and they will help you perform searches on your favorite website with fewer steps. 
Let’s dive right into an example.
Open the Safari browser on your iPhone (or iPad) and click here to open the search shortcut for Wolfram Alpha. A pop-up dialog will open but since we are installing the shortcut, hit the Cancel button to close that dialog. Now tap the Share icon in Safari and choose “Add to Home Screen” to add that search shortcut to your home screen.
The next time you want to search Wolfram on your phone, tap the Wolfram shortcut available on your home screen, enter the search terms and it will take you directly to the search results on the Wolfram website. That’s just one tap.
You can similarly add search shortcuts on your Android device using the newer version of Chrome browser. Open any of the search shortcuts listed below, “cancel” the pop-up dialog and then choose the “Add to homescreen” option under the main menu to place a shortcut on your homescreen for quick access.
Search Shortcuts for Android and iOS
Here are some ready-to-install search shortcuts for some popular websites that you may add to the homescreen of your Android or iOS device.
  1. Twitter Search
  2. YouTube Search
  3. Google I’m Feeling Lucky
  4. Wolfram Alpha
  5. Google Image Search
  6. Bing Search
  7. Amazon Search
  8. Google+ Search
  9. Wikipedia Search
  10. Facebook Search



Images © by labnol.org