×¢²áÓû§ÃûÑéÖ¤(ajax°æ)
<!--×¢²áÑéÖ¤Óû§ÃûÊÇ·ñ´æÔÚ(²»Ë¢ÐÂ)(2008-07-10 11:22:08)±êÇ©£ºdocument if color ch rs ×¢²á ajax ÑéÖ¤ Óû§Ãû it ·ÖÀࣺÍøÂç±à³ÌÓ¦ÓÃ
Õë¶ÔASPµÄ ÓõÄÊÇAJAXдµÄ
·ÖÁ½²¿·Ö
-->
1.×¢²áÒ³Ãæ
JS²¿·Ö:
<script language="JavaScript">
function chuser(){
var csuser=document.getElementById("csuser").value;
if((csuser == null) || (csuser == ""))
{
document.getElementById("loginid_info").className = 'STYLE1';
document.getElementById("loginid_info").innerHTML = 'Óû§Ãû²»ÄÜΪ¿Õ¡£';
return false;
}
else
if(csuser.length<6 || csuser.length>16)
{
document.getElementById("loginid_info").className = 'STYLE1';
document.getElementById("loginid_info").innerHTML = 'Óû§Ãû±ØÐëΪ6-16λ¡£';
return false;
}
//var filter=/^\s*[.A-Za-z0-9_-]{2,16}\s*$/;
//if (!filter.test(username.value)) {
//document.getElementById("loginid_info").background='#BFDFFF'
//document.getElementById("loginid_info").innerHTML = 'Óû§Ãû±ØÐëÓÉÊý×Ö,Ó¢ÎÄ»òÏ»®Ïß×é³É¡£'
//return false;
//{
//document.getElementById("loginid_info").innerHTML = '<font color=#red>Óû§Ãû±ØÐëÓÉÊý×Ö,Ó¢ÎÄ»òÏ»®Ïß×é³É¡£</font>'
// return false;
//}
else{
GetResult(csuser)
document.getElementById("loginid_info").className = 'STYLE2';
//document.getElementById("loginid_info").innerHTML = '<font color=#0066ee>ÌîдÕýÈ·¡£</font>'
}
}
function GetResult(opr)
{
var oBao = new ActiveXObject("Microsoft.XMLHTTP");
var my_url="ch.asp?username="+ escape(opr);
oBao.open("POST",my_url,false);
oBao.send(null);
var strResult = unescape(oBao.responseText);
document.getElementByI
Ïà¹ØÎĵµ£º
1£¬Ð½¨Ò»ÃûΪlogin.htmµÄ¾²Ì¬ÍøÒ³Îļþ£¬×÷ΪµÇ¼ҳÃ棬Èçͼ
body±êÇ©´úÂë
<body onkeydown ="enterLogin()"> <!--Ìí¼Ó°´Ï¼üÅÌʼþ-->
<div style="text-align: center" mce_style="text-align: center">
<table border="1" cellpadding="1">
<tr>
<td align="center" s ......
Ajax Slideshow
http://drupal.org/project/ajax_slideshow
View
CVS instructions
Modules · Content display
udig - October 17, 2009 - 12:05
Sequential presentation of any of your site nodes, using fade effect based on ajax asynchronous calls.
Why?
Indeed there are plenty of slideshow modules ......
http://drupal.org/project/ajax_comments
AJAX Comments
View
CVS instructions
Modules · Content display
neochief - December 18, 2008 - 12:44
One of the most wanted Drupal modules :)
Module is now depends on Comments bonus API!
Features in 6.x:
Provides ajax comments to drupal sites. Feature ......
AJAXÎÞÒÉÊÇ2005Äê³´µÄ×îÈȵÄWeb¿ª·¢¼¼ÊõÖ®Ò»£¬µ±È»£¬Õâ¸ö¹¦ÀÍÀë²»¿ªGoogle¡£ÎÒÖ»ÊÇÒ»¸öÆÕͨ¿ª·¢Õߣ¬Ê¹ÓÃAJAXµÄµØ·½²»ÊÇÌرð¶à£¬ÎҾͼòµ¥µÄ°ÑÎÒʹÓõÄÐĵÃ˵һÏ¡££¨±¾ÎļÙÉèÓû§ÒѾ¾ßÓÐJavaScript¡¢HTML¡¢CSSµÈ»ù±¾µÄWeb¿ª·¢ÄÜÁ¦£©
¡¡¡¡[AJAX½éÉÜ]
¡¡¡¡AjaxÊÇʹÓÿͻ§¶Ë½Å±¾ÓëWeb·þÎñÆ÷½»»»Êý¾ÝµÄWebÓ¦Óÿª·¢·½·¨¡ ......
Êý¾Ý¿âÉè¼Æ
±¾ÊµÀýʹÓÃÃûΪpostalcodeµÄÊý¾Ý¿â±í£¬°üº¬µÄ²¿·ÖÊý¾ÝÈçͼ1.4Ëùʾ¡£¾ßÌåµÄ´´½¨Êý¾Ý±íÓï¾äÈçÏ£º
CREATE TABLE 'postalcode' (
'id' int(11) NOT NULL auto_increment,
'area' varchar(255) NOT NULL,
'city' varchar(255) NOT NULL,
'code' varchar(6) NOT NULL,
&n ......