• Post Reply Bookmark Topic Watch Topic
  • New Topic

dividing page into block

 
vaibhav agarwal
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a page�.. I have divided that page into 48 block.. by drawing vertical and horizontal lines � that is blocks are not independent component � my requirement is that when I click on the block � that block should get highlighted or change its color � or darken its border � how to achieve this functionality �

Regards
Vaibhav Gupta
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the way you've written it you'll have to use the mouse event's getX() and getY() methods, then a formula dividing up the height, width to see which block contains the click co-ords.

Seems like a lot of work, might be easier with something like this


[code deleted - question posted elsewhere]
[ July 18, 2005: Message edited by: Michael Dunn ]
 
vaibhav agarwal
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

yes whats d way... i could not get exectly what u r saying .......
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!