[email protected]
欢迎多交流,我已经发了邮件你
欢迎多交流,我已经发了邮件你
解决方案 »
- 请问如何让JToggleButton按下和抬起的时候,显示不同且执行不同的功能呢?
- java mysql 语句问题
- GUI设计,如何更改鼠标样式
- 一个编程方面的小技巧,大家来看一下~~~
- 请高手帮忙来改下程序,多线程类问题!
- 急,用jdbc 写"嫺"字保存到informix7.3 db里变成了"?",db 字符集是zh_tw?
- [菜鸟提问] [工具JBuilder x]在一个contentpane窗体中,如何实现关闭取消和保存
- 没学过JAVA被学校逼到企业实习,求解决
- 一个简单的问题(在线等待)
- JInternalFrame的问题。
- 急!!!!!!!如何实现对Vector进行排序
- 『急』【◎【求一小段简单源代码】◎】#
我也正想做这个,能否给我一个学习学习.谢谢先~~
[email protected]
[email protected]
thank you!
please send the codes to me too!
的确是的,用刷新页面的方式会占用一些资源,这是动态实时的一个缺点,而且又不美观(页面会闪烁)
静态实时需要在程序中实时地对数据库中数据的改变做出反应或者定时(重绘曲线,用swing会没有闪烁)
还需用多线程同时连接数据库中的多个表
因为本人也是第一次作这样的事情,没有什么经验,有没有什么资料,全靠自己在想
希望得到大家的帮助,有没有什么好的建议?
我的邮箱:[email protected]
给我发一份,交流一下。
[email protected]
^_^
谢了
新年快乐
谢谢了
祝楼主新年快乐!
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
给你们个好的。
<html xmlns:v="urn:schemas-microsoft-com:vml">
<META content="text/html; charset=gb2312" http-equiv=content-type>
<SCRIPT LANGUAGE=javascript>
<!--
/*******************
*****函数设置******
*****mondify******
*****20030711******
*******************/
var Ox="";//坐标 x,以坐标左顶点为准。
var Oy="";//坐标 y,以坐标左顶点为准。
var LongCase=250;
var LongX=250;//X座轴,长度。
var LongY=250;//Y座轴,长度。//mondify
var caseX=25;//等分单位
var caseY=25;//等分单位
var ArrayX=new Array();
var ArrayY=new Array();
ArrayX[0]=0;
ArrayY[0]=0;ArrayX[1]=33;
ArrayY[1]=33;ArrayX[2]=40;
ArrayY[2]=20;ArrayX[3]=50;
ArrayY[3]=40;ArrayX[4]=60;
ArrayY[4]=10;ArrayX[5]=65;
ArrayY[5]=20;ArrayX[6]=80;
ArrayY[6]=80;ArrayX[7]=85;
ArrayY[7]=85;ArrayX[8]=99;
ArrayY[8]=99;
function mouse()
{
window.status=event.y+","+event.x ;
}
function mousex()
{
alert(window.event.offsetY);
}
function sColor(TakeMode)
{
var sel=window.showModalDialog("selcolor.html", "", "dialogWidth:18.5em; dialogHeight:17.5em; status:0");
if (sel!=null)
{
//alert(sel);
for (var i=0;i<document.all(TakeMode).length;i++)
{
document.all(TakeMode)[i].strokecolor=sel;
}
}
}
//-->
</SCRIPT>
<head>
<object id='VMLRender' classid='CLSID:10072CEC-8CC1-11D1-986E-00A0C955B42E'></object>
<style>
v\:* { behavior: url(#VMLRender); }
.Scale{font-family : Comic Sans Ms;font-size : 9pt;font-weight : bold;color:white;}
.Scale2{font-family : Comic Sans Ms;font-size : 7pt;font-weight : bold;color:white;}
</style>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--function document_oncontextmenu() {
window.event.returnValue=0;
}//-->
</SCRIPT>
<SCRIPT LANGUAGE=javascript FOR=document EVENT=oncontextmenu>
<!--
document_oncontextmenu()
//-->
</SCRIPT>
</head>
<body onmousemove=mouse() bgcolor=Black>
<table style="position:absolute;top:0pt;left:0pt;HEIGHT:330pt;WIDTH:310pt;" >
<tr><td></td></tr></table>
<!--<TEXTAREA rows=40 cols=40 id=textarea1 name=textarea1> background="main.bmp"
25,45</TEXTAREA>-->
<SCRIPT LANGUAGE=javascript>
<!--
var DocumentX="";
for (var nowX=caseX;nowX<LongX;nowX=nowX+caseX)//mondify
{
DocumentX=DocumentX+"<v:line id=Firds name=Firds style='position:absolute;top:50pt;left:45pt;HEIGHT:200pt;WIDTH:200pt;' from="+nowX+"pt,0pt to="+nowX+"pt,"+LongY+"pt strokecolor=#696969 strokeweight=1pt></v:line>";
}
for (var nowY=caseY;nowY<LongY;nowY=nowY+caseY)
{
DocumentX=DocumentX+"<v:line id=Firds name=Firds style='position:absolute;top:50pt;left:45pt;HEIGHT:200pt;WIDTH:200pt;' from=0pt,"+nowY+"pt to="+LongX+"pt,"+nowY+"pt strokecolor=#696969 strokeweight=1pt></v:line>";
}
//textarea1.value=DocumentX;
document.write(DocumentX);
document.write("<v:line id=FirdsY name=FirdsY style='position:absolute;top:50pt;left:45pt;HEIGHT:200pt;WIDTH:200pt;' from=0pt,-10pt to=0pt,"+LongCase+"pt strokecolor=white strokeweight=0.5pt></v:line>");
document.write("<v:line id=FirdsX name=FirdsX style='position:absolute;top:50pt;left:45pt;HEIGHT:200pt;WIDTH:200pt;' from=0pt,"+LongCase+"pt to="+(LongCase+30)+"pt,"+LongCase+"pt strokecolor=white strokeweight=0.5pt></v:line>");
document.write ("<v:polyline style=position:absolute;top:50pt;left:45pt;HEIGHT:200pt;WIDTH:200pt points ='0pt,-10pt 0,-20pt 3pt,-10pt' fillcolor =white strokecolor=white strokeweight =0pt></v:polyline>");
document.write ("<v:polyline style=position:absolute;top:50pt;left:45pt;HEIGHT:200pt;WIDTH:200pt points ='280pt,250pt 270pt,250pt 270pt,247pt' fillcolor =white strokecolor=white strokeweight =0pt></v:polyline>");var bnTd=0;
for (var tdX=100;tdX>=0;tdX=tdX-1)
{
bnTd=bnTd+1;
if (Math.ceil(tdX/2)*2==Math.ceil(tdX))
{
if (Math.ceil(Math.ceil(tdX/5)*5)==Math.ceil(tdX))
{
document.write("<div align=right class=Scale style='position:absolute;left:0pt;top:"+Math.ceil(Math.ceil(tdX*(250/100))+45)+"pt;width:45pt'>");
document.write (100-tdX);
document.write (" </div>");
document.write("<v:line id=tdX name=tdX style='position:absolute;top:50pt;left:45pt;HEIGHT:200pt;WIDTH:200pt;z-index:2' from=0pt,"+tdX*(250/100)+"pt to=10pt,"+tdX*(250/100)+"pt strokecolor=white strokeweight=0.25pt></v:line>");
}
else
document.write("<v:line id=tdX name=tdX style='position:absolute;top:50pt;left:45pt;HEIGHT:200pt;WIDTH:200pt;z-index:2' from=0pt,"+tdX*(250/100)+"pt to=5pt,"+tdX*(250/100)+"pt strokecolor=white strokeweight=0.25pt></v:line>");
}
else
{
if (Math.ceil(Math.ceil(tdX/5)*5)==Math.ceil(tdX))
{
document.write("<v:line id=tdX name=tdX style='position:absolute;top:50pt;left:45pt;HEIGHT:200pt;WIDTH:200pt;z-index:2' from=0pt,"+tdX*(250/100)+"pt to=10pt,"+tdX*(250/100)+"pt strokecolor=white strokeweight=0.25pt></v:line>");
}
else
{
document.write("<v:line id=tdX name=tdX style='position:absolute;top:50pt;left:45pt;HEIGHT:200pt;WIDTH:200pt;z-index:2' from=0pt,"+tdX*(250/100)+"pt to=3pt,"+tdX*(250/100)+"pt strokecolor=white strokeweight=0.25pt></v:line>");
}
}
}
bnTd=0;
{
bnTd=bnTd+1;
if (Math.ceil(tdY/2)*2==Math.ceil(tdY))
{
if (Math.ceil(Math.ceil(tdY/5)*5)==Math.ceil(tdY))
{
if (tdY!=0)
{
document.write("<div align=right class=Scale style='position:absolute;left:"+Math.ceil(Math.ceil(tdY*(LongCase/100))+10)+"pt;top:"+(LongCase+55)+"pt;width:45pt'>");
document.write (tdY);
document.write (" </div>");
document.write("<v:line id=tdY name=tdY style='position:absolute;top:"+(LongCase+40)+"pt;left:45pt;HEIGHT:200pt;WIDTH:200pt;z-index:2' from="+tdY*(LongCase/100)+"pt,0pt to="+tdY*(LongCase/100)+"pt,10pt strokecolor=white strokeweight=0.25pt></v:line>");
}
}
else
document.write("<v:line id=tdY name=tdY style='position:absolute;top:"+(LongCase+45)+"pt;left:45pt;HEIGHT:200pt;WIDTH:200pt;z-index:2' from="+tdY*(LongCase/100)+"pt,0pt to="+tdY*(LongCase/100)+"pt,5pt strokecolor=white strokeweight=0.25pt></v:line>");
}
else
{
/*
if (Math.ceil(Math.ceil(tdY/5)*5)==Math.ceil(tdX))
{
document.write("<v:line id=tdY name=tdY style='position:absolute;top:50pt;left:45pt;HEIGHT:200pt;WIDTH:200pt;z-index:2' from="+tdY*(250/100)+"pt,250pt to=10pt,"+tdY*(250/100)+"pt strokecolor=#cc99cc strokeweight=0.25pt></v:line>");
}
else
{
document.write("<v:line id=tdY name=tdY style='position:absolute;top:50pt;left:45pt;HEIGHT:200pt;WIDTH:200pt;z-index:2' from="+tdY*(250/100)+"pt,250pt to=3pt,"+tdY*(250/100)+"pt strokecolor=#cc99cc strokeweight=0.25pt></v:line>");
}
*/
if (Math.ceil(Math.ceil(tdY/5)*5)==Math.ceil(tdY))
{
document.write("<v:line id=tdY name=tdY style='position:absolute;top:50pt;left:45pt;HEIGHT:200pt;WIDTH:200pt;z-index:2' from="+tdY*(250/100)+"pt,250pt to="+tdY*(250/100)+"pt,"+(250-10)+"pt strokecolor=white strokeweight=0.25pt></v:line>");
}
else
{
document.write("<v:line id=tdY name=tdY style='position:absolute;top:50pt;left:45pt;HEIGHT:200pt;WIDTH:200pt;z-index:2' from="+tdY*(250/100)+"pt,250pt to="+tdY*(250/100)+"pt,"+(250-3)+"pt strokecolor=white strokeweight=0.25pt></v:line>");
}
}
}
function nowLong()
{}//drawLine
function drawLine(LineX1,LineY1,LineX2,LineY2)
{
//translate X.
var sarX1=250*LineX1/100;
var sarX2=250*LineX2/100;
//translate Y.
var sarY1=(100-LineY1)*250/100;
var sarY2=(100-LineY2)*250/100;
//draw Line.
document.write("<v:line id=line name=line style='position:absolute;top:50pt;left:45pt;HEIGHT:200pt;WIDTH:200pt;z-index:5' from="+sarX1+"pt,"+sarY1+"pt to="+sarX2+"pt,"+sarY2+"pt strokecolor=#ffd700 strokeweight=0.25pt></v:line>");
//document.write("<v:line id=CurveLine name=CurveLine style='position:absolute;top:125pt;left:100pt;HEIGHT:300pt;WIDTH:300pt' from="+(sarX1*(250/100))+"pt,"+(sarY1*(250/100))+"pt to="+(sarX2*(250/100))+"pt,"+(sarY2*(250/100))+"pt strokecolor=white strokeweight=0.25pt></v:line>");
}//drawLinevar tempX=0;
var tempY=0;function beginDraw()
{ for(var i=0;i<=ArrayX.length-1;i++)
{
if (i==0)
{
tempX=ArrayX[0];
tempY=ArrayY[0];
}
else
{
tempX=ArrayX[i-1];
tempY=ArrayY[i-1];
drawLine(tempX,tempY,ArrayX[i],ArrayY[i])
}
}}
beginDraw();
//49-299
//-->
</SCRIPT>
<div style=" BORDER-BOTTOM: buttonshadow 1px solid; BORDER-LEFT: buttonhighlight 1px solid; BORDER-RIGHT: buttonshadow 1px solid; BORDER-TOP: buttonhighlight 1px solid;position:absolute;BORDER-LEFT-COLOR: oldlace; BORDER-TOP-COLOR: oldlace;position:absolute;top:310pt;left:15pt;z-index:3"><div style="position:absolute;top:18pt;left:0pt;z-index:4;" class=Scale2 align=right>
(Y单位:%)
</div>
<div style="position:absolute;top:8pt;left:110pt;z-index:3" align=center><font face="楷体_GB2312,新宋体" color="#f5f5f5">!</b></font></div>
</body>
</html>