Results 1 to 4 of 4
Sep 24, 2002, 06:31 #1
- Join Date
- May 2002
- Melbourne, Australia
- 0 Post(s)
- 0 Thread(s)
Creating and styling a new node from selection?
A question regarding DOM for any gurus out there...
I am curious if this is even possible...
1. The user highlights a soem text on the page.
2. The user presses a button that automatically puts some text either side, in this case <span id="$js_var">Highlighted Text</span>
3. Using the DOM to change styles for that specific ID eg:
Mind you I have not used js variables before so the syntax is most probably wrong, am not interested in that part for nowe, only if changing "new" nodes on the fly is at all possible, and if so, is it cross-browser compatible?
Thanks guys...Jordan Windebank