. Gambar bergerak marquee

Minggu, 25 September 2011



Contoh 1 :

kode script
<marquee align="center" direction="up" height="200" onmouseout="this.start()" onmouseover="this.stop()" scrollamount="2" width="100%">

<a href="http://s1086.photobucket.com/albums/j445/jemyalfarizi/?action=view&amp;current=MYBABY.jpg" target="_blank"><img alt="Photobucket" border="0" height="300" src="http://i1086.photobucket.com/albums/j445/jemyalfarizi/MYBABY.jpg" width="160" /></a>

<a href="http://s1086.photobucket.com/albums/j445/jemyalfarizi/?action=view&amp;current=RAFI.jpg" target="_blank"><img alt="Photobucket" border="0" height="300" src="http://i1086.photobucket.com/albums/j445/jemyalfarizi/RAFI.jpg" width="160" /></a>
</marquee>



 Hasilnya seperti ini :



Photobucket

Photobucket




Contoh 2:  berhenti bila disentuh mouse

kode script
<table border="10" cellpadding="3" height="135" style="width: 195px;"><tbody> <tr> <td> <marquee align="center" direction="up" height="132" onmouseout="this.start()" onmouseover="this.stop()" scrollamount="2" width="192">

<a href="http://s1086.photobucket.com/albums/j445/jemyalfarizi/?action=view&amp;current=MYBABY.jpg" target="_blank"><img alt="Photobucket" border="0" height="300" src="http://i1086.photobucket.com/albums/j445/jemyalfarizi/MYBABY.jpg" width="160" /></a>

<a href="http://s1086.photobucket.com/albums/j445/jemyalfarizi/?action=view&amp;current=RAFI.jpg" target="_blank"><img alt="Photobucket" border="0" height="300" src="http://i1086.photobucket.com/albums/j445/jemyalfarizi/RAFI.jpg" width="160" /></a>
</marquee></td> </tr> </tbody></table>





Hasilnya seperti ini :

     JAGOAN NEON


Photobucket

Photobucket




 Contoh 3 : dengan  background warna

Hasilnya :




Photobucket

Photobucket



Untuk menambahkan background warna sobat tinggal menambahkan kode yang diberi tanda merah setelah kode berwarna biru" disini saya menggunakan background warna Orange" <table border="10" cellpadding="3" height="135" width="195" bgcolor="orange" />

Cukup dimengerti bukan??skrng sobat bisa mencobanya, SEMOGA berhasil

Jangan lupa Commentnya sob...Dan lihat artikel lainnya :