Laman

Kamis, 14 Maret 2013

Kode HTML Agar Link Banner Membuka Sendiri Saat Tersentuh Kursor Mouse

Kode HTML Agar Link Banner Membuka Sendiri Saat Tersentuh Kursor Mouse

 Caranya dengan menambahkan atribut onmouseover="window.location=this.href"

Contohnya :

<a href="URL target" onmouseover="window.location=this.href" alt="keterangan banner" title="judul link banner"><img src="URL banner" /></a>

<a href="http://pagys.blogspot.com/" onmouseover="window.location=this.href" alt="Download Film, Game dll" title="Download Film, Game dll"><img src="http://2.bp.blogspot.com/-rgvy0SB9OtU/UNZ4f4WQCOI/AAAAAAAAALs/3iwSi2xoWzM/s1600/DOWNLOAD.jpg" /></a>

  Lihat hasilnya dibawah:

 

Tidak ada komentar:

Posting Komentar