怎样才能通过ja子开 j子?
html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>FusionCharts 3.0 Dashboard</title>
<script language="JavaScript" src="../FusionCharts.js"></script>
<script language="JavaScript" src="../PowerMap.js"></script>
<script type="text/javascript">
function loadXMLDoc()
{
if (window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest();
}
else
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("ajax").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("POST","test.php",true);
xmlhttp.send();
}
</script>
</head>
<body>
<div id="chart3" align="center"></div><br />
<div id="ajax"></div>
<input type="button" onclick="loadXMLDoc()" value="test" />
</body>
</html>
网址
<?
$html = <script type="text/javascript">
window.onload = function start() {
onClick();
}
function onClick() {
var myChart = new FusionCharts("../Charts/HLinearGauge.swf", "chart3", "580", "80", "0", "0");
myChart.setDataXML("<chart bgColor= FBFBFB bgAlpha= 100 showBorder= 0 chartTopMargin= 0 chartBottomMargin= 0
upperLimit= 30 lowerLimit= 0 ticksBelowGauge= 1 tickMarkDistance= 3 valuePadding= -2 pointerRadius= 5
majorTMColor= 000000 majorTMNumber= 3 minorTMNumber= 4 minorTMHeight= 4 majorTMHeight= 8 showShadow= 0
pointerBgColor= FFFFFF pointerBorderColor= 000000 gaugeBorderThickness= 3
baseFontColor= 000000
gaugeFillMix= {color},{FFFFFF} gaugeFillRatio= 50,50 >
<colorRange>
<color minValue= 0 maxValue= 5 code= FF654F label= z />
<color minValue= 5 maxValue= 15 code= F6BD0F label= x />
</colorRange>
</chart>");
myChart.render("chart3");
}
</script> ;
echo $html;
?>