michaellunsford Posted June 27, 2006 Share Posted June 27, 2006 There's a "blendtrans" object that allows internet explorer to blend images, but I'm looking to blend innerHTML changes as well. Any idea what I'm looking for? Quote Link to comment https://forums.phpfreaks.com/topic/12974-blending-innerhtml-changes/ Share on other sites More sharing options...
nogray Posted June 27, 2006 Share Posted June 27, 2006 you got the blendtrans for IE, for firefox, you'll need to set a javascript function to set the opacities of both objects and blend them that way. You'll need to use setInterval() to change the opacity like thisobject.style.MozOpacity = ## ## is between 0.0 and 1.0You can do the same for Opera 9.0 and higher (the newest version) by changing the CSS3 opacity propertyobject.style.opacity = ## Quote Link to comment https://forums.phpfreaks.com/topic/12974-blending-innerhtml-changes/#findComment-49888 Share on other sites More sharing options...
michaellunsford Posted June 27, 2006 Author Share Posted June 27, 2006 That's awesome. I'm assuming I'll need to use layers with z-indexes to get it to "blend" from one to another? That'll add some complexity. Quote Link to comment https://forums.phpfreaks.com/topic/12974-blending-innerhtml-changes/#findComment-49901 Share on other sites More sharing options...
nogray Posted June 27, 2006 Share Posted June 27, 2006 The easiest way is to use flash, works anywhere ;) and with some ActionScript (which I know nothing about) you can make the pictures dynamic. Quote Link to comment https://forums.phpfreaks.com/topic/12974-blending-innerhtml-changes/#findComment-50143 Share on other sites More sharing options...
michaellunsford Posted June 27, 2006 Author Share Posted June 27, 2006 Flash MX 2004 (the version I have) has a bug importing jpegs with actionscript. I don't know if the new Flash has fixed the issue or not, and I'd have to give "the man" $399 to find out. I did get the blend javascript working.check it out:[a href=\"http://www.premiumglass.com/index.html\" target=\"_blank\"]http://www.premiumglass.com/index.html[/a]I had to tweak some CSS just for Microsoft (surprised?), but it now appears to work on firefox (mac and win), IE (win), Safari (mac), Quote Link to comment https://forums.phpfreaks.com/topic/12974-blending-innerhtml-changes/#findComment-50200 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.