日期:2014-05-16 浏览次数:20395 次
<SCRIPT type="text/javascript">
function Change()
{
var url = document.getElementById("text1").value
var arr = url.split("|")
var ui = arr[0]
var uk = arr[1].split(".com/")[1]
var songurl = ""+uk+"/?title="+ui+""
document.getElementById("text2").value = songurl
}
</SCRIPT>
<META name="GENERATOR" content="MSHTML 9.00.8112.16484"></HEAD>
<BODY><BR><INPUT onclick="Change()" value="? " type="BUTTON"></BODY></HTML>
<p>
<textarea id="text1" rows="8" name="S1" cols="81"></textarea></p>
<p><textarea id="text2" rows="6" name="S2" cols="82"></textarea></p>
<SCRIPT type="text/javascript">
function Change()
{
var urls = document.getElementById("text1").value
var songurl = '';
urls = urls.split("\n");
for(var i =0; i< urls.length; i++) {
var url = urls[i]
if(!url) continue;
var arr = url.split("
------解决方案--------------------
")
var ui = arr[0]
var uk = arr[1].split(".com/")[1]
songurl += ""+uk+"/?title="+ui+"\n"
}
document.getElementById("text2").value = songurl
}
</SCRIPT>
<META name="GENERATOR" content="MSHTML 9.00.8112.16484"></HEAD>
<BODY><BR><INPUT onclick="Change()" value="? " type="BUTTON"></BODY></HTML&