Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Nov 2004
    Location
    near the only active volcano in the continental US
    Posts
    409
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Question Blend Transition Failure

    Okay, I think I have the object expected problems taken care of. But in taking care of them, I have ran into a new problem. I am trying to get a Blend Transition with the onMouseover and onMouseout events. I was pretty sure I had it knocked out, and I do get an image change, but it is a snap change instead of a blended change. With the exception of the blend, the function seems to work just fine.

    Code:
    function imageshift(whichid,whichimg)
    {
    var whichshift=eval("document.images."+whichid)
    if (!document.images)
    return
    //If the browser is IE 4.x
    if (document.all)
    eval(whichid+".filters.blendTrans.apply()")
    whichshift.src=eval(whichimg+".src")
    }
    The part I am not sure about is the eval(whichid+".filters.blendTrans.apply()")
    Do I need to assign that as a variable (i.e. var miscvariable=eval.....) to get the call for the transition to work properly? The basic idea is that each link on the page in question is to have a blended image roll over. I know I can do it with individual functions for each image set but I am trying to economize space and loading time by assigning one function to handle all of the links. I've found that it works better for me to take it one step at a time by getting one feature working properly then adding the next, and right now I seem to be stuck with this transition, so fresh eyes are more than welcome at this point.

    Here is the call for the function.

    Code:
    <img src="totmglyph.gif" id="templepic1" onMouseover="imageshift('templepic1','templeimage1')" onMouseout="imageshift('templepic1','templeimage2')" class="click" border="0" style="filter:blendTrans(duration=1)" alt="Enter the Temple of the Snake">

  • #2
    Regular Coder
    Join Date
    Nov 2004
    Location
    near the only active volcano in the continental US
    Posts
    409
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Nevermind. I feel like such a retard today. It helps to apply() the transition before I try to play it.


  •  

    Posting Permissions

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