This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-05-10 09:32:22

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Javament -- Javascript Experiments!

Javament is a collab to do different Javascript Experiments. Share Javascript code if you already joined, comment even if you didn't join, and post feedback.
There are no requirements expect you need to know atleast simple Javascript. No, not Java, I mean Javascript.

Shared script

Name: Moving Test
By: rdococ
Version: 2.1 -- created forums here
Code:

Code:

<html>
<body>

<h1>Moving test</h1>
<p id="game">O</p>
<script type="text/javascript">
function moveForward()
{
<!--This moves the character forward.-->
var x;
var y;
x=document.abc.def.value;
x="."+x;
document.abc.def.value=x;
y=document.cc.char.value;
document.getElementById("game").innerHTML="";
document.getElementById("game").innerHTML=x+y+" ";
}
</script>

<script type="text/javascript">
function moveBack()
{
<!--Moves the character to the beginning-->
var x;
var y;
document.abc.def.value=""
x=document.abc.def.value;
document.abc.def.value=x;
y=document.cc.char.value;
document.getElementById("game").innerHTML=y;
}
</script>
<button type="button" onclick="moveForward()">Move forward</button>
<button type="button" onclick="moveBack()">Move back to beginning</button>
<form name="abc">
<INPUT disabled="true" type="text" name="def">
</form>
<p>This was made in Javascript and therefore it is on the internet.</p>
Character:
<form name="cc">
<!--This is the form to change the character-->
<INPUT type="text" name="char" value="O">
</form>
<p>Tip: If you want the character to save, it will be saved on your next move.</p>
<!--X determines the X position of you, if you took 1 period away. Y determines what the character is.-->
</body>
</html>

Name: Tag maker
By: rdococ
Version: 1.0
Code:

Code:

<html>
<head>
<script type="text/javascript">
function displayItem()
{
document.getElementById("demo").innerHTML=document.abc.output1.value + document.abc.datatest.value + " " + document.abc.output2.value;
}
</script>
</head>
<body>

<h1>Tag maker</h1>
Result:<br /><p id="demo">Testing result goes here.</p>
<form name="abc">
  New start tag: <input type="text" name="starttag" value="<newtag>"/><br />
  New end tag: <input type="text" name="endtag" value="</newtag>"/><br />
  Result start tag: <input type="text" name="output1" value="<u>"< /><br />
  Result end tag: <input type="text" name="output2" value="</u>"/><br />
  Text to test: <input type="text" name="datatest" value="Hello!"/>
</form>
<button type="button" onclick="displayItem()">Finish</button><br />
(Made in Text/Javascript. If your browser doesn't support it, this won't work.)
<p id="inst">
Instructions: <br />
1. Start typing your new tag's start at the New start tag textbox.<br />
2. Type the end of your new tag at the New end tag textbox.<br />
3. Result start tag is the start tag the new tag displays text as.<br />
4. Result end tag is the end tag the new tag displays text as.<br />
5. Type text for testing in the Text to test textbox. The textbox is used for testing the tag with text.<br />
Tips:<br />
- If the tag has no inputs, don't place an end tag, and Text to show in test will actually be what it displays.<br />
</p>
</body>
</html>

New one added! Please post scripts!

Members:

rdococ
fanofcena

Go on, if you know Javascript, do an experiment. Also do a Javament.
I hope this gets feedback, and gets people joining and scraping code off the cold Can't-do area and dumping it into the Done area!

Last edited by rdococ (2011-06-04 14:35:22)

Offline

 

#3 2011-05-12 16:34:12

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Javament -- Javascript Experiments!

Hey, I'm going to make a website called SourceVille. It will be where you can share codes of any language. Would you like to help? I'm about to make the domain and email. I'll make it from 000webhost.
Do you have hamachi? We can chat there.

Offline

 

#4 2011-05-13 16:35:15

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Javament -- Javascript Experiments!

ProgrammingFreak wrote:

Hey, I'm going to make a website called SourceVille. It will be where you can share codes of any language. Would you like to help? I'm about to make the domain and email. I'll make it from 000webhost.
Do you have hamachi? We can chat there.

