用js实现多域名不同文件的调用方法

2019-06-03 09:56:21刘景俊

            partnertop="/flashku_top_index.js" 
        } 
        if(partnerurl=="http%3A//www.flashku.com/") 
        {     
            partnertop="/flashku_top_index.js" 
        } 
               if(partnerurl=="http%3A//www.flashku.com/headtest.htm") 
        {     
            partnertop="/flashku_top_index.js" 
        } 
    } 
    else 
    { 
        partnertop=partnertop 
    } 



document.write ("<sc"+"ript src="+partnerad_leave+"></sc"+"ript>"); 
document.write ("<sc"+"ript src="+partnertop+"></sc"+"ript><iframe height='0px' width='0px' scrolling='no' frameborder='0' src='/google.htm'></iframe>"); 
document.write ("<sc"+"ript src="+partnerad_search+"></sc"+"ript>");