⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 items.js

📁 这是基于jsp的相册管理系统。数据库是mysql
💻 JS
字号:
var div_to_fill = '';

var xmlRequest_items = "";
var album_id_to_fill ='';
function sendMessage_items(url)
{
   xmlRequest_items =  createXMLHttpRequest();
   xmlRequest_items.open("post",url);
   xmlRequest_items.onreadystatechange = apply_del_StateChange;
   xmlRequest_items.send(null);
}
function apply_del_StateChange()
{
  if (xmlRequest_items.readyState == 4)
   {
     if (xmlRequest_items.status == 200)
     {
        showPhotos(album_id_to_fill,div_to_fill);
     }
   }
}
function delPhoto(album_id,sPhotoId,div_name)
{
   div_to_fill = div_name;
   album_id_to_fill = album_id;
   var url = 'delPhoto.jsp?albumId='+album_id+'&photoId='+sPhotoId;
   sendMessage_items(url,album_id,div_name);
}

 var  xmlRequest_items_photo = '';
function sendMessage_items_photo(url)
{
      xmlRequest_items_photo = createXMLHttpRequest();
      xmlRequest_items_photo.open('post',url);
      xmlRequest_items_photo.onreadystatechange = apply_items_photo_StateChange;
      xmlRequest_items_photo.send(null);
      
}
function apply_items_photo_StateChange()
{
   if (xmlRequest_items_photo.readyState == 4)
   {
     if (xmlRequest_items_photo.status == 200)
     {
        document.getElementById(div_to_fill).innerHTML = xmlRequest_items_photo.responseText;
         rdl_Load();
     }
   }
}
function items_showPhoto_enter(sPhotoPath,sPhotoName,div_name)
{
   alert('in items_showPhoto_enter ' + sPhotoPath);
   div_to_fill = div_name;
   var url = 'img.jsp?photoPath='+sPhotoPath+'&photoName='+sPhotoName;
   sendMessage_items_photo(url);
   
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -