Log in

View Full Version : Grateful for any help to fix my problem



hugomax
04-25-2007, 12:02 AM
Im trying to create a menu so that when you click a link on the left hand side it provides a discription on the right. I have got a script for this but I now wish to be able to add a "select all" type button to highlight the description text, but just cant seem to get my head around it..that is if it is even possible. I would be grateful if anyone has created similar or has a solution. Many thanks H.

Here is an example of what im trying to create / describe.

Please click here for example (http://www.hugomax.com/example.htm)

:confused:

djr33
04-25-2007, 12:38 AM
I'm not expert with this, but I believe it is not possible to highlight parts of a page, but just text in a form element.

You would, then, need to decide between using a form element and having that ability and using regular text without selecting.

You could also look into CSS styling for the text box to make it:
1. Look less like a text box (color, background, font)
2. Not be editable, so it could still be highlighted, but just not changed.

hugomax
04-25-2007, 08:06 AM
Thanks djr33 I thought as much, the select all coding seems to rely on the use of a form, but I thought Id ask just to be sure...Im fairly new to this kind of coding involving javascript etc.

The example I produced was very basic, Ive tidied up the look of it and Im actually using this in work as an easy way to submit templates the links being the title and the description being the information im copying across - saves me heaps of time!!! However I just wondered weather or not there was an alternative to the laborious ugly way of hover and click three times to select all text. I guess Im stuck with it if im using a single HTML page without some sort of database.

Really appreciate your thoughts and help though. Thanks again. H :cool: