↓↓xuống cuối trang↓↓
Chào mừng bạn đến với wap DinhLoi.XtGem.Com | Chúc bạn có 1 năm mới vui vẻ tốt lành hạnh phúc! Hãy giới thiệu website này cho bạn bè nhé!img
DinhLoi.XtGem.Com =>> CaFe9x.Gq
Bạn đến từ quốc gia:



Hôm nay ngày
25.02.25/20:02
img- Hi. Xin chào! Mozilla/5.0
logo
.
HOMECHÁTTruyệnFORUM
logo

Chatbox|Admin nhận làm wap/web, giá cả thương lượng... Thông tin admin tại mỗi bài viết.
Home · Bang hội ·
* Đăng Nhập hoặc Đăng Kí
để sử dụng hết chức năng của diễn đàn.
Hi, Khách!
HomeBang hội » Wapmaster » JohnCMS » Share code chuyên mục random màu giống WapIT
Xuống dưới » Share code chuyên mục random màu giống WapIT
avatar by Pham_loi Pham_loi
Chức vụ:
04:21:48, 20-05-2015

Mô tả: mỗi lần load lại trang nó sẽ đổi màu...
Có thể chôm css của wapit hoặc m4v
hoặc không cần css nó cũng có màu
Code hơi dài nhưng không sao..
Dùng ngon nhé...

echo '<div class="mainblok"><div class="phdr">•&nbsp;<b>Chuyên mục</b></div>';
$req = mysql_query("SELECT * FROM `forum` WHERE `type` = 'f' ORDER BY `realid` ASC");
$i = 0;
while ($res = mysql_fetch_assoc($req)) {
echo $i % 2 ? '<div class="list2">' : '<div class="list1">';
$a = array();
$a[ = '<span class="prefix prefixPrimary">&nbsp;<a href="'.$home.'/forum/' . functions::nguyen($res['text') . '_'.$res['id'.'.html" title="' . $res['text' . '">' . $res['text' . '</span></a>';
$a[ = '<span class="prefix prefixSecondary">&nbsp;<a href="'.$home.'/forum/' . functions::nguyen($res['text') . '_'.$res['id'.'.html" title="' . $res['text' . '">' . $res['text' . '</span></a>';
$a[ = '<span class="prefix prefixRed">&nbsp;<a href="'.$home.'/forum/' . functions::nguyen($res['text') . '_'.$res['id'.'.html" title="' . $res['text' . '">' . $res['text' . '</span></a>';
$a[ = '<span class="prefix prefixGreen">&nbsp;<a href="'.$home.'/forum/' . functions::nguyen($res['text') . '_'.$res['id'.'.html" title="' . $res['text' . '">' . $res['text' . '</span></a>';
$a[ = '<span class="prefix prefixOlive">&nbsp;<a href="'.$home.'/forum/' . functions::nguyen($res['text') . '_'.$res['id'.'.html" title="' . $res['text' . '">' . $res['text' . '</span></a>';
$a[ = '<span class="prefix prefixLightGreen">&nbsp;<a href="'.$home.'/forum/' . functions::nguyen($res['text') . '_'.$res['id'.'.html" title="' . $res['text' . '">' . $res['text' . '</span></a>';
$a[ = '<span class="prefix prefixBlue">&nbsp;<a href="'.$home.'/forum/' . functions::nguyen($res['text') . '_'.$res['id'.'.html" title="' . $res['text' . '">' . $res['text' . '</span></a>';
$a[ = '<span class="prefix prefixRoyalBlue">&nbsp;<a href="'.$home.'/forum/' . functions::nguyen($res['text') . '_'.$res['id'.'.html" title="' . $res['text' . '">' . $res['text' . '</span></a>';
$a[ = '<span class="prefix prefixSkyBlue">&nbsp;<a href="'.$home.'/forum/' . functions::nguyen($res['text') . '_'.$res['id'.'.html" title="' . $res['text' . '">' . $res['text' . '</span></a>';
$a[ = '<span class="prefix prefixGray">&nbsp;<a href="'.$home.'/forum/' . functions::nguyen($res['text') . '_'.$res['id'.'.html" title="' . $res['text' . '">' . $res['text' . '</span></a>';
$a[ = '<span class="prefix prefixSilver">&nbsp;<a href="'.$home.'/forum/' . functions::nguyen($res['text') . '_'.$res['id'.'.html" title="' . $res['text' . '">' . $res['text' . '</span></a>';
$a[ = '<span class="prefix prefixYellow">&nbsp;<a href="'.$home.'/forum/' . functions::nguyen($res['text') . '_'.$res['id'.'.html" title="' . $res['text' . '">' . $res['text' . '</span></a>';
$a[ = '<span class="prefix prefixOrange">&nbsp;<a href="'.$home.'/forum/' . functions::nguyen($res['text') . '_'.$res['id'.'.html" title="' . $res['text' . '">' . $res['text' . '</span></a>';
echo $a[rand(0, count($a)-1);

echo '</div>';
++$i;
}
echo '</div>';

Copy code


Yêu cầu mod rewrite nhé... thay biến ' . functions::nguyen
thành của bạn!
Nguồn: wapIT.Mobi

Like: 0
Lên trên  Tổng số: 1







Trực Tuyến: Khách: 1
Diễn đàn teen Việt Nam
CopyRight 2014
Tag:
Bạn đến từ:
Share: img img img img img

Thanks To:XtGem
Liên kết:U-ON

Polly po-cket