Posts: 544
Threads: 14
Joined: Dec 2010
Reputation:
8
01-05-2011, 02:25 PM
(This post was last modified: 01-05-2011, 02:29 PM by febrian.)
ane nyumbang satu
koding dibawah ini berfungsi untuk mengerakan tulisan, adapun perintah yang digunakan yaitu marquee
marquee terdiri dari 4 pilihan up,down,left,right
komponen-nya
scrolldelay - digunakan untuk mengatur kecepatan
onMouseOver & onmouseout - berfungsi untuk memberi perintah berhenti dan mulai
hanya itu saja penjelasan dari saya jika ada yang lebih tau silakan ditambahkan
silakan coba koding-nya
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>belajar html dan php</title>
</head>
<body>
<table width="200" border="1">
<tr>
<td><table width="205"
height="107" border="1" bordercolor="#ffffff">
<tbody>
<tr>
<th scope="col" align="center"
valign="top"><marquee direction="up" scrollamount="2" scrolldelay="60"
onmouseout="this.start(1)" onMouseOver="this.stop(2)" width="200"
height="200">
<p align="center">marquee jalan keatas </p>
</marquee></th>
</tr>
</tbody>
</table></td>
<td><table width="205"
height="109" border="1" bordercolor="#ffffff">
<tbody>
<tr>
<th scope="col" align="center"
valign="top"><marquee direction="down" scrollamount="2" scrolldelay="60"
onmouseout="this.start(1)" onMouseOver="this.stop(2)" width="200"
height="200">
<p align="center">marquee jalan kebawah </p>
</marquee></th>
</tr>
</tbody>
</table></td>
<td><table width="205"
height="105" border="1" bordercolor="#ffffff">
<tbody>
<tr>
<th height="99" align="center"
valign="top" scope="col"><marquee direction="left" scrollamount="2" scrolldelay="60"
onmouseout="this.start(1)" onMouseOver="this.stop(2)" width="200"
height="200">
<p align="center">marquee jalan ke kekiri </p>
</marquee></th>
</tr>
</tbody>
</table></td>
<td><table width="205"
height="108" border="1" bordercolor="#ffffff">
<tbody>
<tr>
<th height="96" align="center"
valign="top" scope="col"><marquee direction="right" scrollamount="2" scrolldelay="60"
onmouseout="this.start(1)" onMouseOver="this.stop(2)" width="200"
height="200">
<p align="center">marquee jalan kekanan </p>
</marquee></th>
</tr>
</tbody>
</table></td>
</tr>
</table>
</body>
</html>
Posts: 149
Threads: 19
Joined: Aug 2009
Reputation:
8
PHPnya mana neh :P
Intinya ada 2 jenis cara penulisan klo kita mau gunakan PHP dan HTML
1. PHP didalam HTML
[code]
<html>
<head><title>PHP didalam HTML</title></head>
<body>
<?php echo "PHP didalam HTML"; ?>
</body>
</html>
2. HTML didalam PHP
<?php echo "<h1>HTML didalam PHP</h1>"; ?>
Biasanya kebanyakan gunain cara yang pertama... Tapi ada beberapa orang yang gunain cara kedua tapi yang dia tonjolkan biasanya bukan layout tampilannya tapi lebih kepada fungsinya...