PDA

View Full Version : Anyone any good at HTML?


Kail
December 24th, 2005, 07:02 AM
Okay, so I'm working on putting together a webcomic site, but running into a few snags with my HTML, specifically with animated GIFs. Annoyingly, the problems are browser dependant, so... grr. Does anyone here know much about HTML?

Problems I'm having:

Internet Explorer: I have little animated buttons at the bottom of the page for "next page" and "previous page" and so on. I have it set up with an onmouseover script so that one short GIF animation (e.g. the word "next" fading in) plays when the user mouses over the button, and another (e.g. the word fading out) plays when their mouse leaves the button. It works fine when I view it locally. But I uploaded it, and suddenly all kinds of wierd problems crop up. It's a five frame fade, and the first time you mouse over it, it looks okay, but then when you mouse off or mouse on a second time, every time it plays one of the animations, it plays the last frame first, then stops being a link for a quarter second, then becomes a link again and plays through the animation like normal (in other words, the animation starts at the last frame, then jumps instantly back to the first and runs through to the end). It looks terrible. Ugh. Seems to work fine in Netscape, and when I view it locally, though. Any advice?

Netscape (in FireFox mode): I've got one page of the comic which is a non-looping GIF animation. It plays once and stops. Works fine in Explorer, but in Netscape, it only ever plays once, and the play rate is equal to the download rate (which is a pain). If you leave the page and come back later, it still only shows the last frame. What I would want, ideally, is some way to set the animation to run once every time the page is viewed, or some way to cache it before loading the page.

Anyone got any advice?

AXJ
December 24th, 2005, 10:09 AM
Post the image here....

Kail
December 24th, 2005, 10:25 AM
Ah, right. Well, here's (http://www.kerao.net/images/BFirstA.gif) one of the button images (there are eight of them but they're all basically in this format), and here's (http://www.kerao.net/images/pages/p005.gif) the page which is acting screwy.

The actual page itself is here (http://www.kerao.net/archive/p005.html), but not all the links work (and most of the ones that do are empty).

Aimless
December 25th, 2005, 11:37 AM
Are you using javascript, or the "hover" style attribute?

Kail
December 26th, 2005, 05:44 AM
It's an embedded javascript thing. I'll see if I can get a version working with the hover attribute though; maybe that'll work.

Aimless
December 26th, 2005, 06:04 AM
My advice to you is, if you want an animated comic, use flash. The GIF format isn't doing your style justice.

Kail
December 27th, 2005, 04:27 AM
Yeah, but flash is like three hundred bucks, and so far only maybe 20% of the pages are going to be able to be animated. Animated GIFs are free. Y'think I should just drop the pages which are animated down to one frame?

Aimless
December 27th, 2005, 06:07 AM
I think if it's at all possible, you should have all the important frames in an animation on the same page :)