全部博文(2065)
分类:
2009-09-02 23:48:31
document.write("cellpadding=\"0\" cellspacing=\"0\">");
");
for($i=0;$i<count($arrInfo);$i++) {
if($arrInfo[$i][BU_TARGET] == 0) $arrInfo[$i][BU_TARGET] = "_blank";
else if($arrInfo[$i][BU_TARGET] == 1) $arrInfo[$i][BU_TARGET] = "_self";
else if($arrInfo[$i][BU_TARGET] == 2) $arrInfo[$i][BU_TARGET] = "_parent";
else if($arrInfo[$i][BU_TARGET] == 3) $arrInfo[$i][BU_TARGET] = "_top";
?>
document.write(""); ");
document.write(""); ");
document.write("");");
document.write(" \" target==$arrInfo[$i][BU_TARGET]?>>/op/Banner/=$arrInfo[$i][BU_IDX]?>.jpg\" width=\"241\" style=\"border:solid 0px #aaaaaa\">");
document.write("
document.write("
document.write("
document.write(""); ");
document.write("");
document.write("
}
?>
document.write("
测试第二种情况吧!
我写一个PHP文件然后让其输出
1..php文件中输出JS显示的效果
而且此JS中又要输出一个PHP变量的方式:
echo "document.write(\"$count\");";