PDA

View Full Version : Animated GIFs and JavaScript


LaundroMat
18 November 2001, 15:41
I just noticed something.

When clicking on one of the smilies in the list (in order to add it to a message), the animation is stopped. I tried to reproduce this locally and here it has the same result.
Anyone has any ideas on the why and how of this?

RCK
18 November 2001, 15:46
It is a good question !

netscape 4.x: no smilies / javascript support.
ie 5.x: animation of smilies stop when you click on a smilie.
ie 6.x: ?
netscape 6.x: ?

Twistin'Ghost
18 November 2001, 17:25
In Netscape, any animated gif stops if you download it. So I just clicked on one of the smiles to my left here (in the Your Reply/Smilies box) and damned if all the animations didn't stop! So this feature (?!) is in Netscape, but why it does this is anybody's guess...

RCK
18 November 2001, 17:32
what is your nescape twist ?
I can't see anything on my 4.78

Ian
18 November 2001, 18:28
Whenever you click a link in IE (Probably netscape too) it's like pressing the stop button on the toolbar, don't know if you can work around it or not, but I think that's why it does it.

Akira
18 November 2001, 19:33
Yep that's what's going on, as Ian said. Itr's like pressing STOP, so they all end.

MethodGit
19 November 2001, 12:47
Yeah, I've noticed the smilies-stop-dead "feature" on IE 5.5 (which is what I'm using) as well.

Haven't tested it through Opera 5, but seeing as it's bizarrely having site-loading problems compared to IE, I'm not sure when to try it.

Amigaboy
19 November 2001, 13:14
Why won't you try Opera?

Because it's less than 10mb installed?
Because it's the fastest browser around?
Because it doesn't freeze your machine?
Because it's only incompatible with a few sites?

Tell me. Which one of the above is the reason you don't want to try it?

Amigaboy
19 November 2001, 14:41
Oh yeah. And those reasons too :D

Yes. I am pro-Opera. I love it. It's great but my main browser is IE (only because most sites are designed for it), but alot of the time I do use Opera, and I think anyone who hasn't tried it, SHOULD! (and don't just give it a 5 second try. Test drive it for a day or two)

RCK
19 November 2001, 14:49
Hey Mr opera, could you tell me if the Mods Jukebox (http://mods.abime.net) works well with opera ?
(I speak of the Modplug plugin here)

It would be nice :cool

Amigaboy
19 November 2001, 14:53
The MOD Plugin works fine in Opera

I'm listening to something on the Mods Jukebox right now

RCK
19 November 2001, 15:13
Originally posted by Amigaboy
I'm listening to something on the Mods Jukebox right now

You are listening something on the mods jukebox ?!!
Times change... :rolleyes

Anyway, It's cool that opera works well :)
I will be able to install XP + opera :cool
(cause stupid XP only have IE6)

Twistin'Ghost
20 November 2001, 12:21
OK, I need some Opera help, then. Here's a problem I have with it. I'm using 6.0. When I attempt to import my (600+meg) bookmark from Netscape, it just suspends until I kill the task. I'm not real crazy about the bookmark manager.

But for the most part and from what I have seen so far, it rocks.

Akira
21 November 2001, 17:21
Duh, I just had an idea on how to fix teh stoppping smily prob, but I just realized it wouldn't work :P

LaundroMat
24 November 2001, 14:47
Would you mind telling anyway? It could set us in the rignht direction.

Ian
24 November 2001, 15:02
Couldn't you make the pages refresh everytime you click a link that should work, but my web design/code skills are seriously lacking and I don't know if this is even possible.

RCK
24 November 2001, 15:29
no, cause if we "force" reloading the page with javascript when you click on a left smily, you will lost your "reply" text.

Akira
26 November 2001, 15:42
Well, in Shmups my nav bar has lots of little animated GIFs, and when you click on a link there, the ani GIFs dont stop, because they open the link in another frame. So, if you create some sort of fake 1 pixel high top frame, and redirect javascripts over that frame, it *might* work *you would have to rewrite javascripts to do their action in another frame, I suppose)

The EAB is not suitable for such a thing, but if it helps anybody, I am glad... :)

MethodGit
26 November 2001, 22:38
Speaking of Opera, how did you manage to make your copy work perfectly?

