Senin, 17 Mei 2010

Membuat Map image menggunakan JS

1.buat file html lg,..biasa namany test.html:
2.lalu ketikan kode ky dbawah nih:








alt="Planets" usemap="#planetmap" />



onMouseOver="writeText('The Sun and the gas giant planets like Jupiter
are by far the largest objects in our Solar System.')"
href ="sun.htm" target ="_blank" alt="Sun" />


onMouseOver="writeText('The planet Mercury is very difficult to study
from the Earth because it is always so close to the Sun.')"
href ="mercur.htm" target ="_blank" alt="Mercury" />


onMouseOver="writeText('Until the 1960s, Venus was often considered a
twin sister to the Earth because Venus is the nearest planet to us, and
because the two planets seem to share many characteristics.')"
href ="venus.htm" target ="_blank" alt="Venus" />







3.langsung keluar gambar,.ny kan...hehe
4.selamat mencoba ok...

Tidak ada komentar:

Posting Komentar