User talk:The last username left/2009/October

{| class="nowraplinks" cellspacing=2 style="width: 100%; margin: auto; clear: both; font-size: 90%; text-align: left; padding: 0px; color: black; background-color: #D0F0C0; border: 1px solid darkgreen; float: left; margin: 0px;" !class="navbox-title" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px;"| {| style="margin: 0px;" Archives:
 * valign="top" colspan="2"|
 * valign="top" colspan="2"|
 * 2009
 * March
 * September
 * October
 * November
 * December
 * 2010
 * January
 * February

Infinity...
I like that hypex thingy. You really have nothing to do in your spare time do you?

BTW, are you good in HTML JavaScript? I'm trying to make something cool but I can't seem to make it work, if so, expect several questions, so don't answer yes unless u want to answer questions =).

00:21, October 6, 2009 (UTC)

HTML
Ok Thanks, here's my question, infact, make that questions.

1 - I'm making a website with a table and I want to make a few javascript functions to add rows and columns, although, the delete column button doesn't work, It works to add some but doesn't work to remove any. Here's what it looks like (yes, I did make sure my onClick call was correct, I do that alot.

// delete table columns with index greater then 0 function deleteColumns {    var tbl = document.getElementById('table'); // table reference // set the last column index var lastCol = tbl.rows[0].length - 1; // delete cells with index greater then 0 (for each row) for (var i=0; i2; j--) tbl.rows[i].deleteCell(j); } function deleteColumn{ var tbl = document.getElementById('table'); // table reference deleteCell

I really don't know where's the problem in here, any ideas?

2 - I want for the same table, that, when I add a row, it adds different text in each cell AND still add the same number of cells as there are columns without spamming the IF method.

Here's what I have:

function insRow{ var tbl = document.getElementById('table'); // append table row var row = tbl.insertRow(tbl.rows.length); var lastRow = table.rows.length; // insert table cells to the new row for (var i=0; i<tbl.rows[0].cells.length; i++) createCell(row.insertCell(i), lastRow, 'row'); } function createCell(cell, text, style){ var div = document.createElement('div'); // create DIV element var txt = document.createTextNode(text); // create text node div.appendChild(txt);                   // append text node to the DIV div.setAttribute('class', style);       // set DIV class attribute div.setAttribute('className', style);   // set DIV class attribute for IE (?!) cell.appendChild(div);                  // append DIV to the table cell }

I was thinking of using appendChild before the createCell(row.insertCell... row and adding a minus one right next to the 'row' thing but it doesn't work, know what to do?

3 - Is there a way to createElement(""). What I mean by that, is add an input box where it's name would be different depending on it's location in the table.

Thanks In advance !!!

00:37, October 6, 2009 (UTC)

KK, thanks
^title^ -- 00:53, October 6, 2009 (UTC)

You're not the only one with a weird sense of humor =P.

00:29, October 10, 2009 (UTC)

NO!!! You made another Useless userbox to foil my plans!!! This is not the end of me...

00:47, October 10, 2009 (UTC)

HAHA, I have foiled your plans !!!

User:The last username left and User:Newbie856

MWAHAHAHA

01:10, October 10, 2009 (UTC)

... Fine... Truce

BTW, can you help me for a template ? I'm trying to make a template to link the quest experience reward for a skill, you call it by typing but I have no idea how to make it. If you make it, I'll leave you all the credit for it =P

01:52, October 10, 2009 (UTC)

No, but, nvm, I think I figured it out.

01:58, October 10, 2009 (UTC)

Thanks, althought, I finished it (at User:Newbie856/sandbox/QuestexperienceReward), just two things though:

-Should I add a skill named All where it shows the experience for every skill?

-Should I change every page with Quest Experience Rewards Using the template, so when a new quest comes out, we only need to edit one page instead of 25 ?

Thanks in advance,

02:12, October 10, 2009 (UTC)

KK, thanks

BTW: nice on the random color for your signature.

02:25, October 10, 2009 (UTC)

I've added the All section and the choice section (for lamps). I'll go ahead and ask on the Yew Grove if I should change them or not.

EDIT: Almost forgot, thanks for your help, =P.

02:31, October 10, 2009 (UTC)


 * }
 * }