Hiệu ứng tiêu đề bài viết chạy ngang (hoặc chữ chạy ngang, marquee text) là một dạng hiệu ứng giúp dòng chữ tự động lướt từ phải sang trái (hoặc từ trái sang phải). Hiệu ứng này thường dùng để thông báo tin nóng, chạy chữ trong video hoặc làm bảng thông báo trên website.
1. Đăng nhập vào Blogger.
2. Design\ Layout\ Add a gadget\ HTML/JavaScript Add\
Trong muc Title bỏ trống
Trong mục nội dung nhập code sau :
<style type="text/css">
.hotnews{
height: 27px;
padding : 0 0 0 100px;
clear : both;
list-style-type : none;
background : #f9f9f9 url(http://i1134.photobucket.com/albums/m604/bryanliem/3625026490_56322aeda3_o.gif) no-repeat left;
border-top : 2px solid #eeeeee;
border-right : 2px solid #cccccc;
border-bottom : 2px solid #cccccc;
border-left : 1px solid #eeeeee;
}
</style>
<div class="hotnews">
<marquee direction="left" onmouseover="this.stop()" width="100%" onmouseout="this.start()" scrollamount="4" align="center">
<script language="JavaScript">
showRandomImg = true;
tablewidth = 392;
cellspacing = 1;
borderColor = "#30a1db";
bgTD = "#fff";
imgwidth = 60;
imgheight = 60;
fntsize = 12;
acolor = "#E67C15";
aBold = true;
icon = " » ";
text = "no";
showPostDate = false;
summaryPost = 100;
summaryFontsize = 12;
summaryColor = "#000";
icon2 = " » ";
numposts = 15;
label = "Love";
home_page = "http://liemnguyenngoc.blogspot.com/";
</script>
<script src="http://bryanliem.googlecode.com/files/nb-post.js" type="text/javascript"></script>
</marquee>
</div>
.hotnews{
height: 27px;
padding : 0 0 0 100px;
clear : both;
list-style-type : none;
background : #f9f9f9 url(http://i1134.photobucket.com/albums/m604/bryanliem/3625026490_56322aeda3_o.gif) no-repeat left;
border-top : 2px solid #eeeeee;
border-right : 2px solid #cccccc;
border-bottom : 2px solid #cccccc;
border-left : 1px solid #eeeeee;
}
</style>
<div class="hotnews">
<marquee direction="left" onmouseover="this.stop()" width="100%" onmouseout="this.start()" scrollamount="4" align="center">
<script language="JavaScript">
showRandomImg = true;
tablewidth = 392;
cellspacing = 1;
borderColor = "#30a1db";
bgTD = "#fff";
imgwidth = 60;
imgheight = 60;
fntsize = 12;
acolor = "#E67C15";
aBold = true;
icon = " » ";
text = "no";
showPostDate = false;
summaryPost = 100;
summaryFontsize = 12;
summaryColor = "#000";
icon2 = " » ";
numposts = 15;
label = "Love";
home_page = "http://liemnguyenngoc.blogspot.com/";
</script>
<script src="http://bryanliem.googlecode.com/files/nb-post.js" type="text/javascript"></script>
</marquee>
</div>
👉 Những Code học thêm khi làm blogger
| Tên Code | Mã Nguồn |
|---|---|
| Danh sách |
<ul> <li>Mục 1</li> <li>Mục 2</li> </ul> |
| Danh sách số |
<ol> <li>Bước 1</li> <li>Bước 2</li> </ol> |
| Canh giữa |
<div style="text-align: center;"> Nội dung </div> |
| Đổi màu chữ |
<span style="color: red;"> Màu đỏ </span> |
| Tăng cỡ chữ |
<span style="font-size: 24px;"> Chữ lớn </span> |
🔗 Bài viết liên quan