[Javascript] (no subject)

Rodney Myers rodney at aflyingstart.net
Fri Oct 26 04:36:15 CDT 2001


Liset,

The "Active link" is only "Active" for a very short time. It does not
remain "Active" simply because the page its HREF points to has loaded.

It may be possible to look through the links array and find matches
between the HREF and the location of the loaded page in the other frame.
When a match is found reset the link and/or visited link colour.

Let us know how you get on

Rodney


Liset Liy wrote:

> Hi folks,I'm in doubt about a function programmed by me for the
> onClick event links. The reason of that function is to change the
> color of the active link to white and set black the color of rest -
> that efect was not possible with the alink property because the page
> is part of a frame so, when you click another page of the frame that
> link was not the active so the color changed, and that was no the
> desired efect!So, I programmed that function but it's not working
> well. For some reason I can see the desired efect just when add an
> alert statement at the begininig - which is marked by comment. But, if
> there's not the alert or if there is the alert just before the return
> statement for example - what enssure that the function was executed
> completely! - the efects are not vissibles.     function
> clicker(elem1,elem2,elem3,elem4,elem5,elem6,elem7,elem8,elem9,text) {
>         //alert("if");
>         elem1.style.color = "#ffffff";
>         elem2.style.color = "#000000";
>         elem3.style.color = "#000000";
>         elem4.style.color = "#000000";
>         elem5.style.color = "#000000";
>         elem6.style.color = "#000000";
>         elem7.style.color = "#000000";
>         elem8.style.color = "#000000";
>         elem9.style.color = "#000000";
>         return true;
>     } My doubt is if the alert cause some event that cause that the
> browser repaint ?? In that case, how can I evoke that event without
> the alert?? In other case, please, I'll really appreciate if somebody
> explain me why my function is not working well and how can I fix the
> problem. Any help is appreciated!Yours,Liset.

--
Shop at ssistant Add-ons and Developer Workshops
http://www.aflyingstart.net/addons/

Enquiries regarding Shop at ssistant Classic training :
Call 01256 880770

Rodney Myers
Based in Oxford, England
Technical Director, Shop at ssistant eCommerce Solutions





More information about the Javascript mailing list