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

#1 2011-02-25 18:51:19

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

JS and HTML scripting

Hey Guys, I'm back to developing my website, and here is the starting scripts of it!  Would you mind having a look at it, and improving asthetics and scripts?

Code:

<html>
<head>
<title>Home</title>
</head>
<body>
<form> 
<input type=button 
value="Home"
onClick="self.location='index.html'">
<input type=button 
value="websites"
onClick="self.location='webpages.html'">
<input type=button 
value="Images & Videos"
onClick="self.location='imagesandvideos.html'">
<input type=button 
value="Software & Technology"
onClick="self.location='software&tech.html'">
<input type=button 
value="Contact Us"
onClick="self.location='contactus.html'">
</form> 
</body>
</html>
© 2011 Cyberkidscountry.com | Some Rights Reserved

Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#2 2011-02-25 18:52:32

thebuilderdd
Scratcher
Registered: 2008-01-26
Posts: 1000+

Re: JS and HTML scripting

No.

Offline

 

#3 2011-02-25 18:55:22

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: JS and HTML scripting

No, you won't have a look at it, or No, you don't mind?


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#4 2011-02-25 18:56:38

thebuilderdd
Scratcher
Registered: 2008-01-26
Posts: 1000+

Re: JS and HTML scripting

ssss wrote:

No, you won't have a look at it, or No, you don't mind?

I know little HTML, and I don't think you should do SOME RIGHTS do ALL RIGHTS. Also, for a easy website, create it in Word (MS Word.)

Offline

 

#5 2011-02-25 19:01:05

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: JS and HTML scripting

thebuilderdd wrote:

ssss wrote:

No, you won't have a look at it, or No, you don't mind?

I know little HTML, and I don't think you should do SOME RIGHTS do ALL RIGHTS. Also, for a easy website, create it in Word (MS Word.)

I am not allowed to, i have to make my website using Actual Html code and JavaScript - i need to learn, not for easy scripting

And it's Some Rights as the sight will be using Scratch as a game media, and i want it to be Open Source


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#6 2011-02-25 19:30:54

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: JS and HTML scripting

thebuilderdd wrote:

ssss wrote:

No, you won't have a look at it, or No, you don't mind?

I know little HTML, and I don't think you should do SOME RIGHTS do ALL RIGHTS. Also, for a easy website, create it in Word (MS Word.)

Ugh, don't use Word. It takes the simplest website and spits out the most unnecessary complex HTML I've ever seen. I can understand why You would need more complex tags for more complex websites, but Word does an awful job of making minimalist HTML.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#7 2011-02-25 20:12:35

what-the
Scratcher
Registered: 2009-10-04
Posts: 1000+

Re: JS and HTML scripting

Now why would you do that? Just use


../../

href=

Keep to as much HTML as possible. Many people have JS or parts of JS blocked.


http://imageshack.us/m/64/9034/ddfss.pngMy site
Find someone post count. Click posts under username. Find number of pages. Times that by 40 for min and 60 for max and you have a rough estimate of post count.

Offline

 

#8 2011-02-25 20:18:00

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: JS and HTML scripting

what-the wrote:

Now why would you do that? Just use


../../

href=

Keep to as much HTML as possible. Many people have JS or parts of JS blocked.

i have never met anyone with it blocked ...


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#9 2011-02-25 20:29:56

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: JS and HTML scripting

ssss wrote:

what-the wrote:

Now why would you do that? Just use


../../

href=

Keep to as much HTML as possible. Many people have JS or parts of JS blocked.

i have never met anyone with it blocked ...

I turn it off on my iPod because the JS performance on mobile browsers is pretty bad.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#10 2011-02-26 15:09:17

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: JS and HTML scripting

bump


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#11 2011-02-26 15:16:55

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: JS and HTML scripting

I'm a really good website designer. Do you want any help?


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#12 2011-02-26 15:42:13

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: JS and HTML scripting

maybe later, i'm working on some stuff, when i've completed it, you can change the website design  wink


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#13 2011-02-26 20:17:46

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: JS and HTML scripting

New Code
HTML & JavaScript:

Code:

<html>
    <head>
        <link rel="stylesheet" href="layout.css" ... />
        <link rel="jquery" href="http://code.jquery.com/jquery-1.5.1.js" ... />
    </head>
    <body>
        <div class="wrapper">
<center>            <form>
<input type=button
value="Home"
onClick="self.location='index.html'">
<input type=button
value="websites"
onClick="self.location='webpages.html'">
<input type=button
value="Images & Videos"
onClick="self.location='imagesandvideos.html'">
<input type=button
value="Software & Technology"
onClick="self.location='software&tech.html'">
<input type=button
value="Contact Us"
onClick="self.location='contactus.html'">
</form><br>
<p>Hi, welcome to cyberkidscountry!  We are currently under-going major changes to<br>
the site, namely being using JavaScript codes a lot more ;)  We encourage you to<br>
enable Javascript, However, if you do not we ask you to go to<br>
 <a href="/nsj">www.cyberkidscountry.com/njs/</a>.  That is this site, reprogrammed<br>
 to not use javascript in case you do not want it enabled (e.g. On an Ipod).  We<br>
 Thank you for visiting, and we hope you come again!</p>     </center>

            <div class="push"></div>
        </div>
        <center><div class="footer">
            <p>©2011 Cyberkidscountry.com | Most Rights Reserved</p>
        </div>   </center>
    </body>
</html>

CSS design sheet:

Code:

* {
margin: 0;
}
html, body {
height: 100%;
}
.wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -4em;
margin-left: auto;
margin-right: auto;
width: 60em
}
.footer, .push {
height: 4em;
}

Last edited by ssss (2011-02-26 20:18:18)


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

Board footer