Click to See Complete Forum and Search --> : mark the link last clicked?


Pierre Rouillet
09-01-2003, 12:29 PM
I wrote a file employing css to mark hover states of links etc. (Please cf. http://www.steffiweismann.de/index_final3.html. Please note that this file is in work and far from perfect.)
Now, I want the link who's linked page is open to be marked. I wonder if there might be a JavaScript-way to achieve that; theoretically, it's always the last link clicked that shall be marked in this fashion. Maybe something could be done with any if..., some variables etc.?
(Ones knowing more than me hold that there is no way in css (cf. http://forums.webdeveloper.com/showthread.php?s=&threadid=16500))

If anyone can think of an example, some ideas, or maybe knows that this cannot be – I'll be very thankful.

xataku_nakusute
09-01-2003, 05:11 PM
what you can do is make a function that compares the href of your links to the windows location and if theres a match, then it changes the links properties/innerText/etc...

if you need help doing so, just ask me

Pierre Rouillet
09-01-2003, 07:18 PM
yes, something like that might do. In the case at hand, it's about a link that actually calls a javascript which makes one layer visible and another one invisible (so it looks like a frameset but it isn't).
(In a very basic, absolutely non-functional version, this can be viewed at http://www.steffiweismann.de/index_final6.html - It's really chaotic, the links aren't working, there's a lot of code garbage in it, but the JavaScript changing the layer order, the basic use of divs etc. are there. Sorry, I'm too tired tonight to rework it, it'll be tomorrow.)

But yes, I wouldn't know how begin such a script, so if you know an example or anything, that would be great.

Thanks.

xataku_nakusute
09-01-2003, 07:45 PM
alrighty....your script is comin right up, ill ahve it for you by tomorrow...though i prolly wont be able to post it up tomorrow....so i guess ill do so tonight

xataku_nakusute
09-10-2003, 09:15 PM
wow, very sorry for not replying like...years, i happened to start school that very next day.
anyway....i should have it for you in bout 20 mins maybe....i need to regain my knowledge a bit.....

i guess ill pm you since youre prolly not checking back to this post much