Closed Thread Icon

Preserved Topic: Stopping GIF Animation (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18479" title="Pages that link to Preserved Topic: Stopping GIF Animation (Page 1 of 1)" rel="nofollow" >Preserved Topic: Stopping GIF Animation <span class="small">(Page 1 of 1)</span>\

 
Wes
Paranoid (IV) Mad Scientist

From: Inside THE BOX
Insane since: May 2000

posted posted 11-25-2001 00:43

Because my host's stats package stinks, I've recently chosen to use WebTrends Live to track my stats.

Unfortunately, however, I have to link to an image on their server in order to make the tracking work. I don't mind the image so much (after all, they're providing a service for free), except that it's perpetually animated and quite annoying.

Replacing the image with a still version is not an option. So, is there a way to force an animated GIF to stop?


InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 11-25-2001 01:48

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Wes
Paranoid (IV) Mad Scientist

From: Inside THE BOX
Insane since: May 2000

posted posted 11-25-2001 02:42

You know, I'm not sure if this is what you meant, but I could NAME the animated image and use an onLoad to swap it for a still after the page loads.

That way, it could still call the image from WebTrends' server to register the hit.



[This message has been edited by Wes (edited 11-25-2001).]

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 11-25-2001 04:29

Wes: Or make the image tiny or turn off its visibility and replace it with a frame of the animated gif.

Emps


You're my wife now Dave

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 11-25-2001 08:25

You can also do this in another way (instead of swapping images). You can load WebTrends image with JavaScript (i.e. "myImg = new Image();") and it won't be shown at all. Also, you can replace old image with your static version so that you don't break their license agreement, which says that you must have a visible link to their web site. Oh, and one more thing - I would be very careful with all this since it also says that modifying WebTrends' HTML code is not allowed and will permanently disable your account. They might crawl through all web sites from time to time to check whether their code is still present / unmodified or not. And we don't know what they are checking, so even the smallest modifications (like adding NAME parameter) may disable your account...

And now to the code itself. You'll notice that WebTrends uses one string variable (called "W") to store parameters, which will be passed to the ASP script that returns their button image. Also, notice the SRC parameter of the image that's generated through document.write() function. Now add the following above those document.write() function calls:

webTrendsImage = new Image();
webTrendsImage.src = "put URL from image SRC parameter here, without '+W+' part" + W;

The line from above should look something like this (I took this code from some other web site that uses WebTrends):

webTrendsImage.src = "http://statse.webtrendslive.com/S008-00-11-15-206230-36429/button3.asp?" + W;

And modify document.write() that generates image to suit your own needs...


« BackwardsOnwards »

Show Forum Drop Down Menu