Solved

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

Posted on 1998-05-13
8
952 Views
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!
0
Comment
Question by:deal051298
  • 3
  • 2
  • 2
  • +1
8 Comments
 

Author Comment

by:deal051298
Comment Utility
Edited text of question
0
 
LVL 5

Expert Comment

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

-julio
0
 

Author Comment

by:deal051298
Comment Utility
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).
0
 
LVL 6

Expert Comment

by:Holger101497
Comment Utility
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!
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 1

Accepted Solution

by:
TypoError earned 150 total points
Comment Utility
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
0
 
LVL 6

Expert Comment

by:Holger101497
Comment Utility
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...
0
 

Author Comment

by:deal051298
Comment Utility
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.
0
 
LVL 1

Expert Comment

by:TypoError
Comment Utility
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
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now