Ai pro ve xtgem thi vao huong dan minh mot so chuc nang cao

T

taynguyen

New Member
Minh thay mot so wap xtgem lai biet lam giao dien web khi truy cap tu pc, neu lai biet lam thi huong dan chi tiet cach lam cho minh voi.
 
Chủ đề tương tự em nhé
 
Dung code sao duoc, y minh la truy cap tu dien thoai thi khac, truy cap pc thi khac
 
Để bắt đầu bạn dán code
sau vào giữa 2 thẻ
<head></head> của file
index ( trang chủ wap của
bạn và bạn phải mở trình
soạn thảo văn bản ra mới
thấy được thẻ head đó)
<!--parser:xtscript-->
assign $device=<xt:get_device_template />_index
assign $site=<xt:url type="domain" />
print <script type="text/javascript"> location.href='http://$site/$device';</script>
print <meta http-equiv="refresh" content="0;http://$site/$device" />
<!--/parser:xtscript-->

Sau đó bạn tạo các file
mobile_index
touch_index
web_index
Và thiết kế với
mobile_index là trang
hiển thị cho người dùng
trình duyệt di động.
touch_index là trang hiển
thị cho người dùng máy
cảm ứng.
web_index là trang hiển
thị khi người dùng sử
dụng pc hay laptop
Tiếp theo bạn dán code
sau vào _headtags
<!--parser:xtscript-->
assign $css=<xt:get_device_template />_nuocnamwap.css
assign $site=<xt:url type="domain" />
print <link rel="stylesheet" type="text/css" href="http://$site/$css" />
<!--/parser:xtscript-->

Rồi tạo các file
mobile_nuocnamwap.css
touch_nuocnamwap.css
web_nuocnamwap.css
Với
mobile_nuocnamwap.css
là style dành cho di động
touch_nuocnamwap.css
là style dùng cho máy
cảm ứng
web_nuocnamwap.css
là style dùng cho trình
duyệt web, pc
Những style này bạn có
thể copy ở các trang mà
bạn thích nếu như bạn
chưa biết thiết kế chúng.
Chúc các bạn thành công!
 

Facebook Comments

Similar threads

Admin
Replies
0
Views
712
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
743
AdminAdmin is verified member.
Admin
Back
Top