Jump to content

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 :)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.