白云黄鹤 Web Widget System

保护白云 – 白云黄鹤SYSOP弹劾站长事件的转发太不负责任
此帖专门用于收集白云黄鹤Web自定义JS效果,欢迎白云黄鹤斑竹使用。
请使用永久连接访问这里以获得最新更新。如果使用了,也请斑竹们在评论中告诉我你们的板块,以及使用了什么模块
http://www.awflasher.com/blog/archives/774

所有的代码均在不断地升级|最后一次更新是2006年12月23日
一、天气预报系统
演示效果:
http://wwwlogin.byhh.net
使用方法~具体怎么加入去问Beta站长达人~ 恩……
这段代码中有一个参数输入,在 customstyle=alpha
这里把“alpha”替换成为”ff0000″之类的颜色代码就可以设置颜色了~如果是alpha,表示透明。不过我并不赞成用透明Flash-_-

var debughost = "http://aw.awflasher.com/";
//var debughost = "";
document.write("<center>
显示天气预报
</center>"); var setSwitch = false; awWeather() function $(o){return document.getElementById(o);} function awWeather() { var gCtr = $("ctr"); var gw = $("weather"); if(!gCtr || !gw){return;} gCtr.onclick = function() { setSwitch = !setSwitch; if (setSwitch) { gCtr.innerHTML = "关闭天气预报"; gw.style.display="block"; } else { gCtr.innerHTML = "显示天气预报"; gw.style.display="none"; } setSwitch = (gw.style.display!="none") ? true : false; }; gCtr.onmouseover = function(){ this.style.background="#66f";this.style.color="#cef";}; gCtr.onmouseout = function(){this.style.background="none";this.style.color="#000";}; };

JavaScript Coding: aw@byhh (awflasher.com)
ActionScript/GUI: aw@byhh (awflasher.com)
Data Providing:blogweather.net
Data Hosting:jinlinCNC

这次为制作这个天气预报,花掉了半个周末-_-,不过也算尽兴了。还顺便发现了一个小bug。在flash中调用js会中止ie6的bgsound-_-。不过这个bgsound几乎没有什么价值,个人觉得~一般都会自己放mp3-_-….

二、按指定事件倒计时系统
使用非常简单,改相应的数字和字符串啦!
Demo@ http://piefriends.byhh.net

var debughost = "http://aw.awflasher.com/";
var cYear = 2007;
var cMonth = 2;
var cDay = 14;
var cHour = 18;
var cMinute = 0;
var cSecond = 30;
var BMevent = "SYSOP版聚";
var eventEnd = "SYSOP版聚结束啦!";
var paras="?cYear="+cYear;
paras+="&cMonth="+(cMonth-1);
paras+="&cDay="+cDay;
paras+="&cHour="+cHour;
paras+="&cMinute="+cMinute;
paras+="&cSecond="+cSecond;
paras+="&BMevent="+encodeURI(BMevent);
paras+="&eventEnd="+encodeURI(eventEnd);
var titstr = "察看距离"+cYear+"年"+cMonth+"月"+cDay+"号"+BMevent+"还有多久";
swfstr = "<center>
"+titstr+"
</center>"; document.write(swfstr); var dbsetSwitch = false; doEvent(); function $(o){return document.getElementById(o);} function doEvent() { var gCtr = $("dbctr"); var gw = $("dateback"); if(!gCtr || !gw){return;} gCtr.onclick = function() { dbsetSwitch = !dbsetSwitch; if (dbsetSwitch) { gCtr.innerHTML = "隐藏倒计时"; gw.style.display="block"; } else { gCtr.innerHTML = titstr; gw.style.display="none"; } dbsetSwitch = (gw.style.display!="none") ? true : false; }; gCtr.onmouseover = function(){this.style.background="#66f";this.style.color="#cef";}; gCtr.onmouseout = function(){this.style.background="none";this.style.color="#000";}; }

三、为MusicGame版定做的手速测试
demo@
http://musicgame.byhh.net

var debughost = "http://www.awflasher.com/blog/attachments/month_0502/FST.swf";
//var debughost = "";
document.write("<center>
开始测试手速!
</center>"); var mgsetSwitch = false; mg() function $(o){return document.getElementById(o);} function mg() { var gCtr = $("mgctr"); var gw = $("mgtest"); if(!gCtr || !gw){return;} gCtr.onclick = function() { mgsetSwitch = !mgsetSwitch; if (mgsetSwitch) { gCtr.innerHTML = "隐藏手速测试!"; gw.style.display="block"; } else { gCtr.innerHTML = "开始测试手速!"; gw.style.display="none"; } mgsetSwitch = (gw.style.display!="none") ? true : false; }; gCtr.onmouseover = function(){ this.style.background="#66f";this.style.color="#cef";}; gCtr.onmouseout = function(){this.style.background="none";this.style.color="#000";}; };

四、为武侠版定做的按星期数分配背景
依次修改b0~b6双引号的值为图片链接。

var $d = new Date();
var b0 = "http://www.byhh.net/f/PieFriends/1167396565/md_1163405084896.jpg";
var b1 = "";
var b2 = "";
var b3 = "";
var b4 = "";
var b5 = "";
var b6 = "";
var aw_bgArr = new Array();
for(var m=0;m<7;m++){aw_bgArr$[$m$]$ = $[$"b"+m$]$;}
var d=$d.getDay();
document.body.background= aw_bgArr$[$d$]$;
Advertisements

12 thoughts on “白云黄鹤 Web Widget System

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.