ÀûÓÃJavaScriptʵÏÖÉÏ´«Í¼Æ¬Ô¤ÀÀ
<script >
function showimage()
{
//IMG1ΪͼƬ¿Ø¼þ»òDiv,File1ΪÉÏ´«Îļþ¿Ø¼þ
document.getElementById("IMG1"). src = document.getElementById("File1").value;
}
</script >
¿Ø¼þÖÐÒýÓÃ:
<input id="File1" runat="server" type="file" onchange="showimage()"/>
IE7.0ÖÐÓÉÓÚ²»Ö§³Ö¾ø¶Ô·¾¶,»á³öÏÖͼƬÏÔʾ´íÎó.½â¾ö°ì·¨:
<script >
function showimage()
{
document.getElementById("IMG1").filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src =
document.getElementById ("File1").value;
}
</script >
¿Ø¼þÖÐÒýÓÃ:
<input id="File1" runat="server" type="file" onchange="showimage()"/>
ÁíÍâÐèÔÚIMG»òDIVÑùʽÖÐÐÞ¸Ä:
<div id="IMG1" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);width:400px;height:200px;" runat="server" src="" /></div>
Ïà¹ØÎĵµ£º
getkey ÓÃÓÚ»ñµÃ°´¼üµÄÏàÓ¦´úÂë, getevÓÃÓÚ»ñµÃÏìӦʼþ
<script>
function getkey(e)
{
var key;
if(document.all)
{
  ......
insertAtCurson º¯Êý´úÁ½²ÎÊý·Ö±ðΪ¶ÔÏóºÍÊäÈëµÄ×Ö·û
function insertAtCursor(myField, myValue)
{
if (document.selection)
{
&nb ......
JavaScriptÀï×Ö·û´®ÀàÐÍת»»³ÉÈÕÆÚÀàÐÍ£º
Èç¹û×Ö·û´®ÖÐÓпոñ»òÊÇÆäËû·Ö¸î·û·Ö¸î£¬¿ÉÒÔÓÃsplit·½·¨ÏȲð·Ö£¬·µ»ØÒ»¸öÊý×飬ÔÙ°ÑÕâ¸öÊý×éÀïµÄÄêÔÂÈÕ×÷Ϊ²ÎÊý´«µ½new Date()ÀïÉú³ÉÈÕÆÚÀàÐÍ£»
Èç¹ýûÓÐÌØÊâ·Ö¸ô·û£¬¿ÉÒÔÓÃsubstr£¨x£¬y£©·½·¨À´È¡×Ó×Ö·û´®À´Éú³ÉÈÕÆÚ£¬substr£¨x£¬y£©Àx±íʾȡ×Ö´®µÄ¿ªÊ¼Î»Öã¬y±íʾ×Ó´®µÄ³ ......
ÔÚÏß±à¼ÄÚÈݵÄʱºò£¬ÄÇЩ»ùÓÚ JavaScript µÄ±à¼Æ÷°ïÁËÎÒÃÇ´óæ£¬ÕâЩËù¼û¼´ËùµÃ£¨WYSIWYG£©±à¼Æ÷£¬¸øÎÒÃÇÌṩÁËÀàËÆ
Office µÄ²Ù×÷ÌåÑé¡£Èç½ñ£¬ÈκÎÍøÕ¾ÄÚÈݹÜÀíϵͳ£¨CMS£©ºÍ²©¿Íϵͳ¶¼ÐèÒªÒ»¸öÕâÑùµÄ±à¼Æ÷¡£±¾Îľ«Ñ¡ÁË10¸ö»ùÓÚ JavaScript
µÄ±à¼Æ÷£¬ËüÃÇÓеÄÊÇ»ùÓÚ jQuery ¿ò¼Ü£¬ÓеãÔò²»ÊÇ¡£
Mar ......
function checkImgAddr(url){
var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("post",url,false);
xmlhttp.send();
if(xmlhttp.readyState==4){
if(xmlhttp.status==404){
return "File Not Exist.";
}else if(xmlhttp.status == 200){
re ......