This is the main page

This script shows how to use the TextFader for Cross Frame animation.

The TextFader.js and the DIV in which the text is to fade are both in the top left frame (right click & view source). The top left frame is called "banner". There are extra functions in the frame on the left (navleft.html) that call the functions in the top left frame.

The way to make the fader cross frame is to use the following functions (defined in navleft.html - view the source).

/*** Create the cross Frame functions ***/ 
function fade_up(theDiv, theText,   theColour) 
{ 
    if(parent.banner) 
        if(parent.banner.fade_up) 
            parent.banner.fade_up(theDiv, theText, theColour); 
} 
function fade_down(theDiv, theText, theColour) 
{ 
    if(parent.banner) 
        if(parent.banner.fade_down) 
            parent.banner.fade_down(theDiv, theText, theColour); 
}