Results 1 to 3 of 3

Thread: anyone on the NS6 ill tip?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Posts
    537
    howdy
    strange behavior w/ ns6 going on here.

    onMouseover calls a function that swaps an image
    onMouseout does the same thing but the image 'dissapears' instead of swaping.
    the strange thing is if I put an alert box in the onMouseout function, i don't get the strange behavior.

    here is a sample of the code
    ___________________________________
    {d.writeln('<div id="NorthLayer" onMouseOut="OutImage(\'North\');hideMenu(\'NorthLayer\');" onMouseOver="showMenu(\'NorthLayer\');OverImage(\'North\');">');}
    ___________________________________

    the OutImage() function

    _______________________________________
    function OutImage(pic) {
    //onMouseOut release button
    if (document.images && (preloadFlag == true))
    { //check for images
    //alert("mouse out image");
    document.images[pic].src = eval(pic + "_out.src"); //swap current "over" image for "out" image
    }
    }
    ________________________________________________________

    i've never seen this before. this is in NS6 , in IE5 it works fine.

    let me know if you need more info.

    anyone???

    thanks
    pnj

  2. #2
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    as far as i can see, you are referencing the 'div' improperly.

    Code:
    document.images[pic].src = eval(pic + "_out.src"); //swap current "over" image for "out" image
    should be
    Code:
    document.divName.document.images[imgNumberInArray] = whatever.
    Treat each layer like its own document.

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Posts
    537

    hmmmm.....

    that's weird
    I'll give it a try thanks

    what's weird is 'sometimes' it works properly
    then,at random, it acts funny with the disapearing act.


    thanks
    pnj

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