TIPS HTML
BIKIN SUBMIT BUTTON
Kebanyakan dari web developer pun pernah bertanya-tanya, bagaimana membuat suatu image menjadi submit button dari suatu form. Dan fungsi seperti ini memang ternyata telah dipakai pada beberapa Content Management System favorit, joomla misalnya, ketika anda melakukan suatu save item, entah itu article, ataupun product di virtuemart yang memanfaatkan component backendnya, disana terlihat sebuah image yang memiliki sebuah fungsi sebagai submit button. Ada 2 trik yang biasanya sering digunakan, pertama memanfaatkan tag html, dan yang terakhir memanfaatkan fungsi javascript sederhana.
Ya, kita coba terlebih dahulu untuk trik yang pertama ...
Buat sebuah file, namakan terserah anda, saya menamakannya imgbtn.html, kemudian isi didalamnya :
<html><head></head><body>
<form name="formulir" action="kirim.php" method="POST">
Nama : <input type="text" name="nama">
<input type="image" src="/submit_icon.jpg" alt="Submit button">
</form>
</body></html>
Yang memiliki fungsi intinya :
baris <input type="image" src="/submit_icon.jpg" alt="Submit button">
membuat sebuah input dengan type image.
kemudian, file kirim.php, file ini digunakan untuk menangkap apa yang telah dikirim oleh imgbtn.html, tentunya anda harus memiliki sebuah web server yang telah terinstall didalam pc anda untuk mencobanya. Tapi diakhir artikel html ini penulis menyediakan file demo dari artikel ini.
File kirim.php
< ?php
echo $_POST['nama'];
?>
Anda tidak dapat menggunakan fitur seperti hover button dalam trik yang pertama ini, tag input type='image' tidak mengizinkan anda untuk perubahan gambar ketika mouse over, ataupun ketika mouse out. Fitur perubahan image/gambar ketika mouse over atau mouse out didapatkan dengan menggunakan trik yang selanjutnya.
Kemudian trik yang terakhir, ini trik pengembangan dari trik sebelumnya. Jika trik yang pertama itu hanya membolehkan gambar yang statik, maka trik yang kedua ini anda dapat memasang fitur perubahan gambar ketika mouseover ataupun mouseout.
Sediakan sebuah file imgtbn2.html, berisi :
<html><head></head><body>
<form name="formulir" action="kirim.php" method="POST">
Nama : <input type="text" name="nama">
<a href="javascript:document.formulir.submit()"
onmouseover="document.formulir.sub_but.src='submit_icon.jpg'"
onmouseout="document.formulir.sub_but.src='submit_icon_hover.jpg'"
onclick="return val_form_this_page()">
<img src="/submit_icon_hover.jpg" border='0' alt="Submit this form" name="sub_but" />
</a>
</form>
</body></html>
trik yang terakhir ini, menggunakan tag <a> dan memanfaatkan fungsi javascript yang diembedkan.
Statement intinya :
onclick="return val_form_this_page()">
ketika image di klik maka kembalikan nilai yang terisi dalam form di document untuk kemudian di kirim ke action targetnya, yakni kirim.php.
Dengan trik ini
dan file kirim.php yakni file php untuk menangkap variable yang dikirim.
< ?php
echo $_POST['nama'];
?>
Sekian, anda dapat menggunakan trik ini untuk digunakan dalam melakukan development website anda. Terima kasih.
CROP GAMBAR DENGAN PHP
Tutorial kali ini akan bermain-main dengan image. Jadi jangan lupa siapkan dulu sebuah image untuk dijadikan kelinci percobaan. Siapkan sebuah gambar dengan nama “gambar1.jpg”. Letakkan gambar ini dalam satu folder dengan file PHPnya. Setelah itu buat script PHP dengan nama “crop.php”. Jika sudah, ketikkan script berikut :
crop.php
<?php
// temtukan lebar, tinggi, file yang mau dicrop, format nama file, dan penempatan foto setelah di crop
function cropImage($nw, $nh, $source, $stype, $dest) {
$size = getimagesize($source); // ukuran gambar
$w = $size[0];
$h = $size[1];
switch($stype) { // format gambar
case 'gif':
$simg = imagecreatefromgif($source);
break;
case 'jpg':
$simg = imagecreatefromjpeg($source);
break;
case 'png':
$simg = imagecreatefrompng($source);
break;
}
$dimg = imagecreatetruecolor($nw, $nh); // menciptakan image baru
$wm = $w/$nw;
$hm = $h/$nh;
$h_height = $nh/2;
$w_height = $nw/2;
if($w> $h) {
$adjusted_width = $w / $hm;
$half_width = $adjusted_width / 2;
$int_width = $half_width - $w_height;
imagecopyresampled($dimg,$simg,-$int_width,0,0,0,$adjusted_width,$nh,$w,$h);
} elseif(($w <$h) || ($w == $h)) {
$adjusted_height = $h / $wm;
$half_height = $adjusted_height / 2;
$int_height = $half_height - $h_height;
imagecopyresampled($dimg,$simg,0,-$int_height,0,0,$nw,$adjusted_height,$w,$h);
} else {
imagecopyresampled($dimg,$simg,0,0,0,0,$nw,$nh,$w,$h);
}
imagejpeg($dimg,$dest,100);
}
$gambar = "gambar1.jpg";
$gambar_crop = "gambar1crop.jpg";
// jalankan fungsi crop gambar
// lebar, tinggi, file yang di crop, format gambar, nama file setelah di crop
cropImage(225, 165, "$gambar", 'jpg', "$gambar_crop");
print "<h2>Image sebelum di crop : <br> <img src=$gambar> <br><br>";
print "Image setelah di crop : <br> <img src=$gambar_crop>";
?>
Selamat mencoba.........
Salam,
How To Setup Your Own DNS (Domain Name Server)
This is only a quick tutorial, there are literally hundreds of little tricks you can do with a DNS, but this will get your basics up and running. I'm assuming you want to setup a windows DNS server, but the principals will work for most servers.
You will need..
1) A domain name over which you have full control
2) DNS server software(Windows server always comes with one of these)
3) At least one fixed IP address, allthough two is highly desirable
4) An idea of what services you want on your server
The first thing you need to do is create your new domain entry. In windows this is called a "Zone" and you will have one for every domain name you have. Add your main domain in the forward lookup zone as a Primary zone, which will be in the format "Domainname.com", or .co.uk, or whatever, you shouldn't need any more details for this bit. Do *not* allow dynamic updates unless this is a local network DNS. Once it is created you will have 2 entry's under your new domain, "SOA"(Or Start of Authority) and "NS"(Or Name server). If you want a 100% compliant DNS then you should now follow the same process but adding a domain as a reverse lookup zone. Any changes you make to the forward lookup should have the "Update Reverse Lookup" option ticked if its available, if not you must update the reverse zone manually(This is very important).
Now edit the "NS" entry in your forward zone to "NS0.DomainName.Com", and set it to the relevant IP address. Add another (NS) record and set it to "NS1.DomainName.Com". If using 2 IP address, try to make NS0 the first IP. Now you need to configure the SOA entry in the forward lookup zone. The serial number should be changed to a date followed by a number in this format "YYYYMMDDnn", this is not required, but is advised by RIPE. The primary server will be the "NS0.domainname.com" entry you just made and the responsible person should be left for now. The refresh interval should be set somewhere between 1200 to 43200 seconds, the retry should be between 120-7200 seconds and the expires after should be around 2-4 weeks(I'll let you work out the seconds for that). The minimum TTL is quite important, and depending on what you are going to do with the domain, you might need to tweak this a bit. Typically a value between 1-3 hours should be used. Now go to your "Name server" settings in your SOA record(In windows this is a tab in the same window) remove the defaults, and add your two Name servers that you just setup. We will come back to the SOA record later, but for now we need to do some more stuff.
If you want a website, then your going to want the WWW. setting up. We will set it up as an "A" record, which means it is a separate top level record and will be populated separately from other entries. So add an "A" to your forward lookup zone and put the entry as "WWW", and set the IP address to wherever you want the website to be. This will be where the domain always goes, and it could be anywhere. Just make sure there is a web server waiting there for it. If you want FTP, then setup the same thing but with "FTP" in the entry. You will now also have to setup "A" records for the NS0 and NS1 name servers that you added previously, just make them the same as WWW and FTP, but make sure the IP addresses match the ones used for setting up the "NS" records. Also add a blank "A" record, this will make sure that "domainname.com" works as well as "www.domainname.com".
Now you should decide whether or not you want to have mail on this domain. It is Hegel advisable that you set one up, even if it just to catch domain mail about abuse or potential problems that might occur. You can find plenty of high quality free mail servers out there, but I would recommend "Mail Enable", its free and provides everything you would want, but if you want webmail you do have to pay something extra for it. We will now configure the MX records. Add an "A" name for your mail server, you can add 2 if you want, but for simplicity I would advise staying with 1. We will call ours "Mail.domainname.com", and point it to one of our IP addresses. Now add an "MX" record in the Forward Lookup zone, giving it the full "A" record you just entered "Mail.domainname.com", and do not setup a host or child domain, just leave it blank.
This next step isn't needed, but is again highly recommended.
Now to finish the SOA you need to add two more records. A "RP" entry, which is a Responsible Person, and they will be the contact point for domain complaints and a "MB" entry, which is a mailbox entry. The "MB" should just be pointed to the mail server domain name "Mail.domainname.com", and the "RP" should have the host or domain set to the name of your mail box. So for this server it will be "Tony.Domainname.com", and the mailbox will be set to the "MB" record you just made. Don't worry about the RP address having no "@" in it, this is the expected format for an "RP" entry. You will now have to go back into the SOA and change the responsible person to the new "RP" record you just made.
And thats it, your done! You can add as many "A" records as you like to point to other web servers, or a multitude of FTP sites. And you can add "CNAME" records to basically point to another name, usually an "A" record, like an alias.
Now before you switch your domain on, you need to check that the server is performing properly. So go to www.dnsreport.com, and run the report on your domain "domainname.com", and it will give you a very detailed report of any problems, and even a short description of how to fix the problems. If all is OK, then you are ready to go live. If your domain name is new, or not currently hosted anywhere then the first thing you should do is re-point the domain at your new server. You will typically do this with the provider who owns the domain, and it will be different with all hosts. But the basic settings are the same. You will be asked for at least 2 name servers and ip addresses to go with them. Just put in "NS0.domainname.com" and "NS1.domainname.com" and put in the correct IP addresses. Make sure you do not mess this up, as changes to your main NS servers could potentially take several days to straighten themselves out. Update these settings, and then sit back and wait. You can do a whois on the main DNS server of your domain provider to check if the settings have worked, but again this doesn't always work. For the big 3 domains(.com .net .org) you can do a whois on the network associates site to see the changes instantly. You can also track the progress of the domain changes by doing an NSLookup in dos, like this...
c:\nslookup ns0.domainname.com NS0.yourprovidersdns.com
That will give you the entries your domain provider has
c:\nslookup www.domainname.com ns0.domainname.com
And this will tell you if the changes for your domain have gone through to your ISPs DNS yet. It should give you back the IP address of your new DNS server.
You should always make sure your server is backed up, and that you refresh or update the DNS when you are making changes.
CARA BIKIN SCRIPT PERINGATAN KELUAR MASUK SITUS
<body
onLoad="alert('Selamat Datang Silakan Nikmati Menu Yang
Ada..!!')><body unonLoad="alert('Terima Kasih Atas Kunjungannya,. .
. !!')">
KUMPULAN KODE HTML
Admin Blog mau membahas Sedikit
mengenal tentang kode-kode HTML.
Udah tau kan HTML itu apa?
HTML=Hyper Text Markup Language atau lebih gampangnya Bahasa
pemograman atau untuk mendesigner di sebuah Web, Wap/Blog. Dan postingan kali
ini saya buat khusus yang belum tau saja.. mungkin berguna untuk Newbie/Pemula
yang ingin membangun sebuah web, wab/blog atau apalah yang mendukung dengan
HTML. Dan kodenya ada di dalam Teks Area.. Silahkan sobat copy paste saja..!!!
Dan berikut adalah beberapa kumpulan Kode HTML.
Kode untuk membuat sepasi/Pindah baris:
Membuat tulisan tebal: TEBAL:
Membuat tulisan besar: BESAR
Membuat tulisan bergaris tengah: GARIS TENGAH
Membuat tulisan bergaris bawah: GARIS BAWAH
Membuat tulisan berbedip: BERKEDIP
Membuat tulisan berjalan kanan ke kiri: BOLAK BALIK
Membuat tulisan rata kiri:
Rata Kiri
Membuat tulisan rata tengah:
Rata Tengah
Membuat tulisan rata kanan:
Rata Kanan
Memberi komentar atau keterangan. Kalimat yang terletak pada
tag kontiner ini tidak akan terlihat pada browser:
Membuat teks dengan link : LINK
Membuat nama bagian yang didefinisikan pada link pada
halaman yang sama:
Script awal dari Java applets:
Membuat daerah yang dapat diklik (link) pada image map:
Membuat atribut teks jenis default, ukuran dan font:
Memberi (suara latar) background sound pada halaman web:
Tag awal untuk melakukan berbagai pengaturan terhadap text;
visited link:
Membuat caption pada tabel:
Meletakkan komentar pada halaman web tidak akan nampak pada
browser:
Indents teks:
Represents different sections of text:
Menambahkan sound or file avi ke halaman web:
Membuat teks berwarna dan jenis ukurannya:
Mendefinisikan input form:
Mendefinisikan frame:
Mendefinisikan attribut halaman yang akan menggunakan frame:
Mendefinisikan head document:
Membuat garis horizontal:
HORIZONTAL
Membuat garis horizontal dengan jenis ukuran:
HORIZONTAL
Dokumen HTML:
Membuat teks miring: MIRING
Menampilkan gambar di di web, wap/blog:
Mendefinisikan input field pada form:
Membuat bullet point atau baris baru:
TEKS
Mendefinisikan client-side map:
Mencegah ganti baris pada teks atau images:
Jika browser anda tidak mendukung frame:
Mendefinisikan awal dan akhir list:
Ganti paragraf baru:
Membuat teks dengan ukuran huruf yang sama:
Mendefinisikan awal script dan akhir script:
Membuat tabel:
Kolom pada tabel:
Mendefinisikan title:
Baris pada tabel:
Memasang RSS di halaman Wap/Web: Vampire MWB
Penting!!
Agar Kode di atas dapat bekerja 100% Harap Gunakan Opera
Mobile Jika di akses Via Opera Mini ada beberapa kode yang tidak berfungsi
Seperti Code untuk Teks Berjalan, Teks Bolak Balik, Teks Berkedip2, dsb.
KUMPULAN SCRIPT UNTUK DESAIN BLOG
Ada beberapa script yang lumayan dapat menunjang berdirinya
blog dengan menempatkan script tertentu untuk keperluan desain Blog dan tak
kalah pentingnya dengan Widget itu sendiri.Karena pada dasarnya Blog/ Web
adalah merupakan kumpulan Script yang terangkai sehingga membentuk satu
kesatuan yang utuh hingga terbentuk yang namanya Blog, Wordpress, Multiply dan
lain-lain.
Berikut ini adalah Scriptnya :
1. Button
a. Scipt 1
Kode :
<button>Hallo Dunia</button>
Hasil :
Hallo Dunia
b. Script 2
Kode :
<form action="">
<input type="button" value="Hello
world!">
</form>
Hasil :
2.Text Fields / Area Input
Kode :
<form action="">
Nama depan: <input type="text" name="Nama
depan"><br>
Nama belakang: <input type="text"
name="Nama belakang">
</form>
<p><b>Catatan:</b> Form tidak tampak. Juga
default karakter max. 20 karakter.</p>
Hasil :
Nama depan:
Nama belakang:
Catatan: Form tidak tampak. Juga default karakter max. 20
karakter.
3. Password Area
Kode :
<form action="">
Username: <input type="text"
name="user"><br>
Password: <input type="password"
name="password">
</form>
<p><b>Note:</b> Karakter yang ditampilkan
tertutup dan tampil * atau bentuk lain.</p>
Hasil :
Username:
Password:
Note: Karakter yang ditampilkan tertutup dan tampil *,. atau
bentuk lain.
4. Checkbox / kotak centang
Kode :
<form action="">
<input type="checkbox" name="vehicle"
value="Bike">I have a bike<br>
<input type="checkbox" name="vehicle"
value="Car">I have a car
</form>
Hasil :
I have a bike
I have a car
5. Radio Button/ Centang Bulat
Kode :
<form action="">
<input type="radio" name="sex"
value="male">Male<br>
<input type="radio" name="sex"
value="female">Female
</form>
<p><b>Note:</b> Ketika Tombol Radio di cek
maka akan ter-Cek, artinya semua yang berhubungan dengan yang di cek jadi
terikat.</p>
Hasil :
Male
Female
Note: Ketika Tombol Radio di cek maka akan ter-Cek, artinya
semua yang berhubungan dengan yang di cek jadi terikat.
6. Simple Drop Down Menu
Kode :
<form action="">
<select name="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="fiat">Fiat</option>
<option value="audi">Audi</option>
</select>
</form>
Hasil :
7. Border/ Pembatas sekitar Data
Kode :
<form action="">
<fieldset>
<legend>Data Pribadi:</legend>
Nama: <input type="text"
size="30"><br>
E-mail: <input type="text"
size="30"><br>
Tangga lahir: <input type="text"
size="10">
</fieldset>
</form>
Hasil :
Personal information:
Name:
E-mail:
Date of birth:
8. Send email form
Kode :
<h3>Kirim e-mail ke
seseorang@contoh.com:</h3>
<form action="MAILTO:seseorang@contoh.com"
method="post" enctype="text/plain">
Name:<br>
<input type="text" name="nama"
value="Nama anda"><br>
E-mail:<br>
<input type="text" name="email"
value="Alamat email"><br>
Comment:<br>
<input type="text" name="Comment"
value="Komentar anda" size="50"><br><br>
<input type="submit"
value="Kirim">
<input type="reset"
value="Batalkan">
</form>
Hasil :
Kirim e-mail ke seseorang@contoh.com:
Name:
E-mail:
Comment:
9. Audio Control
Kode :
<audio controls>
<source src="horse.ogg"
type="audio/ogg">
<source src="horse.mp3"
type="audio/mpeg">
Your browser does not support the audio element.
</audio>
Hasil :
10. Video Control
Kode :
<button onclick="getAudioTracks()"
type="button">Cari Audio Track yang tersedia</button>
<br>
<video id="video1"
controls="controls">
<source src="mov_bbb.mp4"
type="video/mp4">
<source src="mov_bbb.ogg"
type="video/ogg">
Your browser does not support HTML5 video.
</video>
<script>
myVid=document.getElementById("video1");
function getAudioTracks()
{
alert(myVid.audioTracks.length);
}
</script>
<p>Video courtesy of <a
href="http://www.bigbuckbunny.org/" target="_blank">Big
Buck Bunny</a>.</p>
Hasil :
Cari Audio Track Yang Tersedia
Video courtesy of Big Buck Bunny.
CARA SCRIPT MEMBUAT SMS GRATIS DI BLOG
<iframe name="I2"
src="http://sms-online.web.id/widget"
width="270" height="350"> not support
</iframe>
<a
href='http://www.lokijuaoao.co.cc/2012/01/sms-gratis-htmljava-script-nya.html'
>Cara Buat Widget Ini</a>
TIPS EDIT TEMPLATE HTML BLOG MUDAH DAN AMAN
Blogger adalah layanan blog gratis yang memberikan keleluasaan bagi user untuk mengedit tampilan dan fungsi blognya. Secara mendasar, Blogger berplatform HTML/XML dengan didukung pengaturan tampilan CSS dan fungsi-fungsi javascript. Kita mengenal adanya fitur edit template HTML Blogger dimana kita dapat dengan bebas melakukan modifikasi, desain ulang, hack, penambahan fitur dari pihak ketiga (third party) berupa widget, dan lain-lain.
Note: Fitur edit HTML Blogger diakses melalui dashboard > design/rancangan > edit HTML.
Beberapa kasus saya temui dari pengunjung dan beberapa teman blogger (khususnya newbie) yang mengeluh karena gagal memasukkan hack/script tambahan, tidak menemukan kode tertentu seperti yang ada di tutorial, bahkan ada pula yang templatenya "kacau" karena salah mengedit template HTMLnya.
Tips ini saya buat untuk memberi masukan dan ide dalam melakukan editing Template HTML agar hasilnya sesuai dengan yang diinginkan. Semoga bermanfaat.
1. Memahami elemen dasar dari template blogger/blogspot sangat penting, pada dasarnya ada 5 elemen penting pada template Blogger yang hampir sama dengan elemen dasar web HTML pada umumnya:
a. HTML/XML tag, yang menandakan bagian dari keseluruhan halaman, diawali dengan <html> dan diakhiri dengan </html>. Khusus untuk tag-tag XML, untuk template Blogger dan HTML editor setelah tahun 2007, selalu diakhiri dengan /, contoh: <data:post.body/>.
b. Head tag, merupakan bagian dari keseluruhan head halaman, di dalamnya dimasukkan aturan-aturan yang mengatur banyak hal, termasuk tampilan (CSS), diawali dengan <head> dan diakhiri dengan </head>.
c. Body tag, merupakan isi dari halaman web/blog, di dalamnya terdapat konten/isi inti halaman, termasuk pula widget-widget yang menjadi bagian dari isi halaman, diawali dengan <body> dan diakhiri dengan </body>.
d. CSS, elemen pengatur tampilan halaman, baik dari segi warna, font, posisi, lebar luas, dan masih banyak lagi. Letaknya diantara <b:skin><![CDATA[ dan ]]></b:skin> dan berada pada bagian head. Pada beberapa kasus kode CSS juga dimasukkan tepat di atas </head> sebagai aturan tambahan.
e. Javascript, merupakan elemen yang sebenarnya mengandung software (web widget) yang berisi perintah-perintah tertentu. Biasanya digunakan untuk memasukkan elemen tambahan seperti popular post, auto readmore, dan sebagainya. Ada dua jenis javascript yang dapat digunakan: internal, yang diupload dan di-host langsung di Blogger, dan eksternal, yang diupload dan dihosting di server lain. Letaknya relatif, tergantung jenisnya. Untuk yang berjenis widget biasanya ada di dalam body.
2. Biasakan back up template terlebih dahulu sebelum editing, klik "Backup Full Template" di atas kotak "Edit HTML". Jika ada kesalahan dan anda tidak tahu script mana yang harus dibenahi, anda dapat dengan mudah mengupload file back-up template dan mengembalikan seperti semula.
3. Perhatikan benar-benar tutorial yang dibaca, jangan sampai ada yang terlewatkan. Sebagai contoh, jika harus mencentang/klik "expand widget templates", maka pastikan sudah melakukannya. Fungsi dari perintah tersebut adalah untuk membuka bagian-bagian body yang mengandung widget. Jika tidak dicentang, bagian-bagian tersebut akan "disembunyikan" oleh Blogger karena memang ditujukan untuk keamanan.
4. Ketika meng-copy script dari halaman tutorial yang anda baca, pastikan semua bagian script sudah tercopy atau jangan ada bagian selain dari script yang ikut ter-copy.
5. Jika harus mengubah isi script/kode, misalnya mengganti url blog/feed, value, dan lain-lain, salin/paste terlebih dahulu kode/script tersebut ke editor semacam notepad, wordpad, word. Setelah melakukan pengubahan script dan memastikan semuanya beres, baru masukkan script tersebut ke template HTML.
6. Agar lebih mudah dan cepat mencari kode tertentu seperti yang diminta di dalam tutorial, gunakan fitur pencarian browser, tekan Ctrl + F, setelah kotak pencarian muncul masukkan kode yang ingin dicari dan tekan next (enter).
7. Perhatikan benar-benar istilah di bawah/setelah serta di atas/sebelum, itu berarti letakkan kode benar-benar setelah atau sebelum kode yang dicari. Kode-kode dibaca oleh browser dari kiri ke kanan sebagai urutan. Atas bawah hanya digunakan untuk memberi kenyamanan dalam mengurutkan. Bagi browser, dia tetap dibaca dari kiri ke kanan. Contoh:
<b:include data='top' name='status-message'/><data:adStart/>
Kita lihat di situ ada 2 tag bersisian, jika harus memasukkan tag/kode baru <b:include data='posts' name='breadcrumb'/> di bawah/setelah <b:include data='top' name='status-message'/>, itu berarti anda harus meletakkan benar-benar setelahnya, sehingga <data:adStart/> harus digeser posisinya, atau kode/tag baru disisipkan di antara keduanya, jadinya:
<b:include data='top' name='status-message'/>
<b:include data='posts' name='breadcrumb'/>
<data:adStart/>
atau,
<b:include data='top' name='status-message'/><b:include data='posts' name='breadcrumb'/><data:adStart/>
8. Jika memang masih belum yakin dan terbiasa, buatlah blog baru yang fungsinya untuk eksperimen dan uji coba script (trial and error). Anda bisa dengan bebas melakukan uji coba tanpa ada ketakutan template blog anda rusak atau pembaca kabur. Agar hasilnya akurat, gunakan jenis template yang sama seperti blog anda. Saya memiliki 3 blog untuk eksperimen dan mencoba script baru sehingga bisa dengan bebas melakukan apapun tanpa rasa khawatir.
9. Khusus untuk hack/script tertentu di mana tampilannya bisa langsung dilihat di homepage/beranda (misalnya: memasang readmore atau background), setelah memasukkan script dan selesai meng-edit, jangan langsung di-save dulu. Gunakan/klik fitur preview/pratinjau untuk melihat hasilnya. Jika sudah beres dan sesuai yang diinginkan, baru lah di-save.
10. Pada beberapa template, ada yang bagian tertentunya di apit oleh tag paragraf: <p> dan </p>, sehingga ketika bagian tertentu tersebut dicari, seolah tidak ketemu. Jika template anda berjenis seperti ini, jangan menyerah terlebih dahulu.
Contoh:
Ketika harus mencari <data:post.body/>, dan tidak ketemu, maka ada kemungkinan tag paragraf mengapitnya (<p><data:post.body/></p>), atau ada beberapa kondisi lain (misalnya, anda lupa mencentang "expand widget templates"). Agar lebih mudah lagi, jangan sertakan < dan /> ketika mencari (Ctrl + F), cukup gunakan data:post.body saja.
Masih ada beberapa lagi yang hendak saya sampaikan, namun sekiranya 10 poin di atas cukup lengkap untuk menjadi tips dan petunjuk agar lancar dan aman dalam mengedit Template HTML Blogger/Blogspot. Selanjutnya, sobat Blogger dapat mengembangkan dan membiasakan diri dengan template dan template editor Blogger serta melakukan editing secara mandiri (Do It Yourself [DIY]). Keep on learning and learning.
Salam.
TRICK HOMEPAGE NEVER BEING CHANGED
Some websites illegally modify your registry editor and set their website as default home page, for stop this,
1. Right-click on the Internet Explorer icon on your desktop and select "Properties".
2. In the "Target" box you will see "C:\Program Files\Internet
Explorer\IEXPLORE.EXE".
3. Now by adding the URL of the site to the end of this it overrides any
Homepage setting in internet options:
"C:\Program Files\Internet Explorer\IEXPLORE.EXE" www.shareordie.com
KUMPULAN SCRIPT UNIK UNTUK BLOG
1.LIKE FACEBOOK BUTTON
<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2Frodasautblogspotcom%2F376305502496759&width=350&height=100&colorscheme=light&layout=standard&action=like&show_faces=true&send=true&appId=121685671335210" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowtransparency="true"></iframe>
2.FOLLOW TWITTER BUTTON
<a href="https://twitter.com/Rodasaut1" class="twitter-follow-button" data-show-count="false">Follow @rodasaut1</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
3.NEW POST LIVE
<style type="text/css">
#rp_plus_img{height:377px;}
#rp_plus_img li {height:60px;padding:5px;list-style:none;
background-color:#ffffff;
border:solid 1px #000000;}
#rp_plus_img a{color:#00000;}
#rp_plus_img .news-title{display:block;font-weight:bold ;margin-bottom:4px;font-size:11px;
text-align:justify;
-moz-border-radius: 5px;}
#rp_plus_img img{float:left;margin-right:14px;padding:4px;border:solid 1px #00000;width:55px;height:55px;}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript">
</script>
<script src="https://sites.google.com/site/unwanted86/javascript/recentpost.js" type="text/javascript">
</script>
<script type="text/javascript">
var speed = 1500;
var pause = 3500;
$(document).ready(function(){
rpnewsticker();
interval = setInterval(rpnewsticker, pause);
});
</script>
<ul id="rp_plus_img"><script>
var numposts = 5;
var numchars = 0;
</script> <script src="/feeds/posts/default?orderby=published&alt=json-in-script&callback=rpthumbnt">
</script> </ul>
<small><a
4.LARGE VISITOR GLOBE
<div style="text-align:center; margin:0px; padding:0px; width:260px;"><embed src="http://ra.revolvermaps.com/f/g.swf" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" wmode="window" allowscriptaccess="always" allownetworking="all" width="280" height="280" flashvars="m=8&i=0eqsjubjp0w&r=false&v=true&b=000000&n=false&s=300&c=00ff6c"></embed><br /><img src="http://ja.revolvermaps.com/c/0eqsjubjp0w.gif" width="1" height="1" alt="" /><a href="http://rodasaut.blogspot.com/?target=enlarge&%3Bi=0eqsjubjp0w&%3Bcolor=00ff6c&%3Bm=8"></a></div>
<small><a href="http://rodasaut.blogspot.com/2013/08/cara-memasang-visitor-versi-globe.html" target="_blank">ambil script widget ini disini</a></small>
5.FLAG COUNTER VISITORS
<a href="http://info.flagcounter.com/1mck"><img src="http://s08.flagcounter.com/count/1mck/bg_383838/txt_FFFFFF/border_000000/columns_1/maxflags_26/viewers_pemirsa/labels_1/pageviews_1/flags_0/" alt="Flag Counter" border="0" /></a>
<small><a href="http://rodasaut.blogspot.com/2013/08/cara-memasang-visitor-unik-di-blog_29.html" target="_blank">ambil script widget ini disini</a></small>
6.SKULL CLOCK
<script src="http://www.clocklink.com/embed.js"></script><script type="text/javascript" language="JavaScript">obj=new Object;obj.clockfile="8005-gray.swf";obj.TimeZone="JOG";obj.width=150;obj.height=150;obj.wmode="transparent";showClock(obj);</script>
<small><a href="http://rodasaut.blogspot.com/2013/08/cara-memasang-jam-unik-di-blog.html" target="_blank">ambil script widget ini disini</a></small>
KETERANGAN: cara pasang script2 diatas pastinya udah pada tau kan? yang belum tau ni aku kasi tau,,
1. masuk aku blog sobat
2.pilih tata letak
3.tambah gedget
4.copas script yang kamu mau (yang diatas)
5.beri nama dansimpan,,
No comments:
Post a Comment