View Full Version : Linking to text in Switch Content Script II

aka Robbie
02-12-2007, 02:12 PM
1) Script Title: Switch Content Script II

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/switchcontent2.htm

3) Describe problem: Is it possible to link to an anchor contained within a hidden section of text and have it automatically open?

For example - if you have a look here (http://www.metadigm.co.uk/resources/glossary.html) I have set up the script so everything is hidden on first viewing. Added to that when you pick a letter it just shows you those terms under that letter. Now lets say I place an anchor next to the word "Internet" on the glossary. To get to it an ordinary link on an ordinary page would be a simple task of: <a href="http://www.metadigm.co.uk/resources/glossary.html#internet">. However if I were to do this with the script in place it would work, but wouldn't display the text correctly. What I would like is that when someone clicks on http://www.metadigm.co.uk/resources/glossary.html#internet not only does it take them to the page but also expands the content that "Internet" is contained within.

Is this possible?