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

📄 playall.js

📁 AJAX综合查询简介: 一、天气查询
💻 JS
字号:
//'转发时请保留此声明信息,这段声明不并会影响你的速度!
//'**************天枫AJAX集天气\IP\多国语言翻译MP3(可同步LRC歌词显示)\万年历查询通********
//'作者:天枫
//'网站:http://www.52515.net
//'电子邮件:chenshaobo@gmail.com
//'WEB开发群:4635188 19182747
//'QQ:76994859
//'版权声明:版权所有,源代码公开,各种用途均可免费使用,但是修改后必须把修改后的文件
//'发送一份给作者.并且保留作者此版权信息
//'**********************************************************************************


//容错代码
function killerror() {return true;}
window.onerror=killerror;

//播放歌曲
function play(){
	 $("gequname").value="";
	 if(SongList.selectedIndex<0){
		SongList.options[0].selected=true;
		song=SongList.options[SongList.selectedIndex].value;
		mp(song);
		return;
	 }
     else{
		var varvar,song,person,collect;
		song=SongList.options[SongList.selectedIndex].value;
		/*if(song.length>18) info_song.innerHTML=song.substr(0,18) + "...";
		else info_song.innerHTML=song;
		if(person.length>18) info_person.innerHTML=person.substr(0,18) + "...";
		else info_person.innerHTML=person;
		if(collect.length>18) info_collect.innerHTML=collect.substr(0,18) + "...";
		else info_collect.innerHTML=collect;*/
		mp(song);
		return;
	 }
}

//控制按钮 上一首
function LastSong(){
	 if((SongList.selectedIndex>0)&&(SongList.selectedIndex<TotalSongs)){
		SongList.options[SongList.selectedIndex-1].selected=true;
		play();
	 }
}

//控制按钮 下一首
function NextSong(){
	 if(SongList.selectedIndex>=0){
		if(SongList.selectedIndex<($("SongList").options.length)-1){
			SongList.options[SongList.selectedIndex+1].selected=true;
	 		play();
		}else{
			SongList.options[0].selected=true;
	 		play();
		}
	 }
}

function showTLab(){
	 if(mediaPlayerObj.playState==1) NextSong();
	 setTimeout("showTLab()",5000);
}

⌨️ 快捷键说明

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