<SCRIPT>no_insert = 1;
function a_addOption() {
var obj = $('uploadalbum');
obj.value = 'addoption';
addOption(obj);
}
function passwordShow(value) {
if(value==4) {
$('span_password').style.display = '';
$('tb_selectgroup').style.display = 'none';
} else if(value==2) {
$('span_password').style.display = 'none';
$('tb_selectgroup').style.display = '';
} else {
$('span_password').style.display = 'none';
$('tb_selectgroup').style.display = 'none';
}
}
function getgroup(gid) {
if(gid) {
var x = new Ajax();
x.get('cp.php?ac=privacy&op=getgroup&gid='+gid, function(s){
$('target_names').innerHTML += s;
});
}
}
function album_op(id) {
$('selectalbum').style.display = 'none';
$('creatalbum').style.display = 'none';
$(id).style.display = '';
}
</SCRIPT><!--<SCRIPT src="../images/album_general_upload.files/script_upload.js" 
type=text/javascript></SCRIPT>-->
<SCRIPT language=javascript src="/js/script_upload.js" 
type=text/javascript></SCRIPT>

解决方案 »

  1.   

    还是用的js的框架 prototype写的
      

  2.   

    转化完毕,请查收<SCRIPT> no_insert = 1; 
    function a_addOption() { 
    var obj = $('uploadalbum'); 
    obj.value = 'addoption'; 
    addOption(obj); 

    function passwordShow(value) { 
    if(value==4) { 
    $('span_password').style.display = ''; 
    $('tb_selectgroup').style.display = 'none'; 
    } else if(value==2) { 
    $('span_password').style.display = 'none'; 
    $('tb_selectgroup').style.display = ''; 
    } else { 
    $('span_password').style.display = 'none'; 
    $('tb_selectgroup').style.display = 'none'; 


    function getgroup(gid) { 
    if(gid) { 
    var x = new Ajax(); 
    x.get('cp.php?ac=privacy&op=getgroup&gid='+gid, function(s){ 
    $('target_names').innerHTML += s; 
    }); 


    function album_op(id) { 
    $('selectalbum').style.display = 'none'; 
    $('creatalbum').style.display = 'none'; 
    $(id).style.display = ''; 

    </SCRIPT> <!-- <SCRIPT src="../images/album_general_upload.files/script_upload.js" 
    type=text/javascript> </SCRIPT>--> 
    <SCRIPT language=javascript src="/js/script_upload.js" 
    type=text/javascript> </SCRIPT>
      

  3.   

    把文件的扩展名改成 .asp,
    然后就OK了。