View Full Version : Blend Transition Failure

10-18-2005, 12:28 AM
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.

function imageshift(whichid,whichimg)
var whichshift=eval("document.images."+whichid)
if (!document.images)
//If the browser is IE 4.x
if (document.all)

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.

<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">

10-18-2005, 01:21 AM
Nevermind. I feel like such a retard today. It helps to apply() the transition before I try to play it.