Jump to content
Fórum Script Brasil
  • 0

Ao Passa O Mouse


vinceplay()

Question

4 answers to this question

Recommended Posts

  • 0

<html>
<head>
<script>
function upper(id){
	try{
    	document.getElementById(id).innerHTML = document.getElementById(id).innerHTML.toUpperCase();
	} catch(e){status = e;}
}
function lower(id){
	try{
    	document.getElementById(id).innerHTML = document.getElementById(id).innerHTML.toLowerCase();
	} catch(e){status = e;}
}
</script>
</head>
<body>
<label id="label" onmouseover="upper(this.id)" onmouseout="lower(this.id)">abc</label>
<text id="text1" onmouseover="upper(this.id)" onmouseout="lower(this.id)">t</text><text id="text2" onmouseover="upper(this.id)" onmouseout="lower(this.id)">e</text><text id="text3" onmouseover="upper(this.id)" onmouseout="lower(this.id)">s</text><text id="text4" onmouseover="upper(this.id)" onmouseout="lower(this.id)">t</text><text id="text5" onmouseover="upper(this.id)" onmouseout="lower(this.id)">e</text>
</body>
</html>

Fiz um código pra ti, mas não gostei muito, ficou muito extenso, dá uma olhada e se conseguir reduzir esse código posta ae q estou sem tempo pra melhora ele....

Abraço

Crystian

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      651.8k
×
×
  • Create New...