Solved

GIF animation stop after load a new page in other form

Posted on 2001-07-04
6
160 Views
Last Modified: 2013-11-19
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?
0
Comment
Question by:mikezang
6 Comments
 
LVL 5

Expert Comment

by:nilapenn
ID: 6254187
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
0
 
LVL 5

Author Comment

by:mikezang
ID: 6254368
I am sorry, can you explain in detail? did you check my page? there are several GIFs animation, how can I add that script?
0
 
LVL 22

Accepted Solution

by:
CJ_S earned 50 total points
ID: 6254562
Okay you are using javascript to change the page, and are not returning false!

Add a return false to the end of the onCLick:
<a href="..." onClick="...;return false">

Regards,
CJ
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 6254679
LOL
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 6254693
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
0
 
LVL 5

Author Comment

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

0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question