Sebagai contoh saya ingin menampilkan halaman 4shared di artikel seperti ini:
Keren bukan?
Dan inilah kode untuk menampilkan iframe seperti diatas:
<iframe src="http://m.4shared.com/" width="100%" height="400">
Browser anda tidak support frame
</iframe>
iframe memiliki beberapa atribut. Dalam contoh diatas saya menggunaka atribut SRC untuk menentukan halaman apa yang ingin dimuat, WIDTH adalah lebar frame-nya dan HEIGHT adalah tinggi.
Selain itu ada beberapa atribut lain yaitu:
| Attribute | Value | Description | Dtd |
align |
|||
| left | Deprecated. Use styles instead. Specifies the alignment of an iframe according to surrounding elements | TF | |
| right | |||
| top | |||
| midle | |||
| bottom | |||
frameborder |
|||
| 1 | Specifies whether or not to display a border around an iframe | TF | |
| 0 | |||
height | |||
| pixel | Specifies the height of an iframe | TF | |
| % | |||
longdesc | |||
| URL | Specifies a page that contains a long description of the content of an iframe | TF | |
marginheight |
|||
| pixels | Specifies the top and bottom margins of an iframe | TF | |
marginwidth |
|||
| pixels | Specifies the top and bottom margins of an iframe | TF | |
name |
|||
| name | Specifies the name of an iframe | TF | |
scrolling |
|||
| yes | Specifies whether or not to display scrollbars in an iframe | TF | |
| no | |||
| auto | |||
src |
|||
| URL | Specifies the URL of the document to show in an iframe | TF | |
width |
|||
| pixel | Specifies the width of an iframe | TF | |
| % |
Mudah-mudahan bermanfaat ya


Mengingatkan ku pada ibu... ingin ku bertemu dia.....
BalasHapussipp lah
BalasHapusnetworkanimenewes
animemania
film animasi
healty
trick
baca manga
ilmu pengetahuan
back link
jualan online