JavaScript TextBoxÊäÈëÊý×Ö¿ØÖÆ
var OnPasteCheckIntNum = function()
{
if(window.clipboardData)
{
if(isNaN(window.clipboardData.getData('text')))
{
clipboardData.setData('text','');
}
else
{
//clipboardData.setData('text',clipboardData.getData('text'))
clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))
}
}
else if(navigator.userAgent.indexOf("Opera") != -1)
{
if(isNaN(window.location))
{
//window.location = window.location.replace(/[^\d]/g,'');
window.location = '';
}
}
};
var OnPasteCheckDecimal = function(id)
{
return function()
{
if(window.clipboardData)
{
if(isNaN(window.clipboardData.getData('text') + id.value))
{
clipboardData.setData('text','');
}
&n
Ïà¹ØÎĵµ£º
ÃèÊö event´ú±íʼþµÄ״̬£¬ÀýÈç´¥·¢event¶ÔÏóµÄÔªËØ¡¢Êó±êµÄλÖü°×´Ì¬¡¢°´ÏµļüµÈµÈ¡£ event¶ÔÏóÖ»ÔÚʼþ·¢ÉúµÄ¹ý³ÌÖвÅÓÐЧ¡£ eventµÄijЩÊôÐÔÖ»¶ÔÌØ¶¨µÄʼþÓÐÒâÒå¡£±ÈÈ磬fromElement ºÍ toElement ÊôÐÔÖ»¶Ô onmouseover ºÍ onmouseout ʼþÓÐÒâÒå¡£ Àý×Ó ÏÂÃæµÄÀý×Ó¼ì²éÊó±êÊÇ·ñÔÚÁ´½ÓÉ ......
alert(parseInt("101101", 2))
ÔËÐдúÂë
function toBin(intNum) {
var answer = "";
if(/\d+/.test(intNum)) {
while(intNum != 0) {
answer = Math.abs(intNum%2)+answer;
intNum = parseInt(intNum/2);
}
......
http://www.cnblogs.com/webgis8/articles/1516639.html
¼¸¸ö¿ªÔ´JavascriptͼÐοâ
ÒòΪGoogle MapÏîÄ¿µÄÐèÒª,×î½üÒ»Ö±ÔÚѰÇóÏà¹ØµÄJavascriptͼÐοâ,ÔÚ³¢ÊÔÓÃGoogle Map
APIÌṩµÄjavascript½Ó¿Ú»æÍ¼Ê±·¢ÏÖÆäЧ¹ûºÍЧÂʶ¼²»Ì«ÀíÏë,ͬʱҲÓùýjsgraphics¿â,Ò²²»ÊǺܺÃ.ÓÖÔÚÍøÉÏÕÒµ½ÁËÏÂÃæ¼¸¸ö.
mxGraph
......
if (document.all)
{
yourLogo = "»¶Ó½øÈëÏÊ»¨¹¤·»Íø£¡"; <!--´ýÐýתµÄÎÄ×Ö-->
logoFont = "Arial";   ......
//״̬À¸·ÉÈëÎÄ×Ö
function statusMessageObject(p,d) { <!--????????????-->
this.msg = MESSAGE
this.out = " "
this.pos = POSITION
this.delay = DELAY
this.i = 0
this.reset = clearMessage
}
function clearMessage( ......