Link to home
Start Free TrialLog in
Avatar of mikezang
mikezang

asked on

GIF animation stop after load a new page in other form

I have a page at legochina.virtualave.net, after I click "back" or "next" button in the bottom form to load a new page in middle form, the GIF animation in bottom form will stop animation, I don't know why, if I reload bottom frame, animation is ok, so may I need to reload bottom form when I load new page into middle form?
Avatar of nilapenn
nilapenn

Instead of reloading what you can do is in the back and next button add the following script

document.images[0].src=document.images[0].src

replace zero with the number of your picture
Avatar of mikezang

ASKER

I am sorry, can you explain in detail? did you check my page? there are several GIFs animation, how can I add that script?
ASKER CERTIFIED SOLUTION
Avatar of CJ_S
CJ_S
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Michel Plungjan
LOL
Bad news if the href is a normal href ;-)

If you have
<a href="page2.html" target="middle">Next</a>
you need

<a href="page2.html" target="middle" onClick="parent.middle.location=this.href; return false">Next</a>

Points to CJ btw because the solution lies in  the return false

Michel
Thank you very much!
Maybe I should remember this, but I forgot it as I haven't make homepgae for long time. :( - :)