JavaScript Tip of the Week for June 17, 1996: Create a JavaScript Powered Annotated Tour for your Site | Source Code | WebReference

JavaScript Tip of the Week for June 17, 1996: Create a JavaScript Powered Annotated Tour for your Site | Source Code

JavaScript Tip of the Weekfor June 17, 1996: Source Code: Create a JavaScript Powered Annotated Tour for your Site


Put this code in the navigation frame:
    var part = 0;
function show_tour(comments_window, main_window){
        parent.frames[0].location = comments_window;
        parent.frames[2].location = main_window;
        }
function tour(direct){    
  
        if (direct == 2) 
        {
        part++;
                if (part > 9){
                part = 9;
                }
        }
        if (direct == 1){ 
        part = part -1;
                if (part 



Then create these image buttons; forward and back:
<A HREF = "JavaScript:tour(2);">
    <IMG SRC = "forward.gif"></A>
<A HREF = "JavaScript:tour(1);">
    <IMG SRC = "back.gif"></A>