??xml version="1.0" encoding="utf-8" standalone="yes"?>久久精品一区蜜桃臀影院,国产中文字幕在线看,欧美日韩一区二区电影http://www.aygfsteel.com/hgq0011/category/2991.html单的事情重复做,׃产生累积效应Q?/description>zh-cnTue, 20 Mar 2007 07:41:47 GMTTue, 20 Mar 2007 07:41:47 GMT60怎样使得在Applet中加入的快捷键在客户端正怋用呢Q?/title><link>http://www.aygfsteel.com/hgq0011/archive/2007/03/20/104896.html</link><dc:creator>Harryson</dc:creator><author>Harryson</author><pubDate>Tue, 20 Mar 2007 02:41:00 GMT</pubDate><guid>http://www.aygfsteel.com/hgq0011/archive/2007/03/20/104896.html</guid><wfw:comment>http://www.aygfsteel.com/hgq0011/comments/104896.html</wfw:comment><comments>http://www.aygfsteel.com/hgq0011/archive/2007/03/20/104896.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.aygfsteel.com/hgq0011/comments/commentRss/104896.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/hgq0011/services/trackbacks/104896.html</trackback:ping><description><![CDATA[ 怎样使得在Applet中加入的快捷键在客户端正怋用呢Q? 有一个需求要用到applet Q这个到时没有什么问题。但是,用户比较成熟Q都习惯用快捷键来操作。我在单独测试的applet 中的快捷键能够用,但是加入到页面中׃其作用,不知道ؓ什么?能有什么办法呢Q谢谢!<img src ="http://www.aygfsteel.com/hgq0011/aggbug/104896.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/hgq0011/" target="_blank">Harryson</a> 2007-03-20 10:41 <a href="http://www.aygfsteel.com/hgq0011/archive/2007/03/20/104896.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>javascript中string的操?/title><link>http://www.aygfsteel.com/hgq0011/archive/2006/10/10/74289.html</link><dc:creator>Harryson</dc:creator><author>Harryson</author><pubDate>Tue, 10 Oct 2006 06:21:00 GMT</pubDate><guid>http://www.aygfsteel.com/hgq0011/archive/2006/10/10/74289.html</guid><wfw:comment>http://www.aygfsteel.com/hgq0011/comments/74289.html</wfw:comment><comments>http://www.aygfsteel.com/hgq0011/archive/2006/10/10/74289.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/hgq0011/comments/commentRss/74289.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/hgq0011/services/trackbacks/74289.html</trackback:ping><description><![CDATA[ <a >http://blog.csdn.net/zhukejun/archive/2006/08/22/1105743.aspx</a> <img src ="http://www.aygfsteel.com/hgq0011/aggbug/74289.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/hgq0011/" target="_blank">Harryson</a> 2006-10-10 14:21 <a href="http://www.aygfsteel.com/hgq0011/archive/2006/10/10/74289.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[转脓]在b/s开发中l常用到的javaScript技?http://www.aygfsteel.com/hgq0011/archive/2006/09/18/70243.htmlHarrysonHarrysonMon, 18 Sep 2006 03:36:00 GMThttp://www.aygfsteel.com/hgq0011/archive/2006/09/18/70243.htmlhttp://www.aygfsteel.com/hgq0011/comments/70243.htmlhttp://www.aygfsteel.com/hgq0011/archive/2006/09/18/70243.html#Feedback0http://www.aygfsteel.com/hgq0011/comments/commentRss/70243.htmlhttp://www.aygfsteel.com/hgq0011/services/trackbacks/70243.htmlhttp://blog.matrix.org.cn/page/pawenwen?entry=%E5%9C%A8b_s%E5%BC%80%E5%8F%91%E4%B8%AD%E7%BB%8F%E5%B8%B8%E7%94%A8%E5%88%B0%E7%9A%84javascript%E6%8A%80%E6%9C%AF

Harryson 2006-09-18 11:36 发表评论
]]>
[转脓]l网图片带来滚动显C效果:Lightbox JS http://www.aygfsteel.com/hgq0011/archive/2006/05/18/46724.htmlHarrysonHarrysonThu, 18 May 2006 00:41:00 GMThttp://www.aygfsteel.com/hgq0011/archive/2006/05/18/46724.htmlhttp://www.aygfsteel.com/hgq0011/comments/46724.htmlhttp://www.aygfsteel.com/hgq0011/archive/2006/05/18/46724.html#Feedback1http://www.aygfsteel.com/hgq0011/comments/commentRss/46724.htmlhttp://www.aygfsteel.com/hgq0011/services/trackbacks/46724.htmlhttp://solidot.org/article.php/20060517070426500

