| Revision as of 01:10, 3 February 2012 Armorwraith (Talk | contribs) ← Previous diff |
Revision as of 01:18, 3 February 2012 Armorwraith (Talk | contribs) Next diff → |
||
| Line 1: | Line 1: | ||
| - | <div style="width:400;height:500;" onmouseover="hightlight()" onmouseout="removehightlight()"><span id="textspan" >This is a test div to show mouseover</span><img id="imgsrc" src="http://www.scorched3d.co.uk/phpBB3/download/file.php?id=4964/uc.png" /></div> | + | http://www.scorched3d.co.uk/phpBB3/download/file.php?id=4964/uc.png |
| + | |||
| + | |||
| + | <'script type="text/javascript"'> | ||
| + | |||
| + | function hightlight() | ||
| + | { | ||
| + | document.getElementById("textspan").style.text = "underline"; | ||
| + | document.getElementById("imgsrc").style.border = "5px solid #005596"; | ||
| + | document.getElementById("textspan2").style.text = "underline"; | ||
| + | document.getElementById("imgsrc2").style.border = "5px solid #005596"; | ||
| + | } | ||
| + | function removehightlight() | ||
| + | { | ||
| + | document.getElementById("textspan").style.text = "none"; | ||
| + | document.getElementById("imgsrc").style.border = "5px solid white"; | ||
| + | document.getElementById("textspan2").style.text = "none"; | ||
| + | document.getElementById("imgsrc2").style.border = "5px solid white"; | ||
| + | } | ||
| + | </script> | ||
<'script type="text/javascript"'>
function hightlight() { document.getElementById("textspan").style.text = "underline"; document.getElementById("imgsrc").style.border = "5px solid #005596"; document.getElementById("textspan2").style.text = "underline"; document.getElementById("imgsrc2").style.border = "5px solid #005596"; } function removehightlight() { document.getElementById("textspan").style.text = "none"; document.getElementById("imgsrc").style.border = "5px solid white"; document.getElementById("textspan2").style.text = "none"; document.getElementById("imgsrc2").style.border = "5px solid white"; } </script>