XtGem is a visual mobile site building tool, allowing users to create and maintain highly customizable personal mobile sites completely free of charge - and without a need to know any programming language at all!
Chia sẻ:
Code thông báo tự tắt khi hết thời gian cho wap Xtgem đơn giản Code :
<!--parser:xtscript-->
var $tb = <xt:tdate format="md" tzone="7">
if $tb==tháng+ngày or $tb<=tháng+ngày
print viết thông báo vào đây
endif
<!--parsert:xscript-->
__________
ví dụ cụ thể Code :
<!--parser:xtscript-->
var $tb = <xt:tdate format="md" tzone="7">
if $tb==0225 or $tb<=0226
print Mobifone khuyến mại 50% giá trị thẻ nạp từ ngày 25/02 - 26/02 , Viettel khuyến mại 50% giá trị thẻ nạp từ ngày 27/02 - 28/02
elseif $tb==0227 or $tb<=0228
print Viettel khuyến mại 50% giá trị thẻ nạp từ ngày 27/02 - 28/02
endif
<!--parser:xtscript-->
!!!!
- viết tháng trước ngày sau
- nếu muốn cụ thể thì thêm năm vào. vì như code trên ngày 25 tháng 2 năm sau nó sẽ báo lại (nhưng chắc ko có admin nào 1 năm ko cập nhật đâu)
#vậy nó có tác dụng gì?
Hầu hết admin các wap đều cập nhật thông báo vào ngày bắt đầu nhưng khj hết thời gjan pảj tự xoá. Có nhiều admin thông báo để từ tết mà hết tết đến gjờ chưa xoá @@ Code trên sẽ giải quyết điều đó khi mình chưa có thông báo mới
(code đơn giản nhưng khá là có ích)
Code by Kusdinks
Hãy Đánh giá để Admin nâng cao Chất lượng bài viết!
XtGem is a visual mobile site building tool, allowing users to create and maintain highly customizable personal mobile sites completely free of charge - and without a need to know any programming language at all!
XtGem is a visual mobile site building tool, allowing users to create and maintain highly customizable personal mobile sites completely free of charge - and without a need to know any programming language at all!
XtCAT -:- 404
0: php_network_getaddresses: getaddrinfo failed: Name or service not known
XtGem is a visual mobile site building tool, allowing users to create and maintain highly customizable personal mobile sites completely free of charge - and without a need to know any programming language at all!