Polly po-cket
Hãy nhanh tay Đăng kí và Đăng nhập để trở thành thành viên chính thức của LapTool.Wap.Sh và cùng thảo luận!
» » » Share code tạo link rút gọn xtgem
(Theo dõi chủ đề)

Bài viết: Share code tạo link rút gọn xtgem

Forum LapTool.Wap.Sh..! ↑ ↓
vuvanhoan * vuvanhoan (Admin) [Off]
* 11-11-2016

Dán code dưới đây vào chỗ nào muốn hiển thị link rút gọn

<!--parser:xtscript-->
get url
if not $url
assign $url=http://
endif
get lid
get show_result
print {{
<div class="xt_container" style="max-width:320px;text-align:left;margin:4px auto">
<form id="wqltf" action="<xt:url/>#wqltf" method="post">
<div class="xt_input">
<div class="xt_label" style="display:block">
<label for="url">Nhập địa chỉ</label>
</div>
<input style="max-width:20em"  type="url" id="url" name="url" value="$url" />
<div class="xt_label" style="display:block">
<label for="lid">Tên tuỳ chỉnh</label>
</div>
<input style="max-width:8em"  id="lid" name="lid" value="$lid" />
</div>
<input type="hidden" name="show_result" value="1" />
<div class="xt_submit">
<input class="xt_button" type="submit" value="Rút gọn"/>
</div>
</form>
}}
if $show_result
print {{
<div class="xt_label" style="display:block">
<label>Địa chỉ đã rút gọn</label>
</div>
<iframe class="xt_button" src="http://wq.lt/api?url=$url&lid=$lid&mob=$mob" frameborder="0" scrollling="no" style="background:#bcd;height:3em;max-width:15em;margin:0;padding:0" >
<a class="xt_button" href="http://wq.lt/api?url=$url&lid=$lid&mob=$mob">Xem</a>
</iframe>
}}
endif
print </div>
<!--/parser:xtscript-->

(0)
- Tổng số 1 bình luận và lượt xem
Công cụ bài viết

Online: [0]Khách: [1]
C-STAT
LapTool.Wap.Sh..!Thiết kế bởi SINO-
-->