Traditional Culture Encyclopedia - Almanac inquiry - VB master editing electronic calendar program source code.

VB master editing electronic calendar program source code.

The following is the lunar conversion page code of the webpage.

Provide reference

-

& lt! DOCTYPE HTML PUBLIC“-//W3C//DTD HTML 4.0 Transitional//EN“& gt;

& lt html & gt< head & gt< title & gt utility query-calendar

& ltMETA t = 0;

var dStyle

document.onmousemove = mEvn

//Display detailed date information.

Function mOvr(v ){ (

Var s, festivals;

var sObj = eval(‘SD‘+v);

var d = sobj . innerhtml- 1;

//year, month, day, week,

//year, month, day, month,

//cYear,cMonth,cDay

if(sobj . innerhtml! ='') {

sobj . style . cursor =‘s-resize‘;

if(CLD【d】。 solarTerms = =““& amp; & ampCLD【d】solarFestival = =““& amp; & ampCLD【d】lunarFestival ==““)

festival =““;

other

festival =‘& lt; Table width = 100% BORDER=0 cell filling =2 cell spacing = 0bgcolor = "# ccfcc" > & ltTR & gt& ltTD & gt; ‘+

& ltFONT COLOR =“# 000000“STYLE =“FONT-size:9pt& gt+CLD【d】。 solarTerms+““+CLD【d】。 solarFestival+““+CLD【d】。 lunar festival+‘& lt; /FONT & gt; & lt/TD & gt; +

& lt/TR & gt; & lt/TABLE & gt; ‘;

s =‘& lt; TABLE WIDTH =“ 130“BORDER = 0 cell padding =“2“CELLSPACING = 0 BGCOLOR =“# CEE 5ff“style =“filter:Alpha(opacity = 80)“& gt; & ltTR & gt& ltTD & gt; ‘+

& lt table width = 100% BORDER=0 cell filling =0 cell spacing = 0> & lttr & gt & lttdalign = "right">. & ltFONT COLOR =“# 000000“STYLE =“FONT-size:9pt& gt+

CLD【d】sYear+‘year‘+CLD【d】。 s month+‘month‘+CLD【d】。 Sday+'day week +CLD. Zhou+'

& ltfont color =“# aa 04 AC“& gt。 Lunar calendar "+"(CLD [d]. islap? leap“:““)+CLD【d】。 lMonth+“month“+CLD【d】。 lDay+‘day& ltbr & gt+

& ltfont color =“# 03 18DC“& gt; ‘+CLD【d】。 cYear+‘Year‘+CLD【d】。 CMonth+ "month"+CLD [d]. cDay+‘Day《/font & gt; ‘+

& lt/FONT & gt; & lt/TD & gt; & lt/TR & gt; & lt/TABLE & gt; ‘+festival+‘& lt; /TD & gt; & lt/TR & gt; & lt/TABLE & gt; ‘;

document . all【“detail“】。 innerHTML = s;

if(snow = = 0 ){

d style . left = x+offsetx-(width/2);

d style . top = y+offsety;

d style . visibility =“visible“;

snow = 1;

}

}

}

//Clear detailed date data

Function mOut(){

if(CNT & gt; = 1){ SW = 0; }

if(SW = = 0){ snow = 0; d style . visibility =“hidden“; }

else cnt++;

}

//Get location

Function mEvn(){

x = event.x

y = event.y

if(document . body . scroll left)

{ x = event . x+document . body . scroll left; y = event . y+document . body . scroll top; }

If (snow)

d style . left = x+offsetx-(width/2);

d style . top = y+offsety;

}

}

///////////////////////////////////////////////////////////////////////////

Function initialization () {

//lunar calendar

dStyle = detail.style

CLD。 sy . selectedindex = tY- 1900;

CLD。 SM.selectedIndex = tM

draw CLD(tY,tM);

}

//--& gt;

& lt/SCRIPT & gt;

& ltSTYLE type=text/css>。 TD {

FONT-SIZE: 12px; Color: #565656

}

P {

FONT-SIZE: 12px; Color: #565656

}

Li (

FONT-SIZE: 12px; Color: #565656

}

Select {

FONT-SIZE: 12px; Color: #565656

}

Enter {

FONT-SIZE: 12px; Color: #565656

}

Text area {

FONT-SIZE: 12px; Color: #565656

}

. f 14 {

FONT-SIZE: 14px

}

. todyaColor {

Background color: light green

}

& lt/STYLE & gt;

& ltMETA content =“Microsoft front page 4.0“name = GENERATOR & gt。 & lt/HEAD & gt;

& ltBODY bgColor = # 7 fbbff top margin = 5 onload = initialize()margin height =“5“& gt。

& lt scripting language = JavaScript & gt& lt! -

if(navigator . appname = =“Netscape“| | parse int(navigator . appversion)& lt; 4)

document . write(“& lt; H 1 Your browser cannot execute this program. & lt/h 1 & gt; This program can only be executed after IE4! ! ")

//--& gt; & lt/SCRIPT & gt;

& lt form name = CLD>;;

& ltDIV id = details

Style = "z index: 3; Filter: shadow (color=#333333, direction =135); Width:140px; Location: absolute; Height:120px ""; & lt/DIV & gt;

& lt center & gt

& lt Table Cell Spacing =0 Cell Filling =0 Width = 464 border = 0>

& ltTBODY & gt

& ltTR & gt

& ltTD height=36>。 & ltIMG height = 36 src = "images/ca 01.gif"

width = 463 & gt& lt/TD & gt; & lt/TR & gt; & lt/TBODY & gt; & lt/TABLE & gt;

& lt Table Cell Spacing =0 Cell Filling =0 Width = 464 border = 0>

& ltTBODY & gt

& ltTR & gt

& ltTD align = middle background = images/ca02 . gif & gt。 & lt! -& lt; Divstyle = "z index:1; Position: absolutely