Most of the time Opera (I'm using v5.12) simply fails to load most pages properly, which is funny considering IE managed to load them 100% without problems. :confused

This is bizarre considering I remember using Opera v4.xx a couple of years ago and it loaded up nearly all sites and pages just fine.

Perhaps Opera 6 fixes this problem? Have you tried this version?

What versions of Opera have you tried before, and how did they behave for you?

Twistin'Ghost
27 November 2001, 11:43
Hmmm...I am planning on installing v5.12 to test some things, but I am running the beta 6 at the moment. It crashed on me once when trying to import my Netscape bookmarks. Aside from that, it has run pretty stable and loads pages much faster than Netscape (FINALLY some relief in that area) and I no more have that refresh problem on the pages here.

But the cookie manager seems pretty poor. I applaud the level of control they are trying to give you, but it's far from working. I am unable to get into the AGD admin area using this version of Opera, nor can I get into my admin area at mp3.com! Nor will it allow me to upload to the Zone (claims there is a connection error) and I get the same error message when trying to attach a file with a message here. So I end up having to run both browsers (which is still better than running IE).

One nice thing is that if I try to open a page in a new window, it will warn me that system resources are low (if they are) and will not just load it anyhow. Something you rarely (if ever) see on the PeeCee.

@S4murai
Have you figured out how to get the Personal Bar working? The Bookmark Manager is even worst than 'Favorites' in IE!

And that download manager thingie - what's up with that? Is there a way to clear that? Or just make it not show up ever? I don't need a list of all of my downloads popping to the back every time I start a download. But this puppy downloads fast as lightning, I'll give it that.

And allowing you to disable pop-up ads rocks. You can have Javascript without pop-ups...brilliant!

Akira
27 November 2001, 18:15
Originally posted by s4murai
But... but... what if someone uses a browser that doesn't support frames? :laughing :laughing :laughing

I didn''t say it would work for everybody... but hey, even LYNX supports frames! :P

Twistin'Ghost
28 November 2001, 01:22
Originally posted by s4murai
WTF are you doing with your cookies? Just let them be and everything works correctly
I just tried the different methods offered by Preferences. I first had it accept only from originating server and later changed it to accept all cookies. The result is the same.
Originally posted by s4murai
Personal Bar? You mean the one on the left? I never use it for anything else than bookmarks (which can be added in the menu on the top). I never imported my NS-bookmarks, only the IE ones and this worked fine.
I have no bar to the left or anywhere else. In Netscape, mine is located as a row under the buttons across the top. I assumed that since this option is in Opera's bookmarks, that they were emulating the same thing.
Originally posted by s4murai
What's wrong with it? In IE and NS a window pops up too when you download something. How do you want to download something when the download-window mustn't appear? :p
Big difference between a window popping up indicating a download and how much is left to go, and Opera's download manager which lists every file you have downloaded (how far back it goes remains to be seen). Plus Netscape and IE don't send the window to the back so you have to bring it back to the front to know when your transfer is done. Plus, you can have those close when the transfer is done. Hardly the same thing!

Leto2
28 November 2001, 20:07
RCK, maybe you can try to stop using links for smilies insertion but use javascript instead; it works well on other websites (like clubic) and does not stop gif animations...
(use javascript OnClick property of the picture) ;)

LaundroMat
28 November 2001, 20:41
Aha! Good idea!

Edit: and it works! Thanks :)
(Now I'll just have to change the pointer when hovering over the image)

Little note: I'm in no way developing for the EAB forum; I'm just fiddling about in html/asp/jscript/sql locally.

Akira
28 November 2001, 21:06
Leto: YEAH good call! how did i forget that one :)

Leto the HTML mastah :D

LaundroMat
28 November 2001, 21:08
style="cursor:hand" and hey, presto! No more frozen animations. (Edit: with the former taken into account ofcourse)

All hail Leto.

RCK
28 November 2001, 21:58
Good idea, I will code that later...
Database ATM.

MethodGit
29 November 2001, 18:32
Maybe I should try to find Opera 4 again. Anyone know of any sites or working FTPs which hold past versions of Opera for grabbing?

birdy-scc
29 November 2001, 19:24
Marz, this was what I meant about being spoon-fed.

I'm sure people might know of a source, but why don't you go and look for the versions available by yourself?

MethodGit
29 November 2001, 19:43
I am right now, birdy. I'm using Google, but something tells me I might not strike it lucky.

I already came across one FTP which claimed (on another page) to feature Opera versions since 2.12, but I got an error stating that it "has too many users browsing it right now".

RCK
02 December 2001, 14:57
Thanks to Leto2 advice, Javascript + Animated smilies are now fixed !! :great

Tell me if your browser doesn't support this new fonction.

Akira
03 December 2001, 20:38
There's a problem with the new method: when you are over the image, the cursor doesn't change to the common "hand" cursor

Perhaps you haee to add an on rollOver action to change cursors?

LaundroMat
03 December 2001, 21:39
Originally posted by LaundroMat
style="cursor:hand" and hey, presto! No more frozen animations. (Edit: with the former taken into account ofcourse)


*cough* :D

RCK
03 December 2001, 23:11
lol !!
sorry LaundroMat, I have forgotten this tag :D

akira, "problem" fixed :cool

Akira
04 December 2001, 00:08
Alrightey :D works great now. Look , I posted all tehse using it:

:eek :confused :cool :rolleyes
And they didnt stop :D

Leto2
05 December 2001, 19:43
Oh, it's really great now! :):great