CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - static color
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
ASP
ASPX.NET
PHP
JSP/Java
FlashMX
Perl
Other Web Code
SilverLight
Search - static color - List
[
WEB Code
]
细分时钟刻度算法.txt
DL : 0
import java.awt.*; import javax.swing.*; public class Exercise8_12 extends JFrame { // Main method with three auguments: // args[0]: hour // args[1]: minute // args[2]: second public static void main(String[] args) { // Declare hour, minute, and second values int hour = 0; int minute = 0; int second = 0; // Check usage and get hour, minute, second if (args.length > 3) { System.out.println( "Usage: java DisplayClock hour minute second"); System.exit(0); } else if (args.length == 3) { hour = new Integer(args[0]).intValue(); minute = new Integer(args[1]).intValue(); second = new Integer(args[2]).intValue(); } else if (args.length == 2) { hour = new Integer(args[0]).intValue(); minute = new Integer(args[1]).intValue(); } else if (args.length == 1) { hour = new Integer(args[0]).intValue(); } // Create a frame to hold the clock Exercise8_12 frame = new Exercise8_12(); frame.setTitle("Exercise 8.12: Display Clock"); frame.getContentPane().add(new DrawClock(hour, minute, second)); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(300, 350); frame.setVisible(true); } } class DrawClock extends JPanel { private int hour; private int minute; private int second; protected int xCenter, yCenter; protected int clockRadius; // Construct a clock panel public DrawClock(int hour, int minute, int second) { this.hour = hour; this.minute = minute; this.second = second; } // Draw the clock public void paintComponent(Graphics g) { super.paintComponent(g); // Initialize clock parameters clockRadius = (int)(Math.min(getSize().width, getSize().height)*0.7*0.5); xCenter = (getSize().width)/2; yCenter = (getSize().height)/2; // Draw circle g.setColor(Color.black); g.drawOval(xCenter - clockRadius,yCenter - clockRadius, 2*clockRadius, 2*clockRadius); g.drawString("12",xCenter-5, yCenter-clockRadius); g.drawString("9",xCenter-clockRadius-10,yCenter+3); g.drawString("3",xCenter+clockRadius,yCenter+3); g.drawString("6",xCenter-3,yCenter+clockRadius+10); // Draw second hand int sLength = (int)(clockRadius*0.85); int xSecond = (int)(xCenter + sLength*Math.sin(second*(2*Math.PI/60))); int ySecond = (int)(yCenter - sLength*Math.cos(second*(2*Math.PI/60))); g.setColor(Color.red); g.drawLine(xCenter, yCenter, xSecond, ySecond); // Draw minute hand int mLength = (int)(clockRadius*0.75); int xMinute = (int)(xCenter + mLength*Math.sin(minute*(2*Math.PI/60))); int yMinute = (int)(yCenter - mLength*Math.cos(minute*(2*Math.PI/60))); g.setColor(Color.blue); g.drawLine(xCenter, yCenter, xMinute, yMinute); // Draw hour hand int hLength = (int)(clockRadius*0.6); int xHour = (int)(xCenter + hLength*Math.sin((hour+minute/60.0)*(2*Math.PI/12))); int yHour = (int)(yCenter - hLength*Math.cos((hour+minute/60.0)*(2*Math.PI/12))); g.setColor(Color.green); g.drawLine(xCenter, yCenter, xHour, yHour); // Display current time in string g.setColor(Color.red); String time = "Hour: " + hour + " Minute: " + minute + " Second: " + second; FontMetrics fm = g.getFontMetrics(); g.drawString(time, (getSize().width - fm.stringWidth(time))/2, yCenter+clockRadius+30); // Display more details on the clock for (int i=0; i<60; i++) { double percent; if (i%5 == 0) { percent = 0.9; } else { percent = 0.95; } //细分时钟刻度 int xOuter = (int)(xCenter + clockRadius*Math.sin(i*(2*Math.PI/60))); int yOuter = (int)(yCenter - clockRadius*Math.cos(i*(2*Math.PI/60))); int xInner = (int)(xCenter + percent*clockRadius*Math.sin(i*(2*Math.PI/60))); int yInner = (int)(yCenter - percent*clockRadius*Math.cos(i*(2*Math.PI/60))); g.drawLine(xOuter, yOuter, xInner, yInner); } } }
Date
: 2011-08-20
Size
: 4.17kb
User
:
hellosoft010@sina.com
[
WEB Code
]
ajax2
DL : 0
DATAGRID异步获取数据 <html> <head> <title>AJAX静态分页</title> <meta http-equiv="content-type" content="text/html charset=gb2312"> <style type="text/css"> <!-- body { text-align:center font:14px Verdana,sans-serif } a:link,a:visited { color:#00f text-decoration:none } a:hover { color:#f00 text-decoration:underline } #main { width:450px background:#f2f2f2 border:1px #999 solid padding:10px text-align:left line-height:150% margin:0 auto } #title { width:100% line-height:30px border-bottom:1px #999 solid display:table } #left { float:left width:50% text-align:left font-size:14px font-weight:bold } #right { float:left width:50% text-align:right } #content { width:100% margin:10px 0 clear:both } #download { width:100% margin:10px 0 line-height:150% }-DataGrid Asynchronous access to data <html> <head> <title> AJAX static page </ title> <meta http-equiv= content-type content= text/html charset=gb2312 > <style type = text/css ><!-- body (text-align: center font: 14px Verdana, sans-serif) a: link, a: visited (color:# 00f text-decoration: none) a: hover (color: 23 ! f00 text-decoration: underline)# main (width: 450px background:# f2f2f2 border: 1px# 999 solid padding: 10px text-align: left line-height: 150 margin: 0 auto)# title ( width: 100 line-height: 30px border-bottom: 1px# 999 solid display: table)# left (float: left width: 50 text-align: left font-size: 14px font-weight: bold) 23 ! right (float: left width: 50 text-align: right)# content (width: 100 margin: 10px 0 clear: both)# download (width: 100 margin: 10px 0 line-height: 150 )
Date
: 2025-12-23
Size
: 17kb
User
:
[
WEB Code
]
HTMLTOJSP
DL : 0
以静态化的地址来访问动态页面 如: http://localhost:8080/articlelist.jsp?ty_id=1&color=red 可以用 http://localhost:8080/articlelist-1-1red.html 来访问 接受参数时 参数名称遵循 param+整数(>=1) 例如第一个参数名称为 param1 第二个参数名称为 param2 依次类推 【完全自己写的挺简陋的不过有参考价值】-Of a static address to access the dynamic page such as: http://localhost:8080/articlelist.jsp?ty_id=1
Date
: 2025-12-23
Size
: 5kb
User
:
王晓然
[
WEB Code
]
4
DL : 0
以ASP为开发工具,做的HTML静态版购物系统.HTML静态版以其强大的功能,拥有5套不同色调的模板,后台只须轻轻一点,整站风格即可瞬间更换,从此摆脱风格单一、枯燥的界面,每天给客户以新的感觉、新的享受!-To ASP for the development of tools to do the static HTML version of the shopping system. HTML static version of its powerful features, with 5 sets of different color templates, background only gently point, the whole point style can be an instant replacement, then from the style of a single , boring interface to customers every day with a new feeling, new to enjoy!
Date
: 2025-12-23
Size
: 3.65mb
User
:
邓燕
[
WEB Code
]
zhuna_api_v5_html
DL : 0
住哪酒店预订网API_v5.0 ASP 淘宝色系静态版 此版本集成了原有4.0版中的会展信息、会展场馆、全国车展、机场、大学院校、地铁等高关注度词汇列表,以及新增的酒店点评信息、酒店问题,整体网站风格采用淘宝色系设计,效果清新,对于客人的预定体验有更好的增加。伪静态版暂时不支持其他版本的直接升级(和2.0版规则不一样),规则上增加了会展的静态规则请增加-Zhu Na Hotels API_v5.0 ASP Taobao colors in this version of the integration of the static version of the original version 4.0 of the Convention and Exhibition information, exhibition venues, the National Motor Show, airports, universities, subway high attention, vocabulary lists, and new Comment hotels information, hotel issues, the overall site design style, using Taobao color, effects and fresh experience for the guests scheduled to have a better increase. Pseudo-static version of the temporary does not support other versions of the direct upgrade (and the rules are not the same as version 2.0), the rules of the Convention on the increase in the static rule, increase
Date
: 2025-12-23
Size
: 1.49mb
User
:
tkone
[
WEB Code
]
CMS001_V3.0Beta
DL : 0
CMS001 V3.0改进说明 1、改进了标签系统,在标签中支持标准的ASP代码,用{}来代替,让标签有更强的扩展性。尤其在隔行换色,条件输出方面,CMS001具有极大的优势,可以说是国内首创。CMS001也支持自定义函数了,格式:{=自定义函数名称(参数列表)},参数列表中支持现有的标签。 2、优化了缓存系统 为了最大程度地减少服务器压力,CMS001内核进行了重新架构,速度更快,更加省资源了。 3、增加了会员系统 会员系统采用AJAX无刷新的注册方法,让系统更加友好,具有注册、登录、忘记密码、找回密码这些功能。 4、增加了博客系统 博客系统支持纯静态和伪静态,您可以在后台进行设置,博客的模板具有极强的扩展性能。博客的菜单可以自定义。 5、增加了专题系统 6、系统设置做了改进,加长了版权信息,可以放入大段文本,增加了统计代码字段,让你可以更加方便加统计代码。-CMS001 V3.0 Improved description 1, improved labeling system, the label supports standard ASP code, using {} instead, the label has more scalability. Particularly in the interlace for color, condition the output side, CMS001 has great advantages, it can be said is the first. CMS001 also support custom functions, the format: {= self-defined function name (parameter list)}, the parameter list to support the existing labels. 2 to optimize the cache system In order to minimize pressure on the server, CMS001 re-kernel architecture, faster, more provincial resources. 3, an increase of membership system Membership system uses AJAX without refreshing the registration method, make the system more friendly, with registration, login, forgotten password, retrieve the password of these features. 4, an increase blog system Blog system supports pure static and pseudo-static, you can set in the background, blog template has a very strong expansion properties. The menu can be customized b
Date
: 2025-12-23
Size
: 3.33mb
User
:
dddd
[
WEB Code
]
lUOCMS_UTF8_V2.0.101201
DL : 0
LUOCSM的特点:: 全站伪静态处理 模板DIV+CSS架构 自定义标题、关健字、描述 自定义栏目模板 自定义内容页模板 上传图片缩略图处理 栏目无限分类 后台添加内容保存远程图片 自定义标题、栏目颜色 标签简便易用 -LUOCSM features:: pseudo-static treatment of site-wide template structure DIV+ CSS to customize the title, key words, custom section describes the content page template to customize the template processing part unlimited upload images thumbnail Classification add content to save the remote picture background custom title, part easy to use color labels
Date
: 2025-12-23
Size
: 871kb
User
:
吴浩
[
WEB Code
]
JIUTIAN
DL : 0
JIUTIAN交换链 主要功能介绍: 1.申请加入九天交换链的网站按最后点进的时间排序首页和分类显示链接,分类以昨日点入时间为准,每晚十二点后生成静态。 2.每来访一个IP,就会自动排到第一(无延时),自动收录功能开通的站要刷新一下才能显示,当天来路不同,显示颜色也不同 3.首页白天3分钟,晚上5分钟自动更新一次,全站24小时手动更新一次。 4.站内搜索功能。-JIUTIAN swap chain Features: 1. Apply to join the the Ninth Heaven exchange chain of website into final point of time sorting the Home and classification show link, classification to yesterday point in time shall prevail generate static night after twelve o' clock. 2. Every visit to an IP, will be automatically routed to the first (no delay) automatically refresh to display included the stop function is activated on day, different antecedents, different color 3 home three minutes during the day. Evening 5 minutes automatically updated every station 24 hours manually update the time. Search function.
Date
: 2025-12-23
Size
: 1.31mb
User
:
dsgag5088
[
WEB Code
]
fxwzdh_v1.0
DL : 0
飞象网址导航2014纯静态无后台版,可运行于ASP、php等环境。全新完美高仿,纯净无错,简洁漂亮,上传即可使用,轻松建立网址导航站! 飞象网址导航2014新版支持自动获取北京时间、日期、农历,支持自动获取所在地城市天气预报,支持常用邮箱登陆。自带有Feedbook留言板,留言板管理后台http://你的网站/feedback/admin_login.htm 用户名:admin 密码:admin飞象网址导航更新记录: 2012-9-17 更换新LOGO,更新彩色图标。 2012-12-30 修正部分失效网址。 2014-1-5 全新1.0版本。 默认首页:index.html-Dumbo purely static site navigation 2014 no background version that runs on ASP, php environments. The new high imitation perfect, pure no mistake, simple and beautiful, upload to use, easy to create site navigation station! Dumbo site navigation 2014 version supports automatic acquisition GMT, date, lunar calendar, supports automatic access location city forecasts, supports common mail login. Comes with Feedbook message board, message board management background http:// to your website/feedback/admin_login.htm Username: admin password: admin Dumbo site navigation update records: 2012-9-17 replaced with new LOGO, updated color icons. 2012-12-30 Fixed some invalid URL. 2014-1-5 new 1.0 version. The default home page: index.html
Date
: 2025-12-23
Size
: 3.24mb
User
:
spudn57
[
WEB Code
]
wzdh
DL : 0
PHP网址导航站全能导航网源代码 v3.1源码下载,后台方面包含了网址管理、数据库管理和静态页生成等功能;前台部分风格设计简洁,带百度手写输入功能,并可实现版面自由换色。安装方法: 1、用浏览器访问 http://您的域名/安装目录/install/, 根据提示填写 mysql 配置信息、管理员账号信息,进行下一步; 2、安装时默认设置后台管理 用户:admin 密码:123456 (以防安装出错建议默认安装,然后登陆后台修改密码) 3、安装时请尽量将本程序源码放在根目录下,登录后台后要先生成首页和分类页-PHP site navigation station Almighty navigation network source code v3.1 source code download contains the URL backstage areas management, database management, and static page generation capabilities reception section concise style, with Baidu handwriting input, and to achieve the freedom to change the color layout . Installation Method: 1, accessed by your browser http:// domain/installation directory/install /, fill mysql configuration information, the administrator account information, the next step according to the prompt 2, the default setting when you install Admin user: admin Password: 123456 (default installation is recommended to prevent installation errors, and then landing back to change the password) 3, please try to install the program source code placed in the root directory, first generation home page and category pages after login background
Date
: 2025-12-23
Size
: 7.37mb
User
:
fpudn28
[
WEB Code
]
lrarticle_v3.5.8-(1)
DL : 0
程序简介:一款适合中小型文章(新闻)阅读的网站源码。运行环境:PWS/IIS(ASP+Access),可自由选择使用 ASP 版本或者 HTML 版本。默认有6种界面风格(蓝/红/绿/紫/灰/黄)。界面语言支持中文简体/繁体的转换。 网站管理功能简介: 数据更新:更新网站的统计数据,创建/更新静态的 HTML 页面文件、网站地图文件,清除静态的 HTML 页面文件。 文章管理:添加(修改)文章,批量设置(更改)文章标题的字体/字号/颜色、文章类别(分类)、阅读权限、文章状态、栏目显示、会员编号、整理日期、清除阅读次数、删除文章,添加文章时在同一类别及分类下会检测重复性。-Program description: a small article (News) to read the website source code. Operating environment: PWS/IIS (ASP+Access), which can freely choose to use the ASP version or HTML version. There are 6 types of interface style (blue/red/Green/Purple/Grey/yellow). Interface language support for simplified Chinese/traditional Chinese conversion. Website management function: Data update: update the site of the statistical data, create/update the static HTML page file, web site map file, clear the static HTML page file. Article management: add (modify) the article, batch settings (change) the title of the article font/font/color, article category (classification), reading authority, article status, column shows, membership number, finishing date, the number of read, delete the article, add the article when the same category and classification will detect repeatability.
Date
: 2025-12-23
Size
: 3.48mb
User
:
xxpudn64
[
WEB Code
]
114la_UTF8_v1.14_20101216
DL : 0
114啦网址导航建站系统1.14 2010-12-16 版本升级列表: 增加可后台控制的搜索引擎模块,可随意添加搜索引擎集成于导航站; 后台选择链接颜色时由class控制(如果是红、绿、蓝); 去掉名站轮播; 增加宽屏版本,生成静态文件,相对独立; 增加分类自定义模板,并合并首页模板为一个文件;-114 web site navigation system 1.14 2010-12-16 version of the upgrade list: Add the search engine module can be controlled by the background, can be arbitrarily added search engine integrated in the navigation station Background to choose the color of the link by the class control (if it is red, green, blue) Remove the carousel b. Widescreen version, generating static files, relatively independent Increase the classification of custom templates, and combined with the home page template for a file
Date
: 2025-12-23
Size
: 3.98mb
User
:
卓真真
[
WEB Code
]
phpnew8
DL : 0
1:升级0.9.7编辑器. 2:增加代码高亮插件功能. 3:放弃系统自带生成html静态文件支持. 4:修复附件下载的记录数及中文名乱码问题. 5:增加主题颜色功能,主要对标题有作用. 6:增加主题管理面榜. 新功能待优化. 7:美化及重新调整列表页结构. 8:美化首页显示样式.-1: upgrade 0.9.7 editor. 2: add code highlighting plug-in functionality. 3: to give up the system comes with HTML static file support. 4: repair attachment download record number and name Chinese garbled. 5: to increase the theme of color features, mainly on the role of the title. 6: added theme management list. New features to be optimized. 7: beautify and re adjust the list page structure. 8: beautify the home page display style.
Date
: 2025-12-23
Size
: 1.02mb
User
:
gmpudn23
[
WEB Code
]
SUN2008
DL : 0
1、数据调用 该功能使界面与程序分离实施变得更加容易,美工无需任何编程基础即可完成数据调用操作。 2、交互设计 该功能可以方便的为栏目提供个性化性息功能及交互功能,为产品栏目添加产品颜色尺寸等属性或简单的留言和订单功能无需另外开发模块。 3、静态生成 触发式静态生成-1, data call This function makes the interface and the program separate and implement more easily. The utility can complete the data call operation without any programming foundation. 2, interactive design This function can provide personalized and interactive function for the column, and add product color dimension and other attributes or simple message and order function to the product column. 3, static generation Triggered static generation
Date
: 2025-12-23
Size
: 590kb
User
:
hmpudn26
[
WEB Code
]
phpjt
DL : 0
程序特色: 1.全站(包括打开页面)静态生成-后台可以选择不生成. 2.多种风格配色静态切换. 3.自制/添加模板风格,后台编辑, 4.广告后台管理. 5.自定生成页面,按ID或一次性生成. 6.程序生成速度快-Program features: 1 Total Station (including open page) static generation- the background can choose not to generate. 2 color matching static switch. 3 homemade/add template style, background editing, 4 advertising background management. 5 self generated page, according to ID or one-time generation. 6 program generation speed...
Date
: 2025-12-23
Size
: 115kb
User
:
impudn37
[
WEB Code
]
wonkoo_sun
DL : 0
SUN1.08实现了智能的数据调用,使得没有程序基础的用户不用写任何代码即可搭建完美的企业站系统(包括其它类型) b、交互模块 交互设计模块使信息的展示变得全面而多样化,交互设计模块使用户可以很轻松的展示产品的类型、颜色、价格等特征信息,并且也可以方便的设计自己的在线留言、在线申请、在线调查等交互内容。 c、后台友好 后台界面友好化,在技术人员配置完成后,后台仅显示需求录入编辑数据的直观界面,使得对网站维护变得相当容易。 d、静态生成-SUN1.08 implementation of intelligent data calls, so that no program based users do not have to write any code to build the perfect enterprise station system (including other types) B, interactive module Interaction design module is used to display information more comprehensive and diversified, interactive design module so that the user can easily demonstrate the product type, color, price and other characteristics of information, and can also be convenient to design their own online message, online application, online surveys interactive content. C, background friendly Backstage friendly interface, after the completion of the technical personnel configuration, the background only show the need to enter the user interface editing data, making the site maintenance is very easy. D, static generation
Date
: 2025-12-23
Size
: 550kb
User
:
impudn52
[
WEB Code
]
blogcoolcms.tar
DL : 0
支持多用户管理,无限分类,超强模板功能,全静态页输出,分级管理,文章专题功能,支持所见即所得的html编辑器,会员管理、模板在线编辑、自定义扩展数据字段,支持数据表前缀功能,支持图片上传生成缩略图、并自定义文字水印、文字大小、文字色彩等功能-Support multi- user management, unlimited categories and super template function, fully static page output, classification management, function feature article, support the resulting HTML editor, member management, online editing template, custom extension field data, support the data table prefix, upload a picture thumbnail generation, and custom text watermark, text size, text color support function
Date
: 2025-12-23
Size
: 2.1mb
User
:
lmpudn43
[
WEB Code
]
tsdqqwzdh_swb
DL : 0
网址导航系统简介: 1、TSDQQ网址导航系统,是一套免费开源的ASP网站系统。适合快速建立网址导航网站的各位站长使用。 2、本系统采用html+css架构,兼容FF,IE7及以上等主流浏览器【未测试IE6】。 2、TSDQQ网址导航系统的宗旨,纯净,简约,美观,免费。上传到主目录和任何二级目录均可以使用。 3、网站有后台,可以关闭任何已经收录的网址,简单说,网址设有置顶、关闭、套色、名站等可带来收入的选项。 4、网站前后台分离,安全稳定,防注入功能。数据库设有防下载处理。做了基本的防攻击处理。 5、网站无预留后门,无病毒,通过自带的程序直接可以使用。只要主机支持fso即可实现无组建全站静态。 6、全站除首页友情链接外,均带 nofollow 标签,防止传递权重。 7、语言版本:GB2312-Web site navigation system: 1, TSDQQ site navigation system is a free open source ASP website system. Suitable for the rapid establishment of site navigation site webmaster. 2, the system uses html+css architecture, compatible with FF, IE7 and other mainstream browsers [not tested IE6]. 2, TSDQQ site navigation system purposes, pure, simple, beautiful, free. Upload to the home directory and any two level directory can be used. 3, website background, can close any has included a web site, simply said, a web site top, close, color, line etc. can bring revenue options. 4, the site before and after the separation of Taiwan, safe and stable, anti injection function. Database with anti download. Do the basic anti attack treatment. 5, the site does not have the back door, no virus, through the program can be used directly. As long as the host to support FSO can be achieved without the formation of static. 6, the station in addition to the home page links, all with nofollow tags, to pre
Date
: 2025-12-23
Size
: 1.07mb
User
:
su
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.