Results 1 to 2 of 2

Thread: Whats wrong with this?

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2001
    Posts
    45

    Whats wrong with this?

    var pageName;
    var imageName;
    var clean=1;

    if (document.images) {
    arcovr = new Image(); arcovr.src = "images/archive2.jpg";
    arcoff = new Image(); arcoff.src = "images/archive1.jpg";
    picovr = new Image(); picovr.src = "images/picture2.jpg";
    picoff = new Image(); picoff.src = "images/picture1.jpg";
    grovr = new Image(); grovr.src = "imagess/graphic2.jpg";
    groff = new Image(); groff.src = "images/graphic1.jpg";
    miscovr = new Image(); miscovr.src = "images/misc2.jpg";
    miscoff = new Image(); miscoff.src = "images/.misc1.jpg";
    }

    function Point( imageName ) {
    if ( document.images ) {
    document[ imageName ].src = eval(imageName + "ovr.src");
    }
    }

    function noPoint( imageName ) {
    if ( document.images ) {
    document[ imageName ].src = eval(imageName + "off.src");
    }
    }

  2. #2
    Lively Member Silverbug's Avatar
    Join Date
    Feb 2001
    Location
    New Zealand
    Posts
    71
    for a start its java

    um not sure but is this the problem:
    miscoff = new Image(); miscoff.src = "images/.misc1.jpg";
    document[ imageName ].src = eval(imageName + "off.src");
    having the imageName+"off.scr" you get miscoffoff.scr not just miscoff.scr
    Silverbug,
    This space intentionally has nothing but text explaining why this
    space has nothing but text explaining that this space would otherwise
    have been left blank, and would otherwise have been left blank.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width