×

对联广告代码 代码 静态网页

静态网页浮动对联代码?求日历的HTML代码

admin admin 发表于2022-05-10 01:55:32 浏览128 评论0

抢沙发发表评论

静态网页浮动对联代码

通用使用方法:将下面的代码复制到对应的广告位置,更改广告内容即可(具体细节请看代码里的说明)系统使用方法:将下面代码复制到首页的某个自定义标记里(建议复制到默认的index_bottom_part标记里),更改广告内容,更新首页即可飘浮对联广告源码/代码:《script》// 这是关闭飘浮广告的宽度,请根据你的广告内容而定var hbcms_ad_width = 100;// 这是关闭飘浮广告的代码,可以换成图片,点击即可关闭var hbcms_close_str = ’《div onClick=“closeBanner();“ style=“color:gray;font-size:9pt;cursor:hand;text-align:center;width:100%;background-color: white;“》关闭《/div》’;// 设置左边的广告代码,请自己更换图片地址,或换成flash,或换成纯文字// 如果不希望显示左边的广告,可设置为 = ’’;var hbcms_left_ad = ’《img src=“// 设置右边的广告代码,如果要和左边的广告一致,可设为 = hbcms_left_ad;// 如果不希望显示右边的广告,可设置为 = ’’;var hbcms_right_ad = hbcms_left_ad;var delta=0.8;var collection;var closeB=false;function floaters() {this.items = ;this.addItem = function(id,x,y,content) { document.write(’《DIV id=’+id+’ style=“Z-INDEX: 10; POSITION: absolute; width:’+hbcms_ad_width+’px; height:60px;left:’+(typeof(x)==’string’?eval(x):x)+’;top:’+(typeof(y)==’string’?eval(y):y)+’“》’+content+’《/DIV》’); var newItem = {}; newItem.object = document.getElementById(id); newItem.x = x; newItem.y = y; this.items[this.items.length] = newItem; }this.play = function() { collection = this.items setInterval(’play()’,30); }}function play(){ if(screen.width《=800 || closeB) { for(var i=0;i《collection.length;i++) { collection[i].object.style.display = ’none’; } return; } for(var i=0;i《collection.length;i++) { var followObj = collection[i].object; var followObj_x = (typeof(collection[i].x)==’string’?eval(collection[i].x):collection[i].x); var followObj_y = (typeof(collection[i].y)==’string’?eval(collection[i].y):collection[i].y); if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) { var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta; dx=(dx》0?1:-1)*Math.ceil(Math.abs(dx)); followObj.style.left=followObj.offsetLeft+dx; } if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) { var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta; dy=(dy》0?1:-1)*Math.ceil(Math.abs(dy)); followObj.style.top=followObj.offsetTop+dy; } followObj.style.display = ’’; }} function closeBanner(){ closeB=true; return;}var theFloaters = new floaters();theFloaters.addItem(’followDiv1’,’document.body.clientWidth-106’,hbcms_ad_width,hbcms_right_ad);theFloaters.addItem(’followDiv2’,6,hbcms_ad_width,hbcms_left_ad);theFloaters.play();《/script》

求日历的HTML代码

