I imagine there are probably a few ways to do this, and I don't doubt that PHP is one of those ways so it's the method I'd like to use.
Essentially what I have is a list of displayed items on my homepage and another page with a list of all items on it. What I would like to do is make it so that when you select one of the items on the homepage, it will redirect you to the page with all the items on it and scroll down to and highlight that item.
Now the simple way (simple because I don't know a better way) I could do this would be to just create a new page for each item which scrolls down to it and has it highlighted, but I imagine there's probably a better way to do this that I'd like to learn.
Does anyone have any suggestions on how this can be accomplished? Again, I have a list of items, I'd like someone to be able to click on an item on one page and for it to redirect them to the complete list of items with the one they clicked on highlighted.
Thanks in advance to anyone who offers any insight into this.
Edit:
Perhaps I should make this more clear. I want to do something similar to linking to a document with the <a name=""> attribute. Except, what I would like this to do is change an element when I go there, for example. I could have like <a name="this">This is a title</a> and then if someone were to click on <a href="#this">this</a> it would then proceed to highlight "This is a title" besides just scrolling to where it is in the document.
Again, I imagined PHP might offer the ability to do something like this, if I'm wrong then anyone who can point me in the right direction I'd appreciate it.
This post has been edited by CodeVillain: 26 July 2010 - 12:40 AM

New Topic/Question
Reply




MultiQuote




|