1. Đăng nhập vào trang quản trị Joomla
2. Phần mở rộng > Quản lý module > Tạo mới
Extensions > Module > New
3.1 Chọn mod_custom.
Sau đó chèn đoạn mã sau vào phần soạn thảo tùy chỉnh
Mã CSS:
<style type="text/css">
.center{text-align:center;}
.cActive
{
background-image:url(bg_active.gif);
font-family:Tahoma, "Times New Roman";
text-decoration:none;
font-size:11px;
color:#9e224d;
font-weight:bold;
}
.cNoActive
{
background-image:url(bg_noactive.gif);
font-family:Tahoma, "Times New Roman";
text-decoration:none;
font-size:11px;
color:#009140;
font-weight:normal;
}
.tbHeader
{
border-left: 1px solid #666666;
border-right: 1px solid #666666;
}
.cHeader
{
font-family:Tahoma, "Times New Roman";
font-size:11px;
background-color:#9e224d;
color:#FFFFFF;
font-weight:bold
}
.cHeaderN
{
font-family:Tahoma, "Times New Roman";
font-size:11px;
background-color:#af637d;
color:#FFFFFF;
font-weight:bold
}
.Active
{
font-family:Tahoma, "Times New Roman";
text-decoration:none;
font-size:12px;
color:#9e224d;
font-weight:bold;
cursor: pointer;
}
.NoActive
{
font-family:Tahoma, "Times New Roman";
text-decoration:none;
font-size:12px;
color:#009140;
font-weight:normal;
cursor: pointer;
}
</style>
Mã HTML
<table border="0" cellspacing="0" cellpadding="0">Mã javascript
<tr>
<td width="200" valign="top">
<table border="0" cellspacing="0" cellpadding="0" width="200">
<tr>
<td background="bd.gif" width="1" height="20"></td>
<td id="cHOSE" class="cActive" width="58" height="20" class="center"><a href="http://vnexpress.net/User/ck/hcms/HCMStockSmall.asp" target="ifrmContent" id="aHOSE" class="Active" onClick="switchActive(0);">HOSE</a></td>
<td background="bd.gif" width="1" height="20"></td>
<td background="bg_out.gif" width="2" height="20"></td>
<td background="bd.gif" width="1" height="20"></td>
<td id="cHaSTC" class="cNoActive" width="58" height="20" class="center"><a href="http://vnexpress.net/User/ck/hns/HNStockSmall.asp" target="ifrmContent" id="aHaSTC" class="NoActive" onClick="switchActive(1);">HaSTC</a></td>
<td background="bd.gif" width="1" height="20"></td>
</tr>
</table>
<table border="0" cellpadding="1" cellspacing="1" class="tbHeader" width="200">
<tr class="center">
<td rowspan="2" class="cHeader" class="center" width="38">Mã CK</td>
<td rowspan="2" class="cHeader" class="center" width="38">TC</td>
<td colspan="2" class="cHeader" class="center" width="79" nowrap>Khớp lệnh</td>
<td rowspan="2" class="cHeader" class="center" width="50">+/-</td>
</tr>
<tr>
<td class="cHeaderN" class="center" width="37">Giá</td>
<td class="cHeaderN" class="center" width="42">KL</td>
</tr>
</table>
<iframe id="ifrmContent" name="ifrmContent" height="305" width="200" src="http://vnexpress.net/User/ck/hcms/HCMStockSmall.asp" noresize border=false frameborder=0 scrolling="yes"></iframe>
<table>
<tr>
<td style="FONT-SIZE: 8pt; BACKGROUND: #FFFFFF; COLOR: #000000; FONT-FAMILY: 'Arial'; TEXT-ALIGN: right;">(Bấm vào nội dung bảng để xem chi tiết)</td>
</tr>
</table>
</td>
</tr>
</table>
<script type="text/javascript">
function switchActive(i){
if(i == 0){
document.getElementById('cHOSE').className = 'cActive';
document.getElementById('cHaSTC').className = 'cNoActive';
document.getElementById('aHOSE').className = 'Active';
document.getElementById('aHaSTC').className = 'NoActive';
}
else{
document.getElementById('cHOSE').className = 'cNoActive';
document.getElementById('cHaSTC').className = 'cActive';
document.getElementById('aHOSE').className = 'NoActive';
document.getElementById('aHaSTC').className = 'Active';
}
}
</script>
3.2. Lưu đoạn mã trên thành file chungkhoan.html. Upload lên host.
Chọn mod_wrapper, nhập địa chỉ URL của file tigia.html để tạo chèn iframe vào module.
Xem thêm Cách tạo module hiển thị tỉ giá ngoại tệ, thông tin thị trường trong Joomla.
Cao Thế Toàn - kenh360.com
| Tạo module position mới trong Joomla < Lùi | Tiếp theo > Cách trình bày trang chủ Frontend trong Joomla 1.5 |
|---|
Tin mới hơn:
- 04/04/2009 11:51 - Hướng dẫn cài đặt Joomla 1.5
- 04/04/2009 09:57 - Đăng nhập Joomla 1.5 bằng tài khoản Gmail
- 03/04/2009 08:11 - Chèn module bất kỳ vào bài viết trong Joomla
- 02/04/2009 01:03 - Hiển thị alias tiếng Việt utf-8 ứng dụng cho SEO/SEF trong Joomla
- 01/04/2009 22:23 - Cách trình bày trang chủ Frontend trong Joomla 1.5
Tin cũ hơn:
- 12/03/2009 11:36 - Cách tạo module hiển thị tỉ giá ngoại tệ, thông tin thị trường trong Joomla
- 02/03/2009 11:21 - JM Sitemap cho Joomla 1.5
- 26/02/2009 10:50 - Các phần tử mặc định trong file CSS template của Joomla!
- 20/02/2009 21:48 - Top 50 thành phần mở rộng xuất sắc dành cho Joomla
- 16/02/2009 23:42 - Tạo Module Hello World cho Joomla 1.5
Download Game bóng đá PES8 Việt Nam
Tải game bóng đá FiFa 09
Tải game Dragon ball Z - 7 viên ngọc rồng
Tải Game Bóng Đá Pro Evolution Soccer 6 Việt Nam
Download PES 2011 patch Việt Nam PESVN
Tải Game Bóng Đá FIFA 2009 RIP 1 CD
Download Pro Evolution Soccer 2011
Download Game THE SIMS 3
Tải Game bóng đá PES 2009
Download PES 2011 demo
XAPPR: Biến smartphone của bạn thành khẩu súng Laser, chơi game AR
Thiết lập Hotmail POP settings trên điện thoại
[Xbox 360 FAQs] - Những điều nên biết về Xbox 360
Windows 95/98/XP chạy trên các thiết bị Android một cách dễ dàng
Hướng dẫn phục hồi dữ liệu và Fix lỗi bị treo táo của iPhone, iPod
Fifa 12 cho các máy android 2.3 trở lên
Tải game Android miễn phí
iWep Pro v4.1.3 - Tìm mật khẩu mạng WiFi trên iOS
Activator 1.6.1 Việt hóa
L.A. Noire: The Complete Edition - THETA [Full ISO/Action/2011] [13.37GB]
Download 7554 demo
Download Game PC, cập nhật liên tục (torrent)
PES 2012 ra mắt bản mở rộng đầu tiên vào 11/10
PES2012 - Full version - Ngôn ngữ và bình luận tiếng Anh
PES2012 - Blurry disable làm mịn đồ họa
PES 2011 PATCH 4.1 - TRANSFER UPDATE - RELEASED
Download Prestashop 1.5
Download PrestaShop 1.4
Bổ sung Memcached vào PrestaShop 1.4
Hướng dẫn tích hợp Ngân Lượng vào PrestaShop
Sửa lỗi invalid carrier or no carrier selected trong PrestaShop
Sửa lỗi PrestaShop: Path is not the same between your browser and you server
Cài đặt PrestaShop
Thiết kế giao diện PrestaShop Theme
Hướng dẫn cài đặt themes trong PrestaShop
Hướng dẫn cách thêm ngôn ngữ cho PrestaShop
Bộ sưu tập Giao diện Premium PrestaShop Themes chuyên nghiệp
Giới thiệu về website thương mại điện tử 2.0 Prestashop
Download PES 12 Demo
Những di động có bàn phím tốt nhất 2008 


