Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

GIF animation stop after load a new page in other form

Posted on 2001-07-04
6
Medium Priority
?
169 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 200 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
This article discusses how to create an extensible mechanism for linked drop downs.
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:
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

916 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