Animated GIFS and QT movies stop loading when using onclick, why?

Posted on 1998-05-13
Medium Priority
Last Modified: 2008-03-17
I have a page that plays Qt movies for streaming video and audio and I also have animated GIFS on my pages. When I use this to display a status msg:
<a href="#" onMouseOver="MM_displayStatusMsg('Where?');return document.MM_returnValue"><img src="images/5a.GIF" width="70" height="70" border="0"></a>
(created in Dreamweaver), when the user clicks the image all animated GIFS stop looping (they freeze at current frame) and QT movies stop downloading, which really ruins the dynamics of the page. Reloading the page will start everything from the beginning. How can I fix this? Viewing in Netscape 4.05 for PowerPC (Mac). Thanks!
Question by:deal051298
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1

Author Comment

ID: 1277824
Edited text of question

Expert Comment

ID: 1277825
Please try: href="javascript:void(0)", instead of href="#". This is supposed to avoid side effects when users click on the link.


Author Comment

ID: 1277826
Thanks Julio but it still doesn't work. I'm now trying <a HREF="#" onmouseover="window.status='?';
return true"> with the same problem. What I want is the GIFs to continue playing, the stream to continue downloading whether I do nothing with the link (as above) or use it to open a new window (and url) or whatever. It seems that the script above will stop all downloading and other activity on my browser (NN4.05 Mac).
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more


Expert Comment

ID: 1277827
well, testing would mean going through a lot of trouble (for me), but try this:
<a href="whatever" onmouseover="..." onclick="return false;"><img ....></a>

That should keep Netscape from following the link (well, it does) - the question is if it aborts "the link" early enough to keep everything else going... it should!

Tell me if that helped!

Accepted Solution

TypoError earned 450 total points
ID: 1277828
If all you need to do is to view a message in the status bar, you don't need to use the
anchor at all. Instead, you could do this:

<IMG SRC="images/5a.GIF"
OnMouseOver="MM_displayStatusMsg('Where?'); return document.MM_returnValue";
OnMouseOut="status=defaultStatus"; WIDTH=70 HEIGHT=70 ALT="">

If I misunderstood something, my apologies.

- TypoError

Expert Comment

ID: 1277829
well, you didn't really misunderstand the question... just JavaScript - unfortunately (and hard to understand), the "image" object does NOT have a "mouseover" handler, which is a real pain!

deal?? Have you tried my suggestion? I don't know if it works because I don't have any Quicktime movies to try, but it's well worth a shot... let me know...

Author Comment

ID: 1277830
Thanks TypoError, but Holger actually solved my problem. Too bad, he should have put it as an answer and he would've got the points. Anyway, thanks all.

Expert Comment

ID: 1277831
deal and especially Holger: I am willing to cut a deal here (sorry for the word-play hehe).

Since Holger had the right answer to your question, I will post a 'null' question here, in the Javascript section, worth the same (was it 150 points?) amount.

deal: I want you to grade Holger's answer to your question and once Holger has answered the 'null' question I post, I will grant him the points, according to the grade you give for his answer. I just want to be fair.

- TypoError

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

801 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