Harryson 2006-05-18 08:41 发表评论
]]>
面快捷键ctrl+enter表示http://www.aygfsteel.com/hgq0011/archive/2006/03/16/35535.htmlHarrysonHarrysonThu, 16 Mar 2006 00:55:00 GMThttp://www.aygfsteel.com/hgq0011/archive/2006/03/16/35535.htmlhttp://www.aygfsteel.com/hgq0011/comments/35535.htmlhttp://www.aygfsteel.com/hgq0011/archive/2006/03/16/35535.html#Feedback0http://www.aygfsteel.com/hgq0011/comments/commentRss/35535.htmlhttp://www.aygfsteel.com/hgq0011/services/trackbacks/35535.htmlevent.ctrlKey && event.keyCode == 13


Harryson 2006-03-16 08:55 发表评论
]]>
[转蝲]制作从屏q右下方逐渐弹出的消息框http://www.aygfsteel.com/hgq0011/archive/2006/01/06/26896.htmlHarrysonHarrysonFri, 06 Jan 2006 08:06:00 GMThttp://www.aygfsteel.com/hgq0011/archive/2006/01/06/26896.htmlhttp://www.aygfsteel.com/hgq0011/comments/26896.htmlhttp://www.aygfsteel.com/hgq0011/archive/2006/01/06/26896.html#Feedback5http://www.aygfsteel.com/hgq0011/comments/commentRss/26896.htmlhttp://www.aygfsteel.com/hgq0011/services/trackbacks/26896.html 

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>完美仿MSN右下角弹出广告附带关闭按?/SPAN></title>
</head>
<Script language="JavaScript">
<!--
window.onload 
= getMsg;
window.onresize 
= resizeDiv;
window.onerror 
= function(){}
//短信提示使用(asilasd)
var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0;
function getMsg()
{
try{
divTop 
= parseInt(document.getElementById("eMeng").style.top,10)
divLeft 
= parseInt(document.getElementById("eMeng").style.left,10)
divHeight 
= parseInt(document.getElementById("eMeng").offsetHeight,10)
divWidth 
= parseInt(document.getElementById("eMeng").offsetWidth,10)
docWidth 
= document.body.clientWidth;
docHeight 
= document.body.clientHeight;
alert('divTop  '
+divTop)
alert('divHeight  '
+divHeight)
alert('docHeight  '
+docHeight)
document.getElementById(
"eMeng").style.top = parseInt(document.body.scrollTop,10+ docHeight + 10;//  divHeight
document.getElementById("eMeng").style.left = parseInt(document.body.scrollLeft,10+ docWidth - divWidth
document.getElementById(
"eMeng").style.visibility="visible"
objTimer 
= window.setInterval("moveDiv()",10)
}

catch(e){}
}


function resizeDiv()
{
i
+=1
if(i>300) closeDiv() //客户想不用自动消q用户来自己关闭所以屏蔽这?/SPAN>
try{
divHeight 
= parseInt(document.getElementById("eMeng").offsetHeight,10)
divWidth 
= parseInt(document.getElementById("eMeng").offsetWidth,10)
docWidth 
= document.body.clientWidth;
docHeight 
= document.body.clientHeight;

document.getElementById(
"eMeng").style.top = docHeight - divHeight + parseInt(document.body.scrollTop,10)
document.getElementById(
"eMeng").style.left = docWidth - divWidth + parseInt(document.body.scrollLeft,10)
}

catch(e){}
}


function moveDiv()
{
    
try
    
{
        
//alert('document.getElementById("eMeng").style.top  '+document.getElementById("eMeng").style.top)
        if(parseInt(document.getElementById("eMeng").style.top,10<= (docHeight - divHeight + parseInt(document.body.scrollTop,10)))
        
{
        
        window.clearInterval(objTimer)
        
//objTimer = window.setInterval("resizeDiv()",1)
        }

        divTop 
= parseInt(document.getElementById("eMeng").style.top,10)
        document.getElementById(
"eMeng").style.top = divTop - 1
        
//alert('scrollTop   '+parseInt(document.body.scrollTop,10))
    }

    
catch(e){}
}

function closeDiv()
{
document.getElementById('eMeng').style.visibility
='hidden';
if(objTimer) window.clearInterval(objTimer)
}

-->
</Script>

<!--温馨提示代码开?/SPAN>-->

<DIV id=eMeng style="BORDER-RIGHT: #455690 1px solid; BORDER-TOP: #a6b4cf 1px solid; Z-INDEX:99999; LEFT: 0px; VISIBILITY: hidden; BORDER-LEFT: #a6b4cf 1px solid; WIDTH: 180px; BORDER-BOTTOM: #455690 1px solid; POSITION: absolute; TOP: 0px; HEIGHT: 116px; BACKGROUND-COLOR: #c9d3f3">
<TABLE style="BORDER-TOP: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid" cellSpacing=0 cellPadding=0 width="100%" bgColor=#AFDCF3 border=0>
<TBODY>
  
<TR bgColor=#6699cc>
   
<TD style="font-size: 12px; background-image: url('msgTopBg.gif'); color: #0f2c8c" width=30 height=24></TD>
   
<TD style="font-weight: normal; font-size: 12px; background-image: url('msgTopBg.gif'); color: #ffffff; padding-left: 4px; padding-top: 4px" vAlign=center width="100%"> |站温馨提示Q?/SPAN></TD>
   
<TD style="background-image: url('msgTopBg.gif'); padding-right: 2px; padding-top: 2px" vAlign=center align=right width=19><span title=关闭 style="CURSOR: hand;color:white;font-size:12px;font-weight:bold;margin-right:4px;" onclick=closeDiv() >×</span><!--<IMG title=关闭 style="CURSOR: hand" onclick=closeDiv() hspace=3 src="msgClose.jpg">--></TD>
  
</TR>
  
<TR>
   
<TD style="background-image: url('http://pic.tianyaclub.com/images/windty_bg.jpg'); padding-right: 1px; padding-bottom: 1px" colSpan=3 height=90>
    
<DIV style="BORDER-RIGHT: #b9c9ef 1px solid; PADDING-RIGHT: 13px; BORDER-TOP: #728eb8 1px solid; PADDING-LEFT: 13px; FONT-SIZE: 12px; PADDING-BOTTOM: 13px; BORDER-LEFT: #728eb8 1px solid; WIDTH: 100%; COLOR: #1f336b; PADDING-TOP: 18px; BORDER-BOTTOM: #b9c9ef 1px solid; HEIGHT: 100%">先飞电脑技术网全新改版Q免费精品网l资源,你用了吗Q?/SPAN><BR>
    
<DIV align=center style="word-break:break-all"><!--<a >--><href="http://www.xfbbs.com" target="_blank">
    
<font color=#FF0000>q入|站览</font></a></DIV>

    
</DIV>
   
</TD>
  
</TR>
</TBODY>
</TABLE>
</DIV>
<!--温馨提示代码l束-->
</html> 


Harryson 2006-01-06 16:06 发表评论
]]>
[转脓]javascript事g查询l合http://www.aygfsteel.com/hgq0011/archive/2005/09/07/12345.htmlHarrysonHarrysonWed, 07 Sep 2005 14:33:00 GMThttp://www.aygfsteel.com/hgq0011/archive/2005/09/07/12345.htmlhttp://www.aygfsteel.com/hgq0011/comments/12345.htmlhttp://www.aygfsteel.com/hgq0011/archive/2005/09/07/12345.html#Feedback0http://www.aygfsteel.com/hgq0011/comments/commentRss/12345.htmlhttp://www.aygfsteel.com/hgq0011/services/trackbacks/12345.html
javascript事g查询l合     选择?feng_sundy ?Blog
关键?/FONT>   javascript事g查询l合
出处  

javascript事g查询l合
 

javascript事g查询l合
click()   对象.click()   使对象被点击?BR>closed   对象.closed   对象H口是否已关闭true/false
clearTimeout(对象) 清除已设|的setTimeout对象
clearInterval(对象) 清除已设|的setInterval对象
confirm("提示信息") 弹出认框,定q回true取消q回false
cursor:样式  更改鼠标样式 hand crosshair text wait help default auto e/s/w/n-resize

event.clientX  q回最后一ơ点击鼠标X坐标|
event.clientY  q回最后一ơ点击鼠标Y坐标|
event.offsetX  q回当前鼠标悬停X坐标?BR>event.offsetY  q回当前鼠标悬停Y坐标?/P>

document.write(document.lastModified)  |页最后一ơ更新时?BR>document.ondblclick=x  当双击鼠标生事?BR>document.onmousedown=x  单击鼠标键生事?/P>

document.body.scrollTop; q回和设|当前竖向滚动条的坐标|M函数配合,
document.body.scrollLeft; q回和设|当前横向滚动务的坐标|M函数配合Q?BR>document.title  document.title="message"; 当前H口的标题栏文字
document.bgcolor document.bgcolor="颜色?; 改变H口背景颜色
document.Fgcolor document.Fgcolor="颜色?; 改变正文颜色
document.linkcolor document.linkcolor="颜色?; 改变联接颜?BR>document.alinkcolor document.alinkcolor="颜色?; 改变正点击联接的颜色
document.VlinkColor document.VlinkColor="颜色?; 改变已访问联接的颜色
document.forms.length q回当前form表单?BR>document.anchors.length q回当前锚的数?BR>document.links.length q回当前联接的数量
document.onmousedown=x 单击鼠标触发事g
document.ondblclick=x 双击鼠标触发事g
defaultStatus  window.status=defaultStatus; 状态栏讄默认昄

function  function xx(){...}  定义函数
isNumeric               判断是否是数?BR>innerHTML  xx=对象.innerHTML  输入某对象标{中的html源代?BR>innerText  divid.innerText=xx  以div定位以id命名的对象D为XX

location.reload(); 使本刷斎ͼtarget可等于一个刷新的|页

Math.random()           随机涉|,只能??之间的数,如果要得到其它数,可以?10,再取?BR>Math.floor(number) 对象number转ؓ整数Q舍取所有小?BR>Math.min(1,2)  q回1,2哪个?BR>Math.max(1,2)  q回1,2哪个?/P>

navigator.appName q回当前览器名U?BR>navigator.appVersion q回当前览器版本号
navigator.appCodeName q回当前览器代码名?BR>navigator.userAgent q回当前览器用户代标志

onsubmit  onsubmit="return(xx())"  使用函数q回?BR>opener   opener.document.对象  控制原打开H体对象

prompt   xx=window.prompt("提示信息","预定?); 输入语句
parent   parent.框架?对象 控制框架面

return   return false   q回?BR>random   随机参数Q??之间Q?BR>reset()   form.reset();   使form表单内的数据重置

split("")  string.split("")  string对象字符以逗号隔开
submit()  form对象.submit()  使form对象提交数据

String对象?nbsp; charAt(x)对象 反回指定对象的第多少位的字母
       lastIndexOf("string") 从右到左询找指定字符Q没有返?1
       indexOf("string") 从左到右询找指定字符Q没有返?1
       LowerCase()  对象全部{为小?
       UpperCase()  对象全部{为大?BR>substring(0,5)  string.substring(x,x)  q回对象中从0?的字W?BR>setTimeout("function",time) 讄一个超时对?BR>setInterval("function",time) 讄一个超时对?/P>

toLocaleString() x.toLocaleString()  从x旉对象中获取时_以字W串型式存在
typeof(变量?   查变量的cdQ值有QString,Boolean,Object,Function,Underfined

window.event.button==1/2/3 鼠标键左键等?右键{于2两个键一h?
window.screen.availWidth q回当前屏幕宽度(I白I间)
window.screen.availHeight q回当前屏幕高度(I白I间)
window.screen.width  q回当前屏幕宽度(分L率?
window.screen.height  q回当前屏幕高度(分L率?
window.document.body.offsetHeight; q回当前|页高度
window.document.body.offsetWidth; q回当前|页宽度
window.resizeTo(0,0)  窗口设|宽?BR>window.moveTo(0,0)  窗口移到某位置
window.focus()  使当前窗口获得焦?BR>window.scroll(x,y) H口滚动条坐标,y控制上下UdQ须与函数配?BR>window.open()  window.open("地址","名称","属?)
   属?toolbar(工具?,location(地址?,directions,status(状态栏),
   menubar(菜单?,scrollbar(滚动?,resizable(改变大小),  width(?,height(?,fullscreen(?nbsp;                                   ?,scrollbars(全屏时无滚动条无??channelmode(宽屏),left(打开H口x坐标),top(打开H口y坐标)
                        window.location = 'view-source:' + window.location.href  应用事g查看|页源代?


a=new Date();  //创徏aZ个新的时期对?BR>y=a.getYear(); //y的gؓ从对象a中获取年份?两位数年?BR>y1=a.getFullYear(); //获取全年份数 四位数年?BR>m=a.getMonth();  //获取月䆾?BR>d=a.getDate();  //获取日期?BR>d1=a.getDay();  //获取当前星期?BR>h=a.getHours();  //获取当前时?BR>m1=a.getMinutes(); //获取当前分钟?BR>s=a.getSeconds(); //获取当前U钟?/P>


对象.style.fontSize="文字大小";
单位Qmm/cm/in英寸/pc?pt?px象素/em文字?BR>1in=1.25cm
1pc=12pt
1pt=1.2px(800*600分辩率下)

文本字体属性:
        fontSize大小
 family字体
 color颜色
 fontStyle风格Q取gؓnormal一?italic斜体,oblique斜体且加_?BR> fontWeight加粗,取gؓ100?00不等,900最_?light,normal,bold
 letterSpacing间距,更改文字间距?取gؓ,1pt,10px,1cm
 textDecoration:文字修饰;取?none不修?underline下划U?overline上划U?BR> background:文字背景颜色,
 backgroundImage:背景囄,取gؓ囄的插入\?/P>


点击|页正文函数调用触发器:

1.onClick 当对象被点击
2.onLoad 当网|开,只能书写在body?BR>3.onUnload 当网关闭或d?只能书写在body?BR>4.onmouseover 当鼠标悬于其上时
5.onmouseout 当鼠标离开对象?BR>6.onmouseup 当鼠标松开
7.onmousedown 当鼠标按下键
8.onFocus 当对象获取焦Ҏ
9.onSelect 当对象的文本被选中?BR>10.onChange 当对象的内容被改?BR>11.onBlur 当对象失ȝ?BR>onsubmit=return(ss())表单调用时返回的?/P>

直线          border-bottom:1x solid black
虚线          border-bottom:1x dotted black
点划U?nbsp;       border-bottom:2x dashed black
双线          border-bottom:5x double black
槽状          border-bottom:1x groove black
脊状          border-bottom:1x ridge black


1.边缘高光glow(color=颜色,strength=亮光大小)<br>
2.水^{fliph() 使对象水q翻?80?lt;br>
3.垂直{flipv() 使对象垂直翻?80?lt;br>
4.对象模糊blur(add=true/false direction=方向 strength=强度)
 add指定是否按印象画z进行模pdirection模糊方向strength模糊强度
5.对象透明alpha(opaction=0-100,finishopacity=0-100,style=0/1/2/3)
 opaction对象整体不透明值finishopacity当对象利用了渐透明时该Ҏ定结束透明位置的不透明值style指定透明方式0为整体透明Q?为线型透明Q?为圆型透明Q?为矩形透明
6.去除颜色chroma(color=颜色?使对象中颜色与指定颜色相同区域透明
7.建立阴媄dropshadow(color=阴媄颜色,offx=水^向左偏离像素,offy=水^向下偏离像素)
8.去色gray()使对象呈灰度昄
9.负片效果invert()使对象呈底片效果
10.高光light()使对象呈黑色昄
11.遮盖mask(color=颜色)使整个对象以指定颜色q行蒙板一?/P>

opacity 表透明度水q?0~100,0表全透明,100表完全不透明
finishopacity表想要设|的渐变透明效果.0~100.
style 表透明区的形状.0表统一形状.1表线?2表放Ş.3表长方Ş.
startx.starty表渐变透明效果的开始时X和Y坐标.
finishx,finishy渐变透明效果l束时x,y 的坐?
add有来定是否在模p效果中使有原有目标.gؓ0,1.0??,1??.
direction讄模糊的方?0度表垂直向上,45度ؓ一个单?默认值是向左270?left,right,down,up.
strength 只能用整数来定.代表有多个像素的宽度将受到模糊影响.默认??
color要透明的颜?
offx,offy分别是x,y 方向阴媄的偏U量.
positive指投影方?0表透明像素生成阴媄.1表只l出不透明像素生成阴媄..

AddAmbient:加入包围的光?
AddCone:加入锥Ş光源.
AddPoint加入点光?BR>Changcolor:改变光的颜色Q?BR>Changstrength:改变光源的强度.
Clear:清除所有的光源Q?BR>MoveLight:Ud光源Q?/P>

freq是LU的频率Q在指定在对象上一区需要生多个完事的LU.
lightstrength可对于LU增强光q效果Q显?~100正整敎ͼ正u波开始位|是0~360度.0表从0度开始,25表从90度开始.
strength表振q大.


hand                          style="cursor:hand"
crosshair                     style="cursor:crosshair"
text                          style="cursor:text"
wait                          style="cursor:wait"
default                       style="cursor:default"                   
help                          style="cursor:help"
e-resize                      style="cursor:e-resize"
ne-resize                     style="cursor:ne-resize"
n-resize                      style="cursor:n-resize"
nw-resize                     style="cursor:nw-resize"
w-resize                      style="cursor:w-resize"
s-resize                      style="cursor:s-resize"
sw-resize                     style="cursor:sw-resize "
se-resize                     style="cursor:se-resize"
auto                          style="cursor:auto"




Harryson 2005-09-07 22:33 发表评论
]]>
form 和嵌入在该form?ifram怺得到各自form对象http://www.aygfsteel.com/hgq0011/archive/2005/09/06/12183.htmlHarrysonHarrysonTue, 06 Sep 2005 02:09:00 GMThttp://www.aygfsteel.com/hgq0011/archive/2005/09/06/12183.htmlhttp://www.aygfsteel.com/hgq0011/comments/12183.htmlhttp://www.aygfsteel.com/hgq0011/archive/2005/09/06/12183.html#Feedback0http://www.aygfsteel.com/hgq0011/comments/commentRss/12183.htmlhttp://www.aygfsteel.com/hgq0011/services/trackbacks/12183.htmlform 和嵌入在该form?ifram怺得到各自form对象:

define

<form name="mainForm">
<input type="text" name="userName">
</form>

    *.jsp中也有一个表单iForm

<ifram name="iFramForm">
   
<from name="iForm">
      
<input name="password">
   
</form>
</iframform>


    parent.document.mainForm.userName.valueq样可以在ifram中得到mainForm中的参数了,iFramForm.iForm.password.valueq样在mainForm中可以得到ifram中的gQ?/P>

Harryson 2005-09-06 10:09 发表评论
]]>
javascript _menuhttp://www.aygfsteel.com/hgq0011/archive/2005/09/06/12165.htmlHarrysonHarrysonTue, 06 Sep 2005 01:33:00 GMThttp://www.aygfsteel.com/hgq0011/archive/2005/09/06/12165.htmlhttp://www.aygfsteel.com/hgq0011/comments/12165.htmlhttp://www.aygfsteel.com/hgq0011/archive/2005/09/06/12165.html#Feedback0http://www.aygfsteel.com/hgq0011/comments/commentRss/12165.htmlhttp://www.aygfsteel.com/hgq0011/services/trackbacks/12165.htmlhttp://www.softcomplex.com/products/tigra_menu/demo/steps/)有关于用JAVASCRIPT实现下拉菜单?

Harryson 2005-09-06 09:33 发表评论
]]>
javascript格式化数字方?/title><link>http://www.aygfsteel.com/hgq0011/archive/2005/09/06/12150.html</link><dc:creator>Harryson</dc:creator><author>Harryson</author><pubDate>Tue, 06 Sep 2005 00:28:00 GMT</pubDate><guid>http://www.aygfsteel.com/hgq0011/archive/2005/09/06/12150.html</guid><wfw:comment>http://www.aygfsteel.com/hgq0011/comments/12150.html</wfw:comment><comments>http://www.aygfsteel.com/hgq0011/archive/2005/09/06/12150.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/hgq0011/comments/commentRss/12150.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/hgq0011/services/trackbacks/12150.html</trackback:ping><description><![CDATA[<FONT size=2>有时在页面中用javascript来处理数字,比如保留几位数Q下面的Ҏ可以帮助你? <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV>  /**<BR>      <A href="mailto:*@param">*@param</A> srcStr表示要格式化的数<BR>       <A href="mailto:*@param">*@param</A> nAfterDot 要保留的位数<BR>      */ <BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">function</SPAN><SPAN style="COLOR: #000000"> FormatNumber(srcStr,nAfterDot){<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">var</SPAN><SPAN style="COLOR: #000000"> srcStr,nAfterDot;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">var</SPAN><SPAN style="COLOR: #000000"> resultStr,nTen;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>    srcStr </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">""</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">srcStr</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">""</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>    strLen </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> srcStr.length;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>    dotPos </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> srcStr.indexOf(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">.</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> (dotPos </SPAN><SPAN style="COLOR: #000000">==</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">){<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>        resultStr </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> srcStr</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">.</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">for</SPAN><SPAN style="COLOR: #000000"> (i</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">;i</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">nAfterDot;i</SPAN><SPAN style="COLOR: #000000">++</SPAN><SPAN style="COLOR: #000000">){<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>            resultStr </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> resultStr</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>        }<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> resultStr;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>    } </SPAN><SPAN style="COLOR: #0000ff">else</SPAN><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> ((strLen </SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000"> dotPos </SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">) </SPAN><SPAN style="COLOR: #000000">>=</SPAN><SPAN style="COLOR: #000000"> nAfterDot){<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>            nAfter </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> dotPos </SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000"> nAfterDot </SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>            nTen </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>            </SPAN><SPAN style="COLOR: #0000ff">for</SPAN><SPAN style="COLOR: #000000">(j</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">;j</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">nAfterDot;j</SPAN><SPAN style="COLOR: #000000">++</SPAN><SPAN style="COLOR: #000000">){<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>            nTen </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> nTen</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">10</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>        }<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>        resultStr </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Math.round(parseFloat(srcStr)</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">nTen)</SPAN><SPAN style="COLOR: #000000">/</SPAN><SPAN style="COLOR: #000000">nTen;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> resultStr;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>        } </SPAN><SPAN style="COLOR: #0000ff">else</SPAN><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>            resultStr </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> srcStr;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>            </SPAN><SPAN style="COLOR: #0000ff">for</SPAN><SPAN style="COLOR: #000000"> (i</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">;i</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">(nAfterDot </SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000"> strLen </SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000"> dotPos </SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">);i</SPAN><SPAN style="COLOR: #000000">++</SPAN><SPAN style="COLOR: #000000">){<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>                resultStr </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> resultStr</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>            }<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>            </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> resultStr;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>        }<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>    }<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>}</SPAN></DIV></DIV></FONT><img src ="http://www.aygfsteel.com/hgq0011/aggbug/12150.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/hgq0011/" target="_blank">Harryson</a> 2005-09-06 08:28 <a href="http://www.aygfsteel.com/hgq0011/archive/2005/09/06/12150.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>javascript得到屏幕的有效?/title><link>http://www.aygfsteel.com/hgq0011/archive/2005/09/05/12011.html</link><dc:creator>Harryson</dc:creator><author>Harryson</author><pubDate>Mon, 05 Sep 2005 03:29:00 GMT</pubDate><guid>http://www.aygfsteel.com/hgq0011/archive/2005/09/05/12011.html</guid><wfw:comment>http://www.aygfsteel.com/hgq0011/comments/12011.html</wfw:comment><comments>http://www.aygfsteel.com/hgq0011/archive/2005/09/05/12011.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/hgq0011/comments/commentRss/12011.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/hgq0011/services/trackbacks/12011.html</trackback:ping><description><![CDATA[screen.availWidth<BR>screen.height<img src ="http://www.aygfsteel.com/hgq0011/aggbug/12011.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/hgq0011/" target="_blank">Harryson</a> 2005-09-05 11:29 <a href="http://www.aygfsteel.com/hgq0011/archive/2005/09/05/12011.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>正则表达式(限制text只允许输入int ,floatQ?/title><link>http://www.aygfsteel.com/hgq0011/archive/2005/09/01/11763.html</link><dc:creator>Harryson</dc:creator><author>Harryson</author><pubDate>Thu, 01 Sep 2005 08:09:00 GMT</pubDate><guid>http://www.aygfsteel.com/hgq0011/archive/2005/09/01/11763.html</guid><wfw:comment>http://www.aygfsteel.com/hgq0011/comments/11763.html</wfw:comment><comments>http://www.aygfsteel.com/hgq0011/archive/2005/09/01/11763.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/hgq0011/comments/commentRss/11763.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/hgq0011/services/trackbacks/11763.html</trackback:ping><description><![CDATA[正则表达式(限制text只允许输入int ,floatQ?BR>  <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><IMG id=Codehighlighter1_28_131_Open_Image onclick="this.style.display='none'; Codehighlighter1_28_131_Open_Text.style.display='none'; Codehighlighter1_28_131_Closed_Image.style.display='inline'; Codehighlighter1_28_131_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_28_131_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_28_131_Closed_Text.style.display='none'; Codehighlighter1_28_131_Open_Image.style.display='inline'; Codehighlighter1_28_131_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align=top><SPAN style="COLOR: #000000">function numberCheck (text) </SPAN><SPAN id=Codehighlighter1_28_131_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_28_131_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>        var regex </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">/^</SPAN><SPAN style="COLOR: #000000">[</SPAN><SPAN style="COLOR: #000000">+|-</SPAN><SPAN style="COLOR: #000000">]</SPAN><SPAN style="COLOR: #000000">?</SPAN><SPAN style="COLOR: #000000">\d</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">\.</SPAN><SPAN style="COLOR: #000000">?</SPAN><SPAN style="COLOR: #000000">\d</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">$</SPAN><SPAN style="COLOR: #000000">/</SPAN><SPAN style="COLOR: #000000">;<BR><IMG id=Codehighlighter1_92_113_Open_Image onclick="this.style.display='none'; Codehighlighter1_92_113_Open_Text.style.display='none'; Codehighlighter1_92_113_Closed_Image.style.display='inline'; Codehighlighter1_92_113_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_92_113_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_92_113_Closed_Text.style.display='none'; Codehighlighter1_92_113_Open_Image.style.display='inline'; Codehighlighter1_92_113_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> (</SPAN><SPAN style="COLOR: #000000">!</SPAN><SPAN style="COLOR: #000000">regex.test(text))</SPAN><SPAN id=Codehighlighter1_92_113_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_92_113_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>            </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">false</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>        }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">true</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>    }</SPAN></SPAN></DIV></DIV><img src ="http://www.aygfsteel.com/hgq0011/aggbug/11763.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/hgq0011/" target="_blank">Harryson</a> 2005-09-01 16:09 <a href="http://www.aygfsteel.com/hgq0011/archive/2005/09/01/11763.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>获取表单对象http://www.aygfsteel.com/hgq0011/archive/2005/09/01/11727.htmlHarrysonHarrysonThu, 01 Sep 2005 03:46:00 GMThttp://www.aygfsteel.com/hgq0011/archive/2005/09/01/11727.htmlhttp://www.aygfsteel.com/hgq0011/comments/11727.htmlhttp://www.aygfsteel.com/hgq0011/archive/2005/09/01/11727.html#Feedback0http://www.aygfsteel.com/hgq0011/comments/commentRss/11727.htmlhttp://www.aygfsteel.com/hgq0011/services/trackbacks/11727.html如果在表单中一个text的名字加了?”那么我们怎样来得到它的值呢Q?BR>  q下面cM的方法来取得Q?/FONT>
document.forms["userForm"].elements["user.firstName"].value;


Harryson 2005-09-01 11:46 发表评论
]]>
炚w行的背景颜色改变,但上ơ点的背景颜色保持最初的颜色http://www.aygfsteel.com/hgq0011/archive/2005/08/30/11574.htmlHarrysonHarrysonTue, 30 Aug 2005 08:28:00 GMThttp://www.aygfsteel.com/hgq0011/archive/2005/08/30/11574.htmlhttp://www.aygfsteel.com/hgq0011/comments/11574.htmlhttp://www.aygfsteel.com/hgq0011/archive/2005/08/30/11574.html#Feedback0http://www.aygfsteel.com/hgq0011/comments/commentRss/11574.htmlhttp://www.aygfsteel.com/hgq0011/services/trackbacks/11574.html      有时要做到在一个Table中点选某一行改变背景颜Ԍ但上ơ点的背景颜色保持最初的颜色。这栯够让用户知道刚才炚w了那一行,q有是能能行的数据用javascriptq原到Form中实CҎ据?BR>代码如下Q?BR>  

 1 <form name="theForm">
 2   <input type="text" name="userName">
 3 </form>
 4 <table>
 5    <tr bgcolor="#CCCCCC"       onclick="changeBackColor(this,'harryson')">
 6      <td>用户?-Harryson</td>
 7    </tr>
 8 </table>
 9 
10 <script language="javascript">
11       var sltObj=null;//原来的行对象
12     var befColor = "";//原来行对象的背景颜色
13          //Ҏ用来改变当前行的背景颜色Q还原原来行的背景颜?把设|的值写到表单中
14       function changeBackColor(ARG,userName){
15         if (sltObj == ARG) {
16             return true;
17         } else {    
18             if(sltObj!=null) {
19                 sltObj.bgColor= befColor;
20             }
21             befColor = ARG.bgColor;
22             //alert(befColor);
23             ARG.bgColor="#66CC99";
24         }    
25               
26           sltObj = ARG;
27               parent.document.theform.userName.value = userName;//表示table是在iframe?/SPAN>
28 document.theform.userName.value = userName;//表示table是相同的from?/SPAN>
29 }
30 </script>

个hq是比较人性化的,Q)

Harryson 2005-08-30 16:28 发表评论
]]>
վ֩ģ壺 | Ϫ| ױ| | ֦| | | | | Ϻӿ| | | | | | | ˮ| | | | | | ͡| ʲ| ϲ| üɽ| | | ϲ| ԭ| | Ǭ| | з| | | ӻ| | ͼ| | ƽ|