changebutton color on Mouse move using CSS and Javascript
Better Interface
AI
Podsumowanie AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
Kod źródłowy
<html>
<style>
.Over
{
BACKGROUND-COLOR: #708090;
COLOR: #ffffff;
CURSOR: hand
}
.Out
{
BACKGROUND-COLOR: #c0c0c0;
COLOR: #000000;
CURSOR: default
}
</STYLE>
<Body>
<INPUT type="button" tagName="BUTTON" value="Button" id=button1 name=button1>
</body>
<script FOR="document" EVENT="onmouseover" LANGUAGE="javascript">
<!--
document_onmouseover()
//-->
</script>
<script LANGUAGE="javascript" FOR="document" EVENT="onmouseout">
<!--
document_onmouseout()
//-->
</script>
<script language="Javascript">
<!--
function document_onmouseout()
{
if (event.srcElement.tagName == "BUTTON")
{
event.srcElement.className = "Out";
}
}
function document_onmouseover()
{
if (event.srcElement.tagName == "BUTTON")
{
event.srcElement.className = "Over";
}
}
//-->
</script>
</html>
Oryginalne komentarze (3)
Odzyskane z Wayback Machine