10/10/2018, 09:23
Xin code chữ chạy
Mấy pác cho em xin cái code html để làm chữ chạy ở đầu trang web, màu chữ và màu nền do mình chọn
Bài liên quan
chắc là được rùi ^^
code hoàn thiện luôn nha mấy Pác, chứ em mới tập làm thôi
<font color="#FF0000"><span style="background-color: #00FF00; font-size:36px"><marquee direction="right" scrolldelay="0" scrollamount="100">Chử chạy tùm lum</marquee></span></font>
cứ thế mà làm ^^
nguyên nà :
<html>
<head>
<title>chử chạy</title>
</head>
<body>
<font color="#FF0000"><span style="background-color: #00FF00; font-size:36px">
<marquee direction="right" scrolldelay="5" scrollamount="5">Chử chạy tùm lum</marquee></span></font>
</body>
</html>
<?php
// ket noi CSDL, chon Database, ... thì bạn tự làm (dễ lắm) !
$query = mysql_query("select `noidung` from bang where `id` = 1;"); // bạn truy xuất dữ liệu ra, câu lệnh trên là ví dụ thôi
$fetch = mysql_fetch_array($query);
$value = $fetch***91;'noidung'***93;;
echo '<font color="#FF0000"><span style="background-color: #00FF00; font-size:36px"><marquee direction="right" scrolldelay="0" scrollamount="100">'
. $value
.'</marquee></span></font>';
// ngat ket noi
?>