Icon Table Generator

Apr 16, 2006 22:52

I've been wanting to put the LJ icons I create in table-format posting for some time now, but couldn't really be bothered with writing up tables again and again or copy-pasting groups of cells or something. I'm lazy that way. ;) So I ended up getting into geek mode for a few hours tonight and came up with this -- a script that takes a (preset or Read more... )

!resources, !icon table generator

Leave a comment

Comments 316

terra April 16 2006, 17:38:06 UTC
You are my hero, Angela! This is wonderful.

Reply

angelamaria April 17 2006, 00:36:50 UTC
Hee! Glad you like it, Alex! ♥

Reply


belladee_icons April 22 2006, 13:11:45 UTC
This is so amazing; thank you so much for making it!

Reply

angelamaria April 22 2006, 14:50:23 UTC
I'm glad you find it useful! :) ♥

Reply


miss_newyork May 19 2006, 07:13:21 UTC
hi there, I have a quite technical question about your script: I've been using my own generator for a while, which works perfectly with the way I save my icons (even less work :), but I just can't seem to figure out how to add that second row with the numbers. Right now I had to put the number and the icon in one cell to make it work. I'm sure it is completely easy, but I managed to create infinite loops all the time :( Can you help me out, please? Thanks!

Reply

angelamaria May 19 2006, 07:57:48 UTC
Hello :)

What do you mean by "second row with the numbers"? You mean, how to automatically generate the numbers from how many images you enter in the form?

Reply

miss_newyork May 19 2006, 08:18:48 UTC
wow, this is really hard to explain... :) and I just realized that you're not even using tables for your generator but DIVs. I really have to look into that.

Anyway, in case you do know the trick anyway, I wrote down the code I'm talking about:

... )

Reply

angelamaria May 19 2006, 08:29:26 UTC
Oh, I'm also using tables for some of the templates, but I prefer divs since it's liquid and how many images/icons per row would then depend on how big the screen size of the visitor would be. :) The tables are there in case other people prefer using tables/having static columns of icons.

Hmm. I can't exactly tell how you've implemented your generator through the HTML output, although I believe one of my templates have that sort of layout. What happens in my script, though, is that the "body" contains not just one row of cells but two rows -- one row first for the numbers and another row for the images. :) The number of icons (for the number of the icon) is handled by a counter variable and incremented each time an icon is "placed" in the resulting HTML, not after EACH icon; each row in my template could have one, two, three, etc number of icons (as opposed to just one).

Reply


verylisa May 27 2006, 02:40:00 UTC
What a lovely table generator! I haven't used one before, but will try it out with my next batch of icons. Thank you for making it. :)

Reply

angelamaria May 27 2006, 07:35:10 UTC
Glad you like it! :D

Reply


krysjez June 21 2006, 04:51:47 UTC
I love you.

Reply

angelamaria June 21 2006, 05:38:02 UTC
Thank you. :D

Reply

krysjez June 21 2006, 08:35:20 UTC
How long did it take for you to code it, by the way?

Reply

angelamaria June 21 2006, 12:51:23 UTC
Around 2-3 hours all in all -- script itself, included "templates", layout of the page, JS, and a bit of testing. :)

Reply


Leave a comment

Up