»
EnglishFrenchVietnamese

Print - Rollover-effect for whole paragraphs and tables - JavaScriptBank.com

Full version: jsB@nk » Form » Rollover-effect for whole paragraphs and tables
URL: https://www.javascriptbank.com/rollover-effect-for-whole-paragraphs-and-tables.html

Rollover-effect for whole paragraphs and tables © JavaScriptBank.comEven my granny knows how to add rollover-effects to textlinks and buttons. Yet how do you create rollover effects that will highlight whole paragraphs, tables, divs and spans? Much easier than you think!

Full version: jsB@nk » Form » Rollover-effect for whole paragraphs and tables
URL: https://www.javascriptbank.com/rollover-effect-for-whole-paragraphs-and-tables.html



JavaScript
<SCRIPT>// CREDITS:// Rollovereffect for whole paragraphs and tables// by Urs Dudli and Peter Gehrig // Copyright (c) 2001 Peter Gehrig and Urs Dudli. All rights reserved.// rollover-colorvar color_onmouseover="FFFF00"// do not edit the varibales belowvar obj     var color_onmouseoutif (document.all) {    document.onmouseover=showmouseovercolor;    document.onmouseout=showmouseoutcolor;}function showmouseovercolor() {obj=event.srcElement    if (obj.tagName!='BODY') {color_onmouseout=obj.style.backgroundColorobj.style.backgroundColor=color_onmouseover}}function showmouseoutcolor() {obj=event.srcElement    if (obj.tagName!='BODY') {obj.style.backgroundColor=color_onmouseout}}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->