bfr
New Member
Posts: 48
|
Post by bfr on Apr 29, 2005 13:56:53 GMT -8
OK, here are the rules:
Somebody posts a code, and tells what language it is in. Then, everyone else guesses what the code does, and the person closest then gets to post a code, and so on.
Here is my (simple lol to start off with) code:
Language: HTML
Code:
<table border="1" width="100%"> <tr> <td width="100%">Three good TI-calculators: <ul> <li>V200</li> <li>TI-92+</li> <li>TI-89 Titainium</li> </ul> </td> </tr> </table>
|
|
|
Post by Jimmy on Apr 29, 2005 14:18:35 GMT -8
the lounge isn't the place for this...... It creates a large, one row, one column table with a bulleted list saying: - V200
- TI-92+
- TI-89 Titainium
it has a border of size 1. EDIT I'm not posting a code.
Last Edit: Apr 29, 2005 14:41:08 GMT -8 by Jimmy
|
|
|
Post by CrAzY_J on Apr 29, 2005 15:34:11 GMT -8
#include <stdio.h>
main() { int naruto, sasuke; float sakura; naruto=26; sasuke=385; sakura=1.609*(naruto + sasuke /1760.0); printf("\nTotal %f Kilometers.\n\n",sakura); system("PAUSE"); }
|
|
bfr
New Member
Posts: 48
|
Post by bfr on Apr 29, 2005 15:48:38 GMT -8
...in my next post here I'm probably going to post the answer to "Deleted's code. Sorry for making the htread in the wrong place.
|
|
|
Post by CrAzY_J on Apr 29, 2005 16:25:54 GMT -8
...in my next post here I'm probably going to post the answer to "Deleted's code. after youve asked somebody else who knows the language what it is?
|
|
bfr
New Member
Posts: 48
|
Post by bfr on Apr 29, 2005 16:30:00 GMT -8
No . After I apologize. But you are supposed to include the language but sometimes it is easy to tell what language it is in.... It multiplies two numbers (naruto=26; sasuke=385;) and does some stuff, prints the answer and pauses, whatever language that is in.....
|
|
|
Post by CrAzY_J on Apr 29, 2005 17:44:56 GMT -8
No . After I apologize. But you are supposed to include the language but sometimes it is easy to tell what language it is in.... It multiplies two numbers (naruto=26; sasuke=385;) and does some stuff, prints the answer and pauses, whatever language that is in..... C
|
|
bfr
New Member
Posts: 48
|
Post by bfr on Apr 30, 2005 6:00:47 GMT -8
Language: It kind of says in the first line <style type="text/css"> <!-- td {border: 4 outset; border-color: #CCCCCC;} --> </style> You all should know what that one does....
|
|
|
Post by CrAzY_J on Apr 30, 2005 6:10:19 GMT -8
CSS
creates a outsset borther with color: cccccc
<script> function hideshow(cat){ var Tr=document.getElementsByTagName('tr') for(r=0;r<Tr.length;r++){ with(Tr[r]){ if(cells[0].className=='catbg' && cells[0].colSpan=='5' && cells[0].innerHTML.match(cat) && cells[0].align!='right'){ for(c=r+1;c<Tr.length;c++){ if(TD[2].innerHTML.match(/welcome/i) && Tr[c].innerHTML.match(/info center/i)){ break; } if(Tr[c].cells[0].className=='catbg'){ break; }else if(Tr[c].style.display=='none'){ Tr[c].style.display=''; }else{ Tr[c].style.display='none'; } } } } } }
var TD=document.getElementsByTagName('td') for(t=0;t<TD.length;t++){ with(TD[t]){ if(className=='catbg' && colSpan=='5' && align!='right'){ var inn=getElementsByTagName('b')[0].innerHTML; innerHTML=innerHTML.replace(inn,"<a href='javascript:hideshow(\""+inn+"\");'>"+inn+"</a>") } } } </script>
|
|
|
Post by CD on Apr 30, 2005 10:00:13 GMT -8
That code hides/shows categories upon click. <script> aTD= document.getElementsByTagName("TD"); aTB= document.getElementsByTagName("TABLE"); user= aTD[2].innerHTML; bar= aTB[0].insertRow(0).insertCell(0);
with(user){ if(match(/Hey/)){ bar.innerHTML= aTD[2].innerHTML; bar.className="catbg"; user.style.display="none"; }} </script>
Pretty simple. Javascript.
Last Edit: Apr 30, 2005 10:00:43 GMT -8 by CD
|
|