View Full Version : Behaviors help

02-13-2010, 03:47 PM
I've been playing round with the fade/appear behaviour on a couple of photos on my site, but i've hit a bit of a problem

I've set the properties for the photo's to appear over a duration of 5000 milliseconds, the problem i have is, when i load the page, the photos appear for a fraction of a second at 100% then they appear from 0 -100%

any ideas on how to fix this?


02-13-2010, 04:58 PM
I guess your page wants to load the image first and then the behavior script. Does this happen every time you load the page or once they are cached it doesn't happen anymore?

02-13-2010, 05:43 PM
it happens every time i load the page, but if i click refresh, it doesn't happen, if i refresh, it works how it's supposed to

02-16-2010, 02:20 PM
any ideas on this one folks?

02-16-2010, 02:22 PM
Set it to display: none in CSS, and then Javascript takes it from there.

02-16-2010, 08:03 PM
Cheers domedia, that's done the trick.

the image has disappeared from the page in dreamweaver though, is that correct?

Actually, scratch that, the images are still there