var lflag = false;
function onStart() {
try {
if (lflag == false) {
var obj = document.all.SyesPlayer;
lflag = true;
obj.AutoStart = 1;
onMusicProcess();
}
} catch(e) {}
}
function onPlay() {
try {
if (lflag == false) {
var obj = document.all.SyesPlayer;
lflag = true;
obj.Play();
onMusicProcess();
}
} catch(e) {}
}
function onPause() {
try {
var obj = document.all.SyesPlayer;
if (lflag == true) {
lflag = false;
obj.Pause();
}
} catch(e) {}
}
function onStop() {
try {
var obj = document.all.SyesPlayer;
if (lflag == true) {
lflag = false;
obj.Stop();
}
} catch(e) {}
}
function onMusicProcess() {
try {
var p = 0;
if(document.all.SyesPlayer.CurrentPosition
p = 0;
}
else {
p = parseFloat(parseInt(document.all.SyesPlayer.CurrentPosition)*100/parseInt(document.all.SyesPlayer.Duration));
}
if (0
{
document.all.mprocess.style.width = p*((232-19)/100);
}
empTime = setTimeout('onMusicProcess()', 2000);
if(document.all.SyesPlayer.PlayState == 2 || document.all.SyesPlayer.PlayState == 1) {
document.all.songtitle.innerHTML = '';
} else if (document.all.SyesPlayer.PlayState == 0) {
document.all.songtitle.innerHTML = '';
} else {
document.all.songtitle.innerHTML = 'Loading ... ';
}
if (document.all.SyesPlayer.filename == "") {
document.all.SyesPlayer.filename = '';
lflag = false;
onPlay();
}
} catch(e) {}
}
var bDragCheck = false;
function onVolumnControl() {
if(bDragCheck) {
var mPos = volpx + event.clientX - ex;
if (mPos > 306 && mPos
document.all.vol.style.pixelLeft= volpx+event.clientX-ex;
var soundness = mPos - 380 ;
if (0
document.SyesPlayer.Volume = 0 ;
}
else if (0 > soundness ) {
document.SyesPlayer.Volume = soundness * 45 ;
}
}
return false;
}
}
function onInitVol() {
ex = event.clientX;
ey = event.clientY;
volpx = vol.style.pixelLeft;
volpy = vol.style.pixelTop;
bDragCheck = true;
document.onmousemove = onVolumnControl;
if (document.all) {
document.onmouseup = new Function('bDragCheck=false');
}
}
function say1(){
var str = SyesPlayer.currentposition
var tmp1 = str / 60
var tmp2 = str % 60
tmp2 = Math.floor(tmp2)
if(tmp2
var TotalTime ='0'+ Math.floor(tmp1) + ':' + tmp2
time1.innerHTML = TotalTime
}
setInterval("say1()",1000)
function say2(){
var str = SyesPlayer.Duration
var tmp1 = str / 60
var tmp2 = str % 60
tmp2 = Math.floor(tmp2)
if(tmp2
var TotalTime ='0'+ Math.floor(tmp1) + ':' + tmp2
time2.innerHTML = TotalTime
}
setInterval("say2()",1000)
var currID = null;
var pause = "off";
var stop = "off";
var Previous = "off";
var next = "off";
var cbp_min = "";
var cbp_max = "";
var replay = "off";
var curr_x = "";
var msg = "";
winResize();
window.focus();
function open_SyesPlayer() {
currID = setInterval("SyesPlayer_position()", 100);
cbp_min = parseInt(document.all.curr.style.pixelLeft);
cbp_max = parseInt(document.all.curr.style.pixelLeft) + parseInt(document.all.state_bar.width);
curr_x = document.all.curr.style.pixelLeft;
document.SyesPlayer.filename = filename;
document.all.play.src="http://image.hnol.net/200504/bddkm/560/btn_play_over.gif";
}
function close_SyesPlayer() {
clearInterval(currID);
}
function CurrBarPo(cbp) {
var cbp_position = ((cbp_max - cbp_min) * cbp) / document.all.SyesPlayer.Duration;
cbp_position = parseInt(cbp_position) + cbp_min;
return cbp_position;
}
function SyesPlayer_next() {
if (document.SyesPlayer.PlayState == 2) {
if (mute == "on") next_off();
else if (mute == "off") next_on();
}
}
function SyesPlayer_Previous() {
if (document.SyesPlayer.PlayState == 2) {
if (mute == "on") Previous_off();
else if (mute == "off") Previous_on();
}
}
function SyesPlayer_pause() {
if (document.SyesPlayer.PlayState == 2) {
if (pause == "on") pause_off();
else if (pause == "off") pause_on();
}
}
function SyesPlayer_stop() {
if (stop == "on") stop_off();
else if (stop == "off") stop_on();
document.all.curr.style.pixelLeft = cbp_min;
}
function myplay_replay() {
if (replay == "on") replay = "off";
else if (replay == "off") replay = "on";
}
function pause_on() {
document.SyesPlayer.Pause();
pause = "on";
document.all.play.src="http://image.hnol.net/200504/bddkm/560/btn_play_over.gif";
document.all.pause.src="http://image.hnol.net/200504/bddkm/560/btn_stop2.gif";
document.all.stop.src="http://image.hnol.net/200504/bddkm/560/btn_stop.gif";
}
function pause_off() {
document.SyesPlayer.Play();
pause = "off";
document.all.play.src="http://image.hnol.net/200504/bddkm/560/btn_play_over.gif";
document.all.pause.src="http://image.hnol.net/200504/bddkm/560/btn_stop2.gif";
document.all.stop.src="http://image.hnol.net/200504/bddkm/560/btn_stop.gif";
}
function stop_on() {
document.SyesPlayer.stop();
stop = "on";
document.all.play.src="http://image.hnol.net/200504/bddkm/560/btn_play_over.gif";
document.all.pause.src="http://image.hnol.net/200504/bddkm/560/btn_stop2.gif";
document.all.stop.src="http://image.hnol.net/200504/bddkm/560/btn_stop.gif";
}
function stop_off() {
document.SyesPlayer.Play();
stop = "off";
pause_off();
mute_off();
document.all.stop.src="http://image.hnol.net/200504/bddkm/560/btn_play_over.gif";
}
回複:回複:回複:今天跟在西泥的印度朋友MSN,他問我你們中下層的中國人怎麽這麽不講規矩啊?
所有跟帖:
• 回複:回複:回複:回複:今天跟在西泥的印度朋友MSN,他問我你們中下層的中國人怎麽這麽不講規矩啊? -湘江舊跡- ♀ (2651 bytes) () 09/25/2012 postreply 00:13:08
• 回複:回複:回複:回複:回複:今天跟在西泥的印度朋友MSN,他問我你們中下層的中國人怎麽這麽不講規矩啊? -湘江舊跡- ♀ (392 bytes) () 11/09/2012 postreply 17:03:28
• 回複:回複:回複:回複:回複:回複:今天跟在西泥的印度朋友MSN,他問我你們中下層的中國人怎麽這麽不講規矩啊? -湘江舊跡- ♀ (2104 bytes) () 12/23/2012 postreply 17:00:32
• 回複:回複:回複:回複:回複:回複:回複:今天跟在西泥的印度朋友MSN,他問我你們中下層的中國人怎麽這麽不講規矩啊? -湘江舊跡- ♀ (233 bytes) () 12/23/2012 postreply 17:08:21
• 回複:回複:回複:回複:回複:回複:回複:回複:今天跟在西泥的印度朋友MSN,他問我你們中下層的中國人怎麽這麽不講規矩啊? -湘江舊跡- ♀ (233 bytes) () 12/23/2012 postreply 17:09:51