私はAdobe Flashを使用するか、javascriptを使用して動的な蝶のウェブサイトを作成するかの選択肢があります。 PHPを使用してMySqlに送信するために選択された色を作成するにはどうすればよいですか?動的cssとjavascript PHPでmysqlデータベースに投稿
<html>
<head>
<TITLE>Cool Javascript</title>
<style>
body {
background-color: linen;
margin: 0;
}
#blueDiv {
position: absolute;
top: 100px;
background-color: blue;
width: 150px;
height: 150px;
}
#yellowDiv {
position: absolute;
top: 100px;
background-color: yellow;
width: 150px;
height: 150px;
}
</style>
</head>
<body>
<button onclick="blue()"> blue button </button>
<button onclick="yellow()"> yellow button </button>
<div id="blueDiv">
</div>
<script>
var div = document.getElementById('blueDiv');
function blue() {
div.setAttribute("id", "blueDiv");
}
function yellow() {
div.setAttribute("id", "yellowDiv");
}
</script>
</body>
</html>
私のCSSスクリプトで画像を使用することを検討する必要があります。 私はかなりの数ヶ月のためにこれに固執されているので、上のアドバイスをしてください。
あなたの答えのwscourgeいただきありがとうございます。これは間違いなく素晴らしい選択肢になります。 – Schalk
私はあなたの提案を試みましたが、 "値なし"を返します。 – Schalk
値はどこですか? – wscourge