Jump to content

something majorly simple...possibly


supanoob

Recommended Posts

so basically im wanting a system that allows me to highlight a certain radius from the whatever square i am currently on in a table so for example

1,1-

1,2-

1,3-

1,4-

1,5

2,1-

2,2-

2,3-

2,4-

2,5

3,1-

3,2-

3,3-

3,4-

3,5

4,1-

4,2-

4,3-

4,4-

4,5

5,1-

5,2-

5,3-

5,4-

5,5

 

dont know how to add borders to the table, but anyway, say i was they were all links, and i clicked 4,3 what i want to do is then make the borders of 3,3 - 3,4 - 4,4 - 5,4 - 5,3 - 5,2 - 4,2 and 3,2 highlight.

 

The table would be made up of images, so what i want to know is would it be better to highlight the border of the images, or the table cells.

 

Which ever option is best how would i go about doing it? I want them to change after a click a link/button.

Link to comment
https://forums.phpfreaks.com/topic/183049-something-majorly-simplepossibly/
Share on other sites

If you want them to change on the fly (IE without a page reload) you will have to use Javascript.

 

However, a little more information would be nice. How exactly do you build you tables? are they hardcoded in? or are they dynamically generated. Will the tables always look like they will in your example (IE 5 rows 5 columns) or might they be different?

If you want them to change on the fly (IE without a page reload) you will have to use Javascript.

 

However, a little more information would be nice. How exactly do you build you tables? are they hardcoded in? or are they dynamically generated. Will the tables always look like they will in your example (IE 5 rows 5 columns) or might they be different?

 

I want them to load on page load AFTER they clicked the link and no the table will most likely be 10x10 but the "co-ords" will go up to about 50x50.

 

Anymore information needed let me know :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.