( تعداد نمایش : 1303 )

تغییر bgcolor

با استفاده از این اسکریپت میتوانید رنگ پس زمینه را بدلخواه خود تغییر دهید.

<html>
<body>
<script language=”Javascript”>
<!–
// please keep these lines on when you copy the source
// made by: Amir – http://www.IranJavaScript.com

function backbs(clr) {
document.bgColor = clr
}

//–>
</script>
<form>
<input type=”button” value=”Aqua” onclick=”backbs(‘aqua’)”>
<input type=”button” value=”Yellow” onclick=”backbs(‘yellow’)”>
<input type=”button” value=”Khaki” onclick=”backbs(‘khaki’)”>
<input type=”button” value=”White” onclick=”backbs(‘white’)”>
<input type=”button” value=”Gray” onclick=”backbs(‘gray’)”>
</form>
</script>
</body>
</html>

دیدگاه خود را بیان کنید.

باید وارد سایت شده باشید برای دیدگاه دادن