php javascript クリックすると開く php内にechoを使用して

| コメント(0)

echo "<script type=\"text/javascript\">";
echo "window.onload = function(){";
echo "Box = document.getElementById(\"javascriptBox\");";
echo "Push = document.getElementById(\"javascriptPush\");";
echo "Box.style.display = 'none';";
echo "Push.onclick = function(){";
echo "Box.style.display = Box.style.display == 'block' ? 'none' : 'block';";
echo "}";
echo "}</script>";

        $tempHtml .= "<td>";
        $tempHtml .= "<div id=\"javascriptPush\" onclick=\"return false;\">".クリック."</div>";
        $tempHtml .= "<div id=\"javascriptBox\">";
        $tempHtml .= "<p><textarea name=\"memo\" cols=10 rows=8>".$Memo."</textarea></p>";
        $tempHtml .= "</div>";
        $tempHtml .= "<td>";

コメントする