LOGIN
User Name
Password
Remember me


Register...Forgot password?
Main menu
Leagues
Gonzaga
Blue Max
Cartagena
Wooden Ships...
King Me!
VampiRing
Forum Message
Previous messagePost a replyNext message

City:BM's an RPG
HomePage or other cool site: www.takeaplay.net
Membership21years 325days ago.
Last Login3years 45days ago.
Last Move13years 272days ago.
flying_neko is currently Offline!


Message header
Area/Game:Blue Max
Topic:Site-maintenance and Administration
Subject: Webmaster tip: how to make an even lighter page
Posted by: flying_neko - 19years 273days ago.
Message text
hi Nick & Fourth,

I really like the burst length option, thank you The new BM page source code looks very nice. I know your html & javascript rather well because I studied it for takeAplay ( ). I think I have one suggestion to make your BM pages even lighter.

The way you generate the hex-map is a bit perverse. You have one div for each hex, and "strettosinistra" and "strettodestra" div's for half-hexes. There was a reason for this with the much older code, when you used to "attach" the plane gifs to the single hexes (so to speak).

With your new javascript code, there's just no need to do this: you can just as well make a single <div class="SimplifiedHexMap">, with the hexes as a background: you will just have to make a new hexagon gif, which should be one-and-a-half hex big (one full hex, plus a vertical line below it), then you can generate the full map simply with the following CSS:

.SimplifiedHexMap {
background-image:URL("../images/hexes/hexagon.gif");
}

I'm using this for Void Patrol, and it works for IE, Firefox, Opera, Safari, Mozilla Suite, Konqueror. This will make the html much lighter

Give us faster & lighter fun!

neko

--- Message edited by flying_neko

--- Message edited by flying_neko

Back to the messages list
Messages thread
Posting elapsed timePosted bySubject

19years 273days flying_neko [BM][SYS] Webmaster tip: how to make an even lighter page
Next thread
Posting elapsed timePosted bySubject

19years 273days Ander-Rom [BM][BUG] No Smoke nor Fire in game 159590
Previous thread
Posting elapsed timePosted bySubject

19years 274days darken Re: [BM][BUG] 155376 move 3 to move 1 in a turn
19years 273days Lawtygrr Re: [BM][BUG] 155376 move 3 to move 1 in a turn
 19years 273days Swartz Re: [BM][BUG] 155376 move 3 to move 1 in a turn
19years 273days ksnake Re: [BM][BUG] 155376 move 3 to move 1 in a turn
Page generated in: 27.73438 milliseconds.