I have hamachi, but it glitches up too much. What about Palringo?

Offline

 

#6 2011-05-14 09:34:42

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Javament -- Javascript Experiments!

ProgrammingFreak wrote:

Hey, I'm going to make a website called SourceVille. It will be where you can share codes of any language. Would you like to help? I'm about to make the domain and email. I'll make it from 000webhost.
Do you have hamachi? We can chat there.

I would like to help some with that  tongue


Make sure you can share ruby code  tongue

IT ROCKS


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#7 2011-05-14 09:37:21

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Javament -- Javascript Experiments!

gbear605 wrote:

ProgrammingFreak wrote:

Hey, I'm going to make a website called SourceVille. It will be where you can share codes of any language. Would you like to help? I'm about to make the domain and email. I'll make it from 000webhost.
Do you have hamachi? We can chat there.

I would like to help some with that  tongue


Make sure you can share ruby code  tongue

IT ROCKS

big_smile  Yeah. Have you tried Ruby On Rails?
Do you have hamachi?

rdococ wrote:

ProgrammingFreak wrote:

Hey, I'm going to make a website called SourceVille. It will be where you can share codes of any language. Would you like to help? I'm about to make the domain and email. I'll make it from 000webhost.
Do you have hamachi? We can chat there.

I have hamachi, but it glitches up too much. What about Palringo?

No...  hmm

Offline

 

#8 2011-05-14 09:39:00

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Javament -- Javascript Experiments!

ProgrammingFreak wrote:

gbear605 wrote:

ProgrammingFreak wrote:

Hey, I'm going to make a website called SourceVille. It will be where you can share codes of any language. Would you like to help? I'm about to make the domain and email. I'll make it from 000webhost.
Do you have hamachi? We can chat there.

I would like to help some with that  tongue


Make sure you can share ruby code  tongue

IT ROCKS

big_smile  Yeah. Have you tried Ruby On Rails?
Do you have hamachi?

rdococ wrote:

ProgrammingFreak wrote:

Hey, I'm going to make a website called SourceVille. It will be where you can share codes of any language. Would you like to help? I'm about to make the domain and email. I'll make it from 000webhost.
Do you have hamachi? We can chat there.

I have hamachi, but it glitches up too much. What about Palringo?

No...  hmm

I want to get hamachi, BTW, sig swap day is over.

And I will try ruby on rails.


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#9 2011-05-14 10:49:35

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Javament -- Javascript Experiments!

you should see mine (A) lol

and 000webhost isnt a very good solution if u want to own a source sharing website  tongue  cuz there is a ban on some policies so b8r ask em if they allow COMET Architecture website .

a website as u plan is available btw .. sourceforge / github  tongue

Last edited by fanofcena (2011-05-14 10:51:21)


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#10 2011-05-14 10:52:25

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Javament -- Javascript Experiments!

http://scratch.mit.edu/forums/viewtopic.php?id=63225 << Link to my bst JAVAment so far  wink


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#11 2011-05-14 10:55:05

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Javament -- Javascript Experiments!

rdococ wrote:

Javament is a collab to do different Javascript Experiments. Share Javascript code if you already joined, comment even if you didn't join, and post feedback.
There are no requirements expect you need to know atleast simple Javascript. No, not Java, I mean Javascript.

Shared script

Name: Moving Test
By: rdococ
Version: 2.1 -- created forums here
Code:

Code:

<html>
<body>

<h1>Moving test</h1>
<p id="game">O</p>
<script type="text/javascript">
function moveForward()
{
<!--This moves the character forward.-->
var x;
var y;
x=document.abc.def.value;
x="."+x;
document.abc.def.value=x;
y=document.cc.char.value;
document.getElementById("game").innerHTML="";
document.getElementById("game").innerHTML=x+y+" ";
}
</script>

