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

#1 2013-01-08 15:24:03

Devloper123
Scratcher
Registered: 2011-11-27
Posts: 100+

Scratch in HTML!!!!!!!!!!!!!!!!!!!!!!!!!

Got this Code for scratch in HTML Have a go does'nt work in my IE That's for sure<!doctype html>
<html lang=en>
<meta charset=utf-8>
<head>
<title>Scratch in HTML Test</title>
</head>
<body>

<h1>Test Layout

<applet id='ProjectApplet' style='display:block' code='ScratchApplet'

codebase='http://scratch.mit.edu/static/misc' archive='ScratchApplet.jar' height='387' width='482'><param

name='project' value='../../static/projects/XBOX360GUY/3014957.sb'></applet> <a

href='http://scratch.mit.edu/projects/XBOX360GUY/3014957'>Learn more about this project</a>


</body>
</html>

when gf clicked
Reply if Scratch HTML Works!


http://i45.tinypic.com/2jafczs.gifAnd Dev! Sign up on this forum!i like the  tongue  emoticon

Offline

 

#2 2013-01-08 15:36:27

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Scratch in HTML!!!!!!!!!!!!!!!!!!!!!!!!!

Isn't that just the applet?


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#3 2013-01-08 17:18:40

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Re: Scratch in HTML!!!!!!!!!!!!!!!!!!!!!!!!!

If you're trying to host your games on your own web site using the flash player...

Read this: http://scratch.mit.edu/forums/viewtopic … 2#p1433192


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

#4 2013-01-08 18:21:01

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: Scratch in HTML!!!!!!!!!!!!!!!!!!!!!!!!!

BoltBait wrote:

If you're trying to host your games on your own web site using the flash player...

Read this: http://scratch.mit.edu/forums/viewtopic … 2#p1433192

all he's doing is embedding the java applet, I haven't checked his code to see if it's correct though


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#5 2013-01-09 13:55:25

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Scratch in HTML!!!!!!!!!!!!!!!!!!!!!!!!!

You didn't close your <h1> tag.

Offline

 

#6 2013-01-09 16:15:54

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Scratch in HTML!!!!!!!!!!!!!!!!!!!!!!!!!

scimonster wrote:

You didn't close your <h1> tag.

Not a requirement in HTML5 (then again, we don't know he's using 5 because the doctype is ambiguous).

Offline

 

#7 2013-01-09 16:56:25

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: Scratch in HTML!!!!!!!!!!!!!!!!!!!!!!!!!

LS97 wrote:

scimonster wrote:

You didn't close your <h1> tag.

Not a requirement in HTML5 (then again, we don't know he's using 5 because the doctype is ambiguous).

that is the html5 doctype  tongue  Kinda wish it was a bit more like the XHTML doctypes, but the simplicity is also nice.
However, I do believe it is a requirement, as how would the browser know when the h1 ends?


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#8 2013-01-09 17:51:18

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Scratch in HTML!!!!!!!!!!!!!!!!!!!!!!!!!

SJRCS_011 wrote:

Kinda wish it was a bit more like the XHTML doctypes

What, icky, long, and impossible to memorize or type correctly?  tongue

Also, you forgot to use the subjunctive.

However, I do believe it is a requirement, as how would the browser know when the h1 ends?

Yeah, it's required. <p> is the one you don't have to close.

Last edited by nXIII (2013-01-09 17:51:48)


nXIII

Offline

 

#9 2013-01-10 10:52:08

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Scratch in HTML!!!!!!!!!!!!!!!!!!!!!!!!!

nXIII wrote:

However, I do believe it is a requirement, as how would the browser know when the h1 ends?

Yeah, it's required. <p> is the one you don't have to close.

My bad. I never delved into html5 anyway.

SJRCS_011 wrote:

that is the html5 doctype

My bad again. I thought it was supposed to be <!DOCTYPE html5>

Offline

 

#10 2013-01-13 06:59:40

Devloper123
Scratcher
Registered: 2011-11-27
Posts: 100+

Re: Scratch in HTML!!!!!!!!!!!!!!!!!!!!!!!!!

scimonster wrote:

You didn't close your <h1> tag.

Forgot to


http://i45.tinypic.com/2jafczs.gifAnd Dev! Sign up on this forum!i like the  tongue  emoticon

Offline

 

#11 2013-01-15 10:46:54

Devloper123
Scratcher
Registered: 2011-11-27
Posts: 100+

Re: Scratch in HTML!!!!!!!!!!!!!!!!!!!!!!!!!

SJRCS_011 wrote:

that is the html5 doctype  tongue  Kinda wish it was a bit more like the XHTML doctypes, but the simplicity is also nice.
However, I do believe it is a requirement, as how would the browser know when the h1 ends?

I prefer html5


http://i45.tinypic.com/2jafczs.gifAnd Dev! Sign up on this forum!i like the  tongue  emoticon

Offline

 

#12 2013-01-15 15:11:50

logiblocs
Scratcher
Registered: 2010-05-05
Posts: 100+

Re: Scratch in HTML!!!!!!!!!!!!!!!!!!!!!!!!!

Even if you  don't need the closing tag it is still good standards to do that as not all browsers (um. Internet Explorer) fully support HTML5. It also makes your markup more readable.

Offline

 

#13 2013-01-15 18:04:06

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Scratch in HTML!!!!!!!!!!!!!!!!!!!!!!!!!

logiblocs wrote:

Even if you  don't need the closing tag it is still good standards to do that as not all browsers (um. Internet Explorer) fully support HTML5.

Yeah, but they all parse this in exactly the same way:

Code:

<p>Paragraph 1
<p>Paragraph 2

The HTML5 specification standardizes this parsing process, meaning that it actually is "good standards" to write HTML files like that.

It also makes your markup more readable.

It makes it more verbose and lowers the content-to-code ratio. That's not more readable.

Last edited by nXIII (2013-01-15 18:06:43)


nXIII

Offline

 

#14 2013-01-16 11:05:40

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Scratch in HTML!!!!!!!!!!!!!!!!!!!!!!!!!

nXIII wrote:

It also makes your markup more readable.

It makes it more verbose and lowers the content-to-code ratio. That's not more readable.

I thought a low content-to-code ratio was good, and that search engines used that as a criterion to select highest ranking websites...  hmm

Offline

 

#15 2013-01-19 06:59:08

PullJosh
Scratcher
Registered: 2011-08-01
Posts: 500+

Re: Scratch in HTML!!!!!!!!!!!!!!!!!!!!!!!!!

LS97 wrote:

nXIII wrote:

It also makes your markup more readable.

It makes it more verbose and lowers the content-to-code ratio. That's not more readable.

I thought a low content-to-code ratio was good, and that search engines used that as a criterion to select highest ranking websites...  hmm

Hmm... I've never heard that before, although it could be true.  hmm


http://www.blocks.scratchr.org/API.php?action=text&amp;string=I'm_on_vacation!&amp;xpos=155&amp;ypos=90&amp;font_size=30&amp;bgimage=http://imageshack.us/a/img339/7215/sspeechsigapiforwords.png

Offline

 

Board footer