Solved

GIF animation stop after load a new page in other form

Posted on 2001-07-04
6
161 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

820 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