<script type="text/javascript">
function moveBack()
{
<!--Moves the character to the beginning-->
var x;
var y;
document.abc.def.value=""
x=document.abc.def.value;
document.abc.def.value=x;
y=document.cc.char.value;
document.getElementById("game").innerHTML=y;
}
</script>
<button type="button" onclick="moveForward()">Move forward</button>
<button type="button" onclick="moveBack()">Move back to beginning</button>
<form name="abc">
<INPUT disabled="true" type="text" name="def">
</form>
<p>This was made in Javascript and therefore it is on the internet.</p>
Character:
<form name="cc">
<!--This is the form to change the character-->
<INPUT type="text" name="char" value="O">
</form>
<p>Tip: If you want the character to save, it will be saved on your next move.</p>
<!--X determines the X position of you, if you took 1 period away. Y determines what the character is.-->
</body>
</html>

No more. Join, and share.

Members:

rdococ

Go on, if you know Javascript, do an experiment. Also do a Javament.
I hope this gets feedback, and gets people joining and scraping code off the cold Can't-do area and dumping it into the Done area!

I hope you better use HTML5 Canvas element for it  tongue   wink  see an example of what it can do
HTML5 3d engine written by me in 8 hours


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#12 2011-05-14 10:57:12

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Javament -- Javascript Experiments!

ProgrammingFreak wrote:

Hey, I'm going to make a website called SourceVille. It will be where you can share codes of any language. Would you like to help? I'm about to make the domain and email. I'll make it from 000webhost.
Do you have hamachi? We can chat there.

Do you know Hamachi is potentially dangerous ? (Its a direct tunnel to your computer , gives other person ur IP and even a location to save there files incase if its a RAT client with an awesome BATCH file they can pretty much do anything with your computer ) ...

Use free chatting applications or IRC chatrooms


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#13 2011-05-14 10:59:18

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Javament -- Javascript Experiments!

And rdococ I would like to join your collaboration 8-) though i need some JAVAscript coders for my ULTIMATE WEB PROJECT Hope you will show intrest ! (though in any case i am launching it Next week even if i had to code all alone )


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#14 2011-05-22 08:29:40

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Javament -- Javascript Experiments!

fanofcena wrote:

rdococ wrote:

Javament is a collab to do different Javascript Experiments. Share Javascript code if you already joined, comment even if you didn't join, and post feedback.
There are no requirements expect you need to know atleast simple Javascript. No, not Java, I mean Javascript.

Shared script

Name: Moving Test
By: rdococ
Version: 2.1 -- created forums here
Code:

Code:

<html>
<body>

<h1>Moving test</h1>
<p id="game">O</p>
<script type="text/javascript">
function moveForward()
{
<!--This moves the character forward.-->
var x;
var y;
x=document.abc.def.value;
x="."+x;
document.abc.def.value=x;
y=document.cc.char.value;
document.getElementById("game").innerHTML="";
document.getElementById("game").innerHTML=x+y+" ";
}
</script>

<script type="text/javascript">
function moveBack()
{
<!--Moves the character to the beginning-->
var x;
var y;
document.abc.def.value=""
x=document.abc.def.value;
document.abc.def.value=x;
y=document.cc.char.value;
document.getElementById("game").innerHTML=y;
}
</script>
<button type="button" onclick="moveForward()">Move forward</button>
<button type="button" onclick="moveBack()">Move back to beginning</button>
<form name="abc">
<INPUT disabled="true" type="text" name="def">
</form>
<p>This was made in Javascript and therefore it is on the internet.</p>
Character:
<form name="cc">
<!--This is the form to change the character-->
<INPUT type="text" name="char" value="O">
</form>
<p>Tip: If you want the character to save, it will be saved on your next move.</p>
<!--X determines the X position of you, if you took 1 period away. Y determines what the character is.-->
</body>
</html>

No more. Join, and share.

Members:

rdococ

Go on, if you know Javascript, do an experiment. Also do a Javament.
I hope this gets feedback, and gets people joining and scraping code off the cold Can't-do area and dumping it into the Done area!

I hope you better use HTML5 Canvas element for it  tongue   wink  see an example of what it can do
HTML5 3d engine written by me in 8 hours

I have to have the source to share the script.
fanofcena: Okay! (for both, I'd love to create, however, but I don't know how to use the canvas tag yet.)
Thread: I bump you!

Last edited by rdococ (2011-05-22 08:34:01)

Offline

 

#16 2011-05-28 10:18:23

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Javament -- Javascript Experiments!

rdococ wrote:

fanofcena wrote:

rdococ wrote:

Javament is a collab to do different Javascript Experiments. Share Javascript code if you already joined, comment even if you didn't join, and post feedback.
There are no requirements expect you need to know atleast simple Javascript. No, not Java, I mean Javascript.

Shared script

Name: Moving Test
By: rdococ
Version: 2.1 -- created forums here
Code:

Code:

<html>
<body>

<h1>Moving test</h1>
<p id="game">O</p>
<script type="text/javascript">
function moveForward()
{
<!--This moves the character forward.-->
var x;
var y;
x=document.abc.def.value;
x="."+x;
document.abc.def.value=x;
y=document.cc.char.value;
document.getElementById("game").innerHTML="";
document.getElementById("game").innerHTML=x+y+" ";
}
</script>

<script type="text/javascript">
function moveBack()
{
<!--Moves the character to the beginning-->
var x;
var y;
document.abc.def.value=""
x=document.abc.def.value;
document.abc.def.value=x;
y=document.cc.char.value;
document.getElementById("game").innerHTML=y;
}
</script>
<button type="button" onclick="moveForward()">Move forward</button>
<button type="button" onclick="moveBack()">Move back to beginning</button>
<form name="abc">
<INPUT disabled="true" type="text" name="def">
</form>
<p>This was made in Javascript and therefore it is on the internet.</p>
Character:
<form name="cc">
<!--This is the form to change the character-->
<INPUT type="text" name="char" value="O">
</form>
<p>Tip: If you want the character to save, it will be saved on your next move.</p>
<!--X determines the X position of you, if you took 1 period away. Y determines what the character is.-->
</body>
</html>

No more. Join, and share.

Members:

Go on, if you know Javascript, do an experiment. Also do a Javament.
I hope this gets feedback, and gets people joining and scraping code off the cold Can't-do area and dumping it into the Done area!

I hope you better use HTML5 Canvas element for it  tongue   wink  see an example of what it can do
HTML5 3d engine written by me in 8 hours

I have to have the source to share the script.
fanofcena: Okay! (for both, I'd love to create, however, but I don't know how to use the canvas tag yet.)
Thread: I bump you!

This is how canvas element works think of a dynamically rendered image which is more like using stamp block of scratch for displaying the code output .

Now u will actually have to go through this :>  MDC Tutorial

and then talk to me because theres tooo much about Canvas Element  tongue


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#18 2011-06-04 08:04:21

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Javament -- Javascript Experiments!

Quick! Suggest a cool name for a javascript framework/library!

Offline

 

#20 2011-06-04 08:19:16

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Javament -- Javascript Experiments!

ProgrammingFreak wrote:

Quick! Suggest a cool name for a javascript framework/library!

Scat  tongue

Scratch  tongue


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#21 2011-06-04 08:21:48

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Javament -- Javascript Experiments!

gbear605 wrote:

ProgrammingFreak wrote:

Quick! Suggest a cool name for a javascript framework/library!

Scat  tongue

Scratch  tongue

Umm... you know Scat is a modification?
And, same with Catch!: Scratch!

Offline

 

#22 2011-06-04 08:22:32

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Javament -- Javascript Experiments!

rdococ wrote:

Java-rary.  tongue

Ooh I like the idea of the 'java' part. or maybe a 'j'....

dae (dynamic animation elements)
dLib (dynamic library)
javaWorkz
javaFrame

Offline

 

#23 2011-06-04 08:28:40

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Javament -- Javascript Experiments!

JSLibrary?

Javabrary?

Jarary?


http://i46.tinypic.com/dw7zft.png

Offline

 

#24 2011-06-04 08:33:38

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Javament -- Javascript Experiments!

SeptimusHeap wrote:

JSLibrary?

Javabrary?

Jarary?

Lemme make a thread about it...

Offline

 

#25 2011-06-04 08:37:53

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Javament -- Javascript Experiments!

ProgrammingFreak wrote:

SeptimusHeap wrote:

JSLibrary?

Javabrary?

Jarary?

Lemme make a thread about it...

I think Jarary is good

And it isn't already used  tongue


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

Board footer