• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Admin

Well-Known Member
Staff member
Administrator
Trên mạng có bài HD rồi đó. Mà chạy XtScript :) code dài mất mấy trang phone mình. Nay mình hướng dẫn ae đơn giản hơn, không chạy XtS nặng wap.
*. Tạo thư mục /template với các file sau:
/head_web.html - Đặt nội dung phần header khi truy cập PC
/head_mobile.html - Đặt nội dung phần header khi truy cập Mobile
/head_touch.html - Hình như dành cho cảm ứng :D
Tương tự với foot_mobile.html , foot_touch.html , foot_web.html
----
*. Đặt code sau ở _header
[text]<xt id="include" file="/template/head_<xt:get_device_template/>.html" />[/text]
và code sau ở footer
[text]<xt id="include" file="/template/foot_<xt:get_device_template/>.html" />[/text]
--
--
Vậy làm sau tạo template web ? Mình sẽ HD bạn tạo bằng thẻ table nhé...
- Post code sau ở head_web.html
HTML:
<!- Phần trên (logo wap hay gì gì đó ) 
<table width="100%">
<tr>
<td width="25%" valign="top">
<!- Nội dung cột bên trái (đặt gì tùy bạn ) -!>
</td><td width="50%">
đặt code sau ở foot_web.html
HTML:
</td><td width="25%" valign="top">
<!- Nội dung cột bên phải (đặt gì tùy bạn ) -!>
</td> </tr></table> <!- Footer, đặt bản quyền hay gì gì đó -!>
Chúc bạn thành công!
 

Facebook Comments

Similar threads

New posts New threads New resources

Back
Top