Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in HTML CSS only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
HTML CSS
highlighting continuous cells coded as <div>
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
gemini
New Member
Join Date:
Aug 2006
Posts:
1
#1
highlighting continuous cells coded as <div>
Aug 13 '06, 02:05 AM
hi,
can any body tell me how i can highlight continuous cells cells of a table with mouse events
luminary4him
New Member
Join Date:
Jun 2006
Posts:
4
#2
Aug 19 '06, 05:35 PM
I'm not sure I know what you mean... like change the background color of particular cells when the mouse moves over them, or something more complex?
Comment
Post
Cancel
Gayathriperumal
New Member
Join Date:
Aug 2006
Posts:
10
#3
Aug 25 '06, 10:44 AM
check out this which u where wanting for :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaS cript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf ("?"))>0&&paren t.frames.length ) {
d=parent.frames[n.substring(p+1 )].document; n=n.substring(0 ,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.fo rms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.l ayers&&i<d.laye rs.length;i++) x=MM_findObj(n, d.layers[i].document);
if(!x && d.getElementByI d) x=d.getElementB yId(n); return x;
}
function MM_showHideLaye rs() { //v6.0
var i,p,v,obj,args= MM_showHideLaye rs.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findOb j(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?' visible':(v=='h ide')?'hidden': v; }
obj.visibility= v; }
}
//-->
</script>
</head>
<body>
<table width="45%" height="43" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td width="20" bordercolor="#F F0000"><a href="#" onMouseOver="MM _showHideLayers ('red','','show ');" onMouseOut="MM_ showHideLayers( 'red','','hide' );" ><font color="#FF0000" >Red</font></a></td>
<td width="20"><a href="#" onMouseOver="MM _showHideLayers ('blue','','sho w')" onMouseOut="MM_ showHideLayers( 'blue','','hide ');"><font color="#0000FF" >Blue</font>
</a></td>
<td width="20"><a href="#" onMouseOver="MM _showHideLayers ('green','','sh ow')" onMouseOut="MM_ showHideLayers( 'green','','hid e');"><font color="#00FF00" >Green</font></a>
</td>
<td width="20"><a href="#" onMouseOver="MM _showHideLayers ('yellow','','s how')" onMouseOut="MM_ showHideLayers( 'yellow','','hi de');"><font color="#FFFF00" >Yellow</font></a></td>
</tr>
<tr>
<td width="20">&nbs p;</td>
<td width="20">&nbs p;</td>
<td width="20">&nbs p;</td>
<td width="20">&nbs p;</td>
</tr>
</table>
<div id="red" style="position :absolute; left:9px; top:33px; width:61px; height:22px; z-index:7; visibility: hidden;" >
<table width="100%" height="100%" border="0"cellp adding="4" cellspacing="0" bgcolor="#FF000 0">
<tr>
<td align="center">
</td>
</tr>
</table>
</div>
<div id="blue" style="position :absolute; left:71px; top:33px; width:71px; height:22px; z-index:7; visibility: hidden;" >
<table width="100%" height="100%" border="0"cellp adding="4" cellspacing="0" bgcolor="#0000F F">
<tr>
<td align="center">
</td>
</tr>
</table>
</div>
<div id="green" style="position :absolute; left:145px; top:32px; width:100px; height:22px; z-index:7; visibility: hidden;" >
<table width="100%" height="100%" border="0"cellp adding="4" cellspacing="0" bgcolor="#00FF0 0">
<tr>
<td align="center">
</td>
</tr>
</table>
</div>
<div id="yellow" style="position :absolute; left:248px; top:33px; width:105px; height:22px; z-index:7; visibility: hidden;" >
<table width="100%" height="100%" border="0"cellp adding="4" cellspacing="0" bgcolor="#FFFF0 0">
<tr>
<td align="center">
</td>
</tr>
</table>
</div>
</body>
</html>
Comment
Post
Cancel
ronverdonk
Recognized Expert
Specialist
Join Date:
Jul 2006
Posts:
4259
#4
Aug 26 '06, 09:46 AM
Only works for IE: I just happened to come by a JS snippet for the function you are looking for:
http://javascript.internet.com/image-effects/cell-bg-changer.html
Otherwise, that site
http://javascript.internet.com/
is full of that type of functions.
Ronald :cool:
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment