Halaman

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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3F8mSDy1pmCH9RRAiYZTpwKNMhPcsNLYNSlU5_U1dZnFSgJ4BkBgrIS5ECf1g8Dr8qe8F3JhMW0cboKBKdHzpqwKfgOSm3A3SSEZW_3lLZZ8Sn7W3jVKlG0Z1QPVE46rgxqJ7UrzMJ5g/s1600/DOWNLOAD.jpg" /></a>

  Lihat hasilnya dibawah:

 

Tidak ada komentar:

Posting Komentar