[thelist] [CODE] bloated image src names

David.Cantrell at Gunter.AF.mil David.Cantrell at Gunter.AF.mil
Tue Nov 12 09:52:00 CST 2002


>I often keep my images tidied into separate folders:
><img src="images/menu_nav/food_nav/main_subnav_prawns.gif"
>but when you have lots of images this does BLOAT the code somewhat.

You could always put everything in the root folder and name it numerically:

	/1.gif
	/2.gif
	/3.gif
	etc...

Then you have no bloat. :D

Personally I'll take the bloat for readability and maintainability any day.

Of course, if you have TONS of items, there's ways to generate the items
automatically either on the server or the client, using a standard naming
scheme. Photo album scripts do stuff like this all the time.

-dave



More information about the thelist mailing list