Favicon is the acronym for ‘Favorites Icon’. The small image displayed at the beginning of the URL bar or address bar of browser is known as the Favicon. That icon is nothing but the small symbol of the whole web page or the site and thus is also known as the pageicon or urlicon.
Creating favicon.ico :
1. Create an image of 16×16 pixels.
2. Save that image as ‘favicon.ico’ .
Placing or Uploading favicon.ico :
Favicon.ico file must be uploaded under the root directory of the web server so that it is automatically displayed on the address bar. And if the favicon.ico is not uploaded in the root directory the developer will have to specify a tag in section of the web page for locating that icon.
<link rel=”shortcut icon” xhref=”/favicon.ico” type=”image/x-icon” />
For XHTML, the link element must be terminated by ” />” instead of “>”.
Give specific path to href attribute so that the favicon.ico will get located.
Most of the browsers available read the faicon.ico file format correctly and thus easily displays the icon in the URL bar. However, now some browsers also support animated GIF and PNG image formats. Older versions of IE dont display this favicon; but now the newer versions support favicons.
Advantages and Limitations of favicon.ico :
The important advantage of using favicon is to make your Favorites entry easier to find. But Favicon also has limitations. Only newer versions of IE shows icon in the Favorites listings as well as in the address bar. While netscape and opera use it only in the address bar and not in the bookmarks list. Also, the icon disappears when the browser cache is emptied.
sponsor
Wednesday, October 31, 2007
Friday, October 26, 2007
Fungsi PHP untuk menghitung umur
Umur seseorang dihitung berdasarkan perbedaan tanggal lahirnya dengan tanggal sekarang. Kali ini saya akan memberikan fungsi PHP untuk menghitung umur.
//sebuah function dengan nama hitUmur dan sebuah parameter
function hitUmur($tgllahir) {
$tgl = explode("-", $tgllahir);
// memecah $tgllahir yang tadinya YYYY-MM-DD menjadi array
// $tgl[0] = tahun (YYYY)
// $tgl[a] = bulan (MM)
// $tgl[2] = hari (DD)
$umur = date("Y") - $tgl[0]; //ini untuk ngitung umurnya
if(($tgl[1] > date("m")) || ($tgl[1] == date("m") && date("d") < $tgl[2])) //ngecek apakah tgl lahir dan bulannya belum lewat?
{
$umur -= 1;
}
return $umur;
}
//cara mengakses fungsi
$tgllahirku = "1980-10-12";
echo hitUmur($tgllahirku);
?>
Wednesday, October 3, 2007
Instalasi PHP, APACHE, MYSQL
bagi anda yang mau instalasi php, apache dan mysql satu-persatu. Bisa diwonload tutorialnya di sini. Tutorial berbentuk file swf....
1. Untuk instalasi di Windows, http://www.megaupload.com/?d=28V56YG8
2. Untuk instalasi di Linux, http://www.megaupload.com/?d=OGGHZH6S
Semoga tutorial di atas dapat membantu.....
1. Untuk instalasi di Windows, http://www.megaupload.com/?d=28V56YG8
2. Untuk instalasi di Linux, http://www.megaupload.com/?d=OGGHZH6S
Semoga tutorial di atas dapat membantu.....
Wednesday, September 26, 2007
Membasmi virus mahadewa labkom ubl
Belakangan ini banyak rekan-rekan yang berkunjung ke blog saya yang lainnya dan mereka komplain karena komputernya terkena virus mahadewa labkom ubl. Karena itu akan saya berikan cara untuk menghilangkan virus tsb. Ada 2 cara untuk menghilangkan virus tsb.
1. Dengan menggunakan antivirus
Gunakan antivirus ansav yang dapat didownload melalui situs www.ansav.com.
2. Manual
Antivirus memang bisa membersihkan virus tsb, akan tetapi virus tersebut akan masuk ke registry windows kita. Nah, untuk membersihkannya, silakan masuk ke registry. Yaitu dengan menekan Start->Run kemudian ketik regedit.
Sebelum masuk ke regedit, matikan proses wscript.exe yang sedang berjalan melalui task manager. Cara masuk ke task manager yaitu dengan cara Start->Run kemudian ketik taskmgr. Matikan proses yang bernama wscript.exe.
Langkah selanjutnya adalah masuk ke gpedit. Tujuannya adalah untuk mencegah virus kembali berjalan. Cara masuk ke gpedit yaitu dengan cara Start->Run kemudian ketik gpedit.msc. Setelah gpedit muncul, pilih menu user configuration->administrative template->system. Pada jendela yang ada di sampingnya, pilih menu don't run specified windows application dengan cara mengklik 2 kali. Pilih combo box enable. Masukkan wscript.exe, MaHaDeWa.vbs. dll, WinXp.vbs pada textbox yang tersedia.
Selanjutnya bersihkan file induk virus.
a. Hapus file WinXp.vbs di c:\windows\
b. Hapus file MaHaDeWa.vbs.dll di c:\windows\system32
Setelah file indek terhapus, selanjutnya tinggal membersihkan registry. Buka regedit dengan cara Start->Run ketik regedit.
Cari string dalam registry yang mengandung kata mahadewa. CAranya tekan CTRL+F kemudian ketik mahadewa. Hapus deh semua string yang mengandung kata mahadewa...
Semoga virus mahadewa hilang dari komputer Anda dan tidak kembali lagi...
Semoga artikel ini bisa membantu rekan-rekan yang kesulitan akibat virus mahadewa
1. Dengan menggunakan antivirus
Gunakan antivirus ansav yang dapat didownload melalui situs www.ansav.com.
2. Manual
Antivirus memang bisa membersihkan virus tsb, akan tetapi virus tersebut akan masuk ke registry windows kita. Nah, untuk membersihkannya, silakan masuk ke registry. Yaitu dengan menekan Start->Run kemudian ketik regedit.
Sebelum masuk ke regedit, matikan proses wscript.exe yang sedang berjalan melalui task manager. Cara masuk ke task manager yaitu dengan cara Start->Run kemudian ketik taskmgr. Matikan proses yang bernama wscript.exe.
Langkah selanjutnya adalah masuk ke gpedit. Tujuannya adalah untuk mencegah virus kembali berjalan. Cara masuk ke gpedit yaitu dengan cara Start->Run kemudian ketik gpedit.msc. Setelah gpedit muncul, pilih menu user configuration->administrative template->system. Pada jendela yang ada di sampingnya, pilih menu don't run specified windows application dengan cara mengklik 2 kali. Pilih combo box enable. Masukkan wscript.exe, MaHaDeWa.vbs. dll, WinXp.vbs pada textbox yang tersedia.
Selanjutnya bersihkan file induk virus.
a. Hapus file WinXp.vbs di c:\windows\
b. Hapus file MaHaDeWa.vbs.dll di c:\windows\system32
Setelah file indek terhapus, selanjutnya tinggal membersihkan registry. Buka regedit dengan cara Start->Run ketik regedit.
Cari string dalam registry yang mengandung kata mahadewa. CAranya tekan CTRL+F kemudian ketik mahadewa. Hapus deh semua string yang mengandung kata mahadewa...
Semoga virus mahadewa hilang dari komputer Anda dan tidak kembali lagi...
Semoga artikel ini bisa membantu rekan-rekan yang kesulitan akibat virus mahadewa
Thursday, September 20, 2007
How To Enable Autorun for Other Removable Media
How To Enable Autorun for Other Removable Media
Autorun can be enabled or disabled for all Removable media types, such as a floppy or Zip disk. Windows systems are configured to enable CD Notification, other removable media are by default disabled.
The System Properties User interface only exposes the CD Enable or Disable selection. The setting reflected in this dialog makes an entry in the System Registry. It is in this same location that other media types are configured.
Notes:
1. Modifiying the Registry is not for the inexperienced user. Anyone will tell you, be VERY careful.
2. The modifications made in this case use Hex not Decimal numbers. If you are unfamiliar with the Registry or the characteristics of base numbering and Hex, studying these topics prior to making these modifications is advisable.
To Modify these Registry Settings, Use Regedit and navigate to the following Key:
HKEY_CURRENT_USER
Software
Microsoft
Windows
CurrentVersion
Policies
Explorer
"NoDriveTypeAutoRun"
The default value for the setting is 95 0 0 0. Change the first byte to 91. Restart the computer to make the new setting take effect. You may have to right-click on the floppy and choose AutoPlay from the menu to see the AutoPlay behavior.
Autorun can be enabled or disabled for all Removable media types, such as a floppy or Zip disk. Windows systems are configured to enable CD Notification, other removable media are by default disabled.
The System Properties User interface only exposes the CD Enable or Disable selection. The setting reflected in this dialog makes an entry in the System Registry. It is in this same location that other media types are configured.
Notes:
1. Modifiying the Registry is not for the inexperienced user. Anyone will tell you, be VERY careful.
2. The modifications made in this case use Hex not Decimal numbers. If you are unfamiliar with the Registry or the characteristics of base numbering and Hex, studying these topics prior to making these modifications is advisable.
To Modify these Registry Settings, Use Regedit and navigate to the following Key:
HKEY_CURRENT_USER
Software
Microsoft
Windows
CurrentVersion
Policies
Explorer
"NoDriveTypeAutoRun"
The default value for the setting is 95 0 0 0. Change the first byte to 91. Restart the computer to make the new setting take effect. You may have to right-click on the floppy and choose AutoPlay from the menu to see the AutoPlay behavior.
Subscribe to:
Posts (Atom)