Đăng nhập
Latest topics
» Tôi sẽ đỗ đại học!by nightWalker 9/2/2024, 7:00 pm
» Kỷ niệm xưa của chúng ta
by nightWalker 9/2/2024, 6:49 pm
» Bị lệch khung cần người giúp đỡ
by webhuy28 7/10/2021, 10:34 pm
» [HỎI ĐÁP] Danh sách bạn bè không thể hiển thị
by anhdaodaica1 2/10/2021, 10:04 pm
» [HỎI ĐÁP] Thông tin tài khoản không thể lưu thay đổi
by anhdaodaica1 2/10/2021, 6:05 am
» Phim bố già full
by huy.pc52 24/8/2021, 12:20 am
» Xin code Box HTML cho Forumvi
by Larva 1/7/2021, 12:57 pm
» Hello Anh Em Chinh phục
by HoàngTửNaivip5p 28/5/2021, 5:03 am
» Trang chủ tin tức cập nhật HOT 2016
by kenbi05 1/1/2020, 11:02 pm
» Không Dang9 bài viết = hình ảnh được
by huy.pc52 30/11/2019, 10:52 am
» CHÚC ANH EM NĂM MỚI VUI VẺ TRÀNG ĐẦY HẠNH PHÚC
by sps.kủn 12/2/2019, 1:16 pm
» Skin CNTT-K3 2015 (Full Mod)[✔]
by kenbi05 6/7/2018, 12:30 am
» baivong, handsome,....
by sps.kủn 29/6/2018, 1:54 pm
» [SHARE] SKIN ĐHFM.V7 @PUNBB
by tonyhoaivu 2/5/2018, 2:37 pm
» Share Skin Xanh Dương Cùi Bắp
by tonyhoaivu 28/4/2018, 5:57 pm
» Xin Skin http://v1.hotrofm.net/
by tonyhoaivu 28/4/2018, 5:45 pm
» Xin Skin Rao Vặt
by tonyhoaivu 15/4/2018, 12:07 pm
» Làm Sao Để Xóa Khung Này
by tonyhoaivu 14/4/2018, 7:18 pm
» [Lập nhóm]Lập nhóm fm
by vietkanpy 31/3/2018, 11:53 am
» [Help] về server úp ảnh của phutu [✔]
by baivong 17/3/2018, 10:18 pm
» Đừng khóc cho “tôi – Chinh Phục!”…
by AnHung 27/2/2018, 5:33 pm
» [Share] Skin Diendandaihoc.com [ Punbb ] [✔]
by Lu Mờ 13/2/2018, 7:28 pm
» Mời mấy thím vào groups Forumotion Việt Nam.
by dang02315 13/2/2018, 12:40 am
» Có thể làm các kiểu giao diện được không?
by Lu Mờ 9/2/2018, 3:40 pm
» ltns chinhphuc.info
by Shinichi Kudo 27/1/2018, 2:27 am
Top posting users this week
No user |
đặt html vào trang index
3 posters
Trang 1 trong tổng số 1 trang
đặt html vào trang index
Mình có cái code 2 câu đối chạy dọc forum đã cho vào html page, h muốn cho nó vào trang index thì làm sao.
http://a9hv.forumr.net/html-h2.htm
http://a9hv.forumr.net/html-h2.htm
Re: đặt html vào trang index
Chèn vào ACP-> Display->homepage->Generalities hay trong index body ...
Cho mình code đó đi
Cho mình code đó đi
Minh- CPMember
- Ngày đăng ký : 23/01/2010
Số bài : 38
CPP : -1
Châm ngôn sống : 4rum
Re: đặt html vào trang index
Mình đã chèn thử vào homepage message nhưng nó ko chạy, còn index body ở đâu vậy bạn.
- Code:
<html>
<head>
<style type="text/css">
.float {
width: 0px;
height: 200px;
}
</style>
</head>
<body><div style="width: 100%px;height: 2000px;"><div id="a" class="float"><img src=http://i64.servimg.com/u/f64/12/44/88/02/bg210.png></div><div id="c" class="float"><img src=http://i64.servimg.com/u/f64/12/44/88/02/bg111.png></div>
</div>
</body>
<script type="text/javascript">
function setPosition(id, position) {
var store = {
ram : {
top : 0,
left : 0,
right : 0,
bottom : 0
},
rom : {
top : null,
left : null,
right : null,
bottom : null
}
};
for (var i in position) {store.rom[i] = position[i];}
var element = document.getElementById(id);
for (i in store) {element[i] = store[i];}
element.rom.move = function() {
if (window.innerHeight) {
var topPage = window.pageYOffset;
var leftPage = window.pageXOffset;
var rightPage = leftPage + window.innerWidth - element.offsetWidth;
var bottomPage = topPage + window.innerHeight - element.offsetHeight;
}
else {
var topPage = document.body.scrollTop;
var leftPage = document.body.scrollLeft;
var rightPage = leftPage + document.body.clientWidth - element.offsetWidth;
var bottomPage = topPage + document.body.clientHeight - element.offsetHeight;
}
element.style.position = "absolute";
if (element.rom.top != null) {
element.ram.top += Math.round((topPage + element.rom.top - element.ram.top)/20);
element.style.top = element.ram.top;
}
if (element.rom.left != null) {
element.ram.left += Math.round((leftPage + element.rom.left - element.ram.left)/20);
element.style.left = element.ram.left;
}
if (element.rom.right != null) {
element.ram.right += Math.round((rightPage - element.rom.right - element.ram.right)/20);
element.style.left = element.ram.right;
}
if (element.rom.bottom != null) {
element.ram.bottom += Math.round((bottomPage - element.rom.bottom - element.ram.bottom)/20);
element.style.top = element.ram.bottom;
}
setTimeout("document.getElementById('"+element.id+"').rom.move()",10);
};
element.rom.move();
}
setPosition("a", {top: 20, right: 100});
setPosition("c", {top: 20, left: 0});
</script>
</body>
</html>
Re: đặt html vào trang index
Trong ACP->Display->template->General
Minh- CPMember
- Ngày đăng ký : 23/01/2010
Số bài : 38
CPP : -1
Châm ngôn sống : 4rum
Re: đặt html vào trang index
Cái này mình xài phpbb2
Minh- CPMember
- Ngày đăng ký : 23/01/2010
Số bài : 38
CPP : -1
Châm ngôn sống : 4rum
Similar topics
» HTML index chèn vào đâu!
» tk + đăng nhập 0 bị chuyển trang về index hoặc 1 trang mới [help]
» Trang web cung cấp html web template cho module html
» Xin html tạo bản Latest topics thành 1 trang html riêng
» Index đầy đủ map... bằng HTML
» tk + đăng nhập 0 bị chuyển trang về index hoặc 1 trang mới [help]
» Trang web cung cấp html web template cho module html
» Xin html tạo bản Latest topics thành 1 trang html riêng
» Index đầy đủ map... bằng HTML
Trang 1 trong tổng số 1 trang
Permissions in this forum:
Bạn không có quyền trả lời bài viết
|
|