网页台历代码如下:《html》《head》《title》网页上的日期台历《/title》《STYLE》A.menuitem {COLOR: menutext; TEXT-DECORATION: none}A.menuitem:hover {COLOR: highlighttext; BACKGROUND-COLOR: highlight}DIV.contextmenu {BORDER-RIGHT: 2px outset; BORDER-TOP: 2px outset; Z-INDEX: 999; VISIBILITY: hidden; BORDER-LEFT: 2px outset; BORDER-BOTTOM: 2px outset; POSITION: absolute; BACKGROUND-COLOR: buttonface}《/STYLE》 《/head》《body》《SCRIPT language=JavaScript》function Year_Month(){ var now = new Date(); var yy = now.getYear(); var mm = now.getMonth()+1; var cl = ’《font color=“#0000df“》’; if (now.getDay() == 0) cl = ’《font color=“#c00000“》’; if (now.getDay() == 6) cl = ’《font color=“#00c000“》’; return(cl + yy + ’年’ + mm + ’月《/font》’); }function Date_of_Today(){ var now = new Date(); var cl = ’《font color=“#ff0000“》’; if (now.getDay() == 0) cl = ’《font color=“#c00000“》’; if (now.getDay() == 6) cl = ’《font color=“#00c000“》’; return(cl + now.getDate() + ’《/font》’); }function Day_of_Today(){ var day = new Array(); day = “星期日“; day = “星期一“; day = “星期二“; day = “星期三“; day = “星期四“; day = “星期五“; day = “星期六“; var now = new Date();///var cl = ’《font color=“#0000df“》’; if (now.getDay() == 0) cl = ’《font color=“#c00000“》’; if (now.getDay() == 6) cl = ’《font color=“#00c000“》’; return(cl + day[now.getDay()] + ’《/font》’); }function CurentTime(){ var now = new Date(); var hh = now.getHours(); var mm = now.getMinutes(); var ss = now.getTime() % 60000; ss = (ss - (ss % 1000)) / 1000; var clock = hh+’:’; if (mm 《 10) clock += ’0’; clock += mm+’:’; if (ss 《 10) clock += ’0’; clock += ss; return(clock); } function refreshCalendarClock(){ document.all.calendarClock1.innerHTML = Year_Month(); document.all.calendarClock2.innerHTML = Date_of_Today(); document.all.calendarClock3.innerHTML = Day_of_Today(); document.all.calendarClock4.innerHTML = CurentTime(); }var webUrl = webUrl; document.write(’《table border=“0“ cellpadding=“0“ cellspacing=“0“》《tr》《td》’); document.write(’《table id=“CalendarClockFreeCode“ border=“0“ cellpadding=“0“ cellspacing=“0“ width=“60“ height=“70“ ’);document.write(’style=“position:absolute;visibility:hidden“ bgcolor=“#eeeeee“》’);document.write(’《tr》《td align=“center“》《font ’);document.write(’style=“cursor:hand;color:#ff0000;font-size:14pt;line-height:120%“ ’);if (webUrl != ’netflower’){ document.write(’《/td》《/tr》《tr》《td align=“center“》《font ’);document.write(’style=“cursor:hand;color:#2000ff;font-size:9pt;line-height:110%“ ’);} document.write(’《/td》《/tr》《/table》’); document.write(’《table border=“0“ cellpadding=“0“ cellspacing=“0“ width=“61“ bgcolor=“#C0C0C0“ height=“70“》’);document.write(’《tr》《td valign=“top“ width=“100%“ height=“100%“》’);document.write(’《table border=“1“ cellpadding=“0“ cellspacing=“0“ width=“58“ bgcolor=“#FEFEEF“ height=“67“》’);document.write(’《tr》《td align=“center“ width=“100%“ height=“100%“ 》’);document.write(’《font id=“calendarClock1“ style=“font-size:7pt;line-height:120%“》《/font》《br》’);document.write(’《font id=“calendarClock2“ style=“color:#ff0000;font-family:Arial;font-size:14pt;line-height:120%“》《/font》《br》’);document.write(’《font id=“calendarClock3“ style=“font-size:9pt;line-height:120%“》《/font》《br》’);document.write(’《font id=“calendarClock4“ style=“color:#100080;font-size:8pt;line-height:120%“》《b》《/b》《/font》’);document.write(’《/td》《/tr》《/table》’);document.write(’《/td》《/tr》《/table》’); document.write(’《/td》《/tr》《/table》’); setInterval(’refreshCalendarClock()’,1000);《/SCRIPT》《/body》《/html》

QQ空间签名档怎么弄啊还有那个代码是什么意思啊

签名档就是~你给你好友或者他人留言或者评论日志的时候~可以显示自己的签名~不是最下面是写东西的么?写完后发表之前~勾上显示签名档前面的小方框就好了~评论日志是方框在右上角~发表留言时方框在左下角~代码就是你发表时对你发表内容作的样式~什么换个字体啊~换个字体颜色啊~发光一下啊~都是样式~做了样式就有代码了~你在网上找的代码也就是别人设计好了的样式~你直接复制过来就能用了~不过代码长了空间是不允许你保存的哈~希望能帮助你~谢谢~望采纳~(*^__^*)