Lịch vạn niên cho WEB

PVS

Super Moderator
Thành viên BQT
Tham gia
28/02/2015
Bài viết
16,829
Được Like
12,687
Lịch vạn niên cho WEB

- Tải về và giải nén file, sau đó upload file calendar lên host.
- Copy đoạn code sau dán vào vị trí muốn hiển thị lịch (mình chọn temp ad_sidebar_bottom). Thay các đường dẫn đến thư mục calendar và tập tin amlich_modified.js
Mã:
<script language="JavaScript" type="text/javascript">
function ShowCalendar(){
settings='width=550,height=570,location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=no,fullscreen=no'
down4you=window.open ('http://cnm24h.tk/calendar','down4you', settings);
down4you.focus();}
</script>
<script language="JavaScript" src=
"http://cnm24h.tk/calendar/amlich_modified.js" type="text/javascript">
</script>
<script language="JavaScript" type="text/javascript">
<!--
setOutputSize("small");
document.writeln(printSelectedMonth());
-->
</script><center>☆☆☆ <a href="javascript:ShowCalendar()"><font style=
"text-shadow: 0px 0px 6px rgb(255, 18, 174), 0px 0px 5px #ff00ee, 0px 0px 5px #ff00ee ;"
color="#FFFFFF" size="4">Xem CHI TIẾT</font></a> ☆☆☆</center>
<!--vv-->
<script type="text/javascript">

window.scrollBy(0, 1)
window.resizeTo(0,0)
window.moveTo(0,0)
//setInterval("move()",30);
setTimeout("move()", 1);
var mxm=50
var mym=25
var mx=0
var my=0
var sv=50
var status=1
var szx=0
var szy=0
var c=255
var n=0
var sm=30
var cycle=2
var done=2
function move()
{
if (status == 1)
{
mxm=mxm/1.05
mym=mym/1.05
mx=mx+mxm
my=my-mym
mxm=mxm+(400-mx)/100
mym=mym-(300-my)/100
window.moveTo(mx,my)
rmxm=Math.round(mxm/10)
rmym=Math.round(mym/10)
if (rmxm == 0)
{
if (rmym == 0)
{
status=2
}
}
}
if (status == 2)
{
sv=sv/1.1
scrratio=1+1/3
mx=mx-sv*scrratio/2
my=my-sv/2
szx=szx+sv*scrratio
szy=szy+sv
window.moveTo(mx,my)
window.resizeTo(szx,szy)
if (sv < 0.1)
{
status=3
}
}
if (status == 3)
{
document.fgColor=0xffffFF
c=c-16
if (c<0)
{status=8}
}
if (status == 4)
{
c=c+16
document.bgColor=c*65536
document.fgColor=(255-c)*65536
if (c > 239)
{status=5}
}
if (status == 5)
{
c=c-16
document.bgColor=c*65536
document.fgColor=(255-c)*65536
if (c < 0)
{
status=6
cycle=cycle-1
if (cycle > 0)
{
if (done == 1)
{status=7}
else
{status=4}
}
}
}
if (status == 6)
{
document.title = "DaIgIA_nOkiA"
alert("DaIgIA_nOkiA")
cycle=2
status=4
done=1
}
if (status == 7)
{
c=c+4
document.bgColor=c*65536
document.fgColor=(255-c)*65536
if (c > 128)
{status=8}
}
if (status == 8)
{
window.moveTo(0,0)
sx=screen.availWidth
sy=screen.availHeight
window.resizeTo(sx,sy)
status=9
}
var timer=setTimeout("move()",0.3)
}
</script>

Demo:

1.png

Hiển thị trên web

2.png

Popup CHI TIẾT lịch tháng và năm

3.png

Lịch năm
Chúc các bạn thành công.


Nguồn: bangvu.net​
 

Đính kèm

  • calendar.zip
    20.3 KB · Lượt xem: 32
  • Like
Reactions: THB

Hướng dẫn sử dụng

XenForo 1 XenForo 2
Translate by PVS

Dịch vụ XenForo của VNXF

Mobile/Zalo: 0906081284

Telegram: anhanhxf

Chỉ nhận web nội dung lành mạnh

Nhà Tài Trợ

Mút Xốp Không Gian
Mút Sofa Không Gian
Top Bottom