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

#301 2011-01-08 15:41:44

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

Those look much better than mine! Thanks very much!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#302 2011-01-09 03:58:34

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

smile


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#304 2011-01-09 15:03:49

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

smile  Also, we could use the ZeroClipboard library so users could copy the code without having to right-click!
I'll help you implement it if you want to.

Last edited by comp500 (2011-01-09 15:08:19)


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#305 2011-01-10 14:45:08

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

Working Example:

Code:

 <html><head><title></title></head>
        <body onload="init()">
                <script type="text/javascript" src="ZeroClipboard.js"></script>
        <script type="text/javascript" src="jquery-1.4.4.min.js"></script>
        
                <div id="copybutton1" style="padding:0px; width:16; height:16;" class="copybutton"><img src="page_white_copy.png" /></div>
                <div id="copybutton1text" style="display:none;">click a-me!</div>
        <div id="copybutton2" style="padding:0px; width:16; height:16;" class="copybutton"><img src="page_white_copy.png" /></div>
                        <div id="copybutton2text" style="display:none;">click a-me!!!!</div>
        
                <script type="text/javascript">
                    var clip = null;

                    function init() {
                        // setup single ZeroClipboard object for all our elements
                        clip = new ZeroClipboard.Client();
                        clip.setHandCursor(true);

                        // assign a common mouseover function for all elements using jQuery
                        $('div.copybutton').mouseover(function () {
                            // set the clip text to our innerHTML
                            var cliptext = document.getElementById(this.id + "text");
                            clip.setText(cliptext.innerHTML);

                            // reposition the movie over our element
                            // or create it if this is the first time
                            if (clip.div) {
                                clip.receiveEvent('mouseout', null);
                                clip.reposition(this);
                            }
                            else clip.glue(this);

                            // gotta force these events due to the Flash movie
                            // moving all around.  This insures the CSS effects
                            // are properly updated.
                            clip.receiveEvent('mouseover', null);
                        });
                    }
                </script>
        </body>
        </html>

Requires:
The whole ZeroClipboard library in the same folder
http://code.jquery.com/jquery-1.4.4.min.js(jquery)

We can use a similar mechanism for the website.(with PHP,of course)


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#306 2011-01-10 14:46:42

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

Re: Welcome to your local block library! - Website development thread.

comp500 wrote:

Working Example:

Code:

 <html><head><title></title></head>
        <body onload="init()">
                <script type="text/javascript" src="ZeroClipboard.js"></script>
        <script type="text/javascript" src="jquery-1.4.4.min.js"></script>
        
                <div id="copybutton1" style="padding:0px; width:16; height:16;" class="copybutton"><img src="page_white_copy.png" /></div>
                <div id="copybutton1text" style="display:none;">click a-me!</div>
        <div id="copybutton2" style="padding:0px; width:16; height:16;" class="copybutton"><img src="page_white_copy.png" /></div>
                        <div id="copybutton2text" style="display:none;">click a-me!!!!</div>
        
                <script type="text/javascript">
                    var clip = null;

                    function init() {
                        // setup single ZeroClipboard object for all our elements
                        clip = new ZeroClipboard.Client();
                        clip.setHandCursor(true);

                        // assign a common mouseover function for all elements using jQuery
                        $('div.copybutton').mouseover(function () {
                            // set the clip text to our innerHTML
                            var cliptext = document.getElementById(this.id + "text");
                            clip.setText(cliptext.innerHTML);

                            // reposition the movie over our element
                            // or create it if this is the first time
                            if (clip.div) {
                                clip.receiveEvent('mouseout', null);
                                clip.reposition(this);
                            }
                            else clip.glue(this);

                            // gotta force these events due to the Flash movie
                            // moving all around.  This insures the CSS effects
                            // are properly updated.
                            clip.receiveEvent('mouseover', null);
                        });
                    }
                </script>
        </body>
        </html>

Requires:
The whole ZeroClipboard library in the same folder
http://code.jquery.com/jquery-1.4.4.min.js(jquery)

We can use a similar mechanism for the website.(with PHP,of course)

to get jquery u could just implement it from google.

Offline

 

#307 2011-01-11 02:34:25

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

ProgrammingFreak wrote:

comp500 wrote:

Working Example:

Code:

 <html><head><title></title></head>
        <body onload="init()">
                <script type="text/javascript" src="ZeroClipboard.js"></script>
        <script type="text/javascript" src="jquery-1.4.4.min.js"></script>
        
                <div id="copybutton1" style="padding:0px; width:16; height:16;" class="copybutton"><img src="page_white_copy.png" /></div>
                <div id="copybutton1text" style="display:none;">click a-me!</div>
        <div id="copybutton2" style="padding:0px; width:16; height:16;" class="copybutton"><img src="page_white_copy.png" /></div>
                        <div id="copybutton2text" style="display:none;">click a-me!!!!</div>
        
                <script type="text/javascript">
                    var clip = null;

                    function init() {
                        // setup single ZeroClipboard object for all our elements
                        clip = new ZeroClipboard.Client();
                        clip.setHandCursor(true);

                        // assign a common mouseover function for all elements using jQuery
                        $('div.copybutton').mouseover(function () {
                            // set the clip text to our innerHTML
                            var cliptext = document.getElementById(this.id + "text");
                            clip.setText(cliptext.innerHTML);

                            // reposition the movie over our element
                            // or create it if this is the first time
                            if (clip.div) {
                                clip.receiveEvent('mouseout', null);
                                clip.reposition(this);
                            }
                            else clip.glue(this);

                            // gotta force these events due to the Flash movie
                            // moving all around.  This insures the CSS effects
                            // are properly updated.
                            clip.receiveEvent('mouseover', null);
                        });
                    }
                </script>
        </body>
        </html>

Requires:
The whole ZeroClipboard library in the same folder
http://code.jquery.com/jquery-1.4.4.min.js(jquery)

We can use a similar mechanism for the website.(with PHP,of course)

to get jquery u could just implement it from google.

?


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#308 2011-01-14 15:08:18

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

comp500 wrote:

ProgrammingFreak wrote:

comp500 wrote:

Working Example:

Code:

 <html><head><title></title></head>
        <body onload="init()">
                <script type="text/javascript" src="ZeroClipboard.js"></script>
        <script type="text/javascript" src="jquery-1.4.4.min.js"></script>
        
                <div id="copybutton1" style="padding:0px; width:16; height:16;" class="copybutton"><img src="page_white_copy.png" /></div>
                <div id="copybutton1text" style="display:none;">click a-me!</div>
        <div id="copybutton2" style="padding:0px; width:16; height:16;" class="copybutton"><img src="page_white_copy.png" /></div>
                        <div id="copybutton2text" style="display:none;">click a-me!!!!</div>
        
                <script type="text/javascript">
                    var clip = null;

                    function init() {
                        // setup single ZeroClipboard object for all our elements
                        clip = new ZeroClipboard.Client();
                        clip.setHandCursor(true);

                        // assign a common mouseover function for all elements using jQuery
                        $('div.copybutton').mouseover(function () {
                            // set the clip text to our innerHTML
                            var cliptext = document.getElementById(this.id + "text");
                            clip.setText(cliptext.innerHTML);

                            // reposition the movie over our element
                            // or create it if this is the first time
                            if (clip.div) {
                                clip.receiveEvent('mouseout', null);
                                clip.reposition(this);
                            }
                            else clip.glue(this);

                            // gotta force these events due to the Flash movie
                            // moving all around.  This insures the CSS effects
                            // are properly updated.
                            clip.receiveEvent('mouseover', null);
                        });
                    }
                </script>
        </body>
        </html>

Requires:
The whole ZeroClipboard library in the same folder
http://code.jquery.com/jquery-1.4.4.min.js(jquery)

We can use a similar mechanism for the website.(with PHP,of course)

to get jquery u could just implement it from google.

?

Oh. I get it.

Bump!


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#310 2011-01-14 23:13:34

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

Uhh...err...ahh... oh yeah.

Need assistance?  big_smile


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#311 2011-01-15 04:28:14

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

Nope. I can doo stuff on mi own  tongue
I'll be starting on zeroclipboard soon!


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#312 2011-01-16 09:07:04

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

Bummmmpp.


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#313 2011-01-20 02:38:28

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

Bump.


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#314 2011-01-20 14:34:19

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

Re: Welcome to your local block library! - Website development thread.

Is this dead?

Offline

 

#315 2011-01-20 14:47:33

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

...

Let's get development back on the road! What's next on the to-do list?  smile


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#316 2011-01-20 15:06:51

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

Re: Welcome to your local block library! - Website development thread.

Idk! I think Josh knows though. To bad hes offline.

Offline

 

#317 2011-01-20 15:41:36

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

Who's Josh?


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#318 2011-01-20 15:44:10

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

Re: Welcome to your local block library! - Website development thread.

sparks wrote:

Who's Josh?

Daffy22.  smile

Offline

 

#319 2011-01-21 00:07:00

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

Can i help?
(I'll check tomorrow.)


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#320 2011-01-21 02:48:15

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

I'm ready for coding.


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#321 2011-01-21 03:08:20

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

[repost] smile  Also, we could use the ZeroClipboard library so users could copy the code without having to right-click!
I'll help you implement it if you want me to.[/repost]

Last edited by comp500 (2011-01-21 03:10:46)


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#322 2011-01-21 03:10:20

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

[repost]Working Example:

Code:

 <html><head><title></title></head>
        <body onload="init()">
                <script type="text/javascript" src="ZeroClipboard.js"></script>
        <script type="text/javascript" src="jquery-1.4.4.min.js"></script>
        
                <div id="copybutton1" style="padding:0px; width:16; height:16;" class="copybutton"><img src="page_white_copy.png" /></div>
                <div id="copybutton1text" style="display:none;">click a-me!</div>
        <div id="copybutton2" style="padding:0px; width:16; height:16;" class="copybutton"><img src="page_white_copy.png" /></div>
                        <div id="copybutton2text" style="display:none;">click a-me!!!!</div>
        
                <script type="text/javascript">
                    var clip = null;

                    function init() {
                        // setup single ZeroClipboard object for all our elements
                        clip = new ZeroClipboard.Client();
                        clip.setHandCursor(true);

                        // assign a common mouseover function for all elements using jQuery
                        $('div.copybutton').mouseover(function () {
                            // set the clip text to our innerHTML
                            var cliptext = document.getElementById(this.id + "text");
                            clip.setText(cliptext.innerHTML);

                            // reposition the movie over our element
                            // or create it if this is the first time
                            if (clip.div) {
                                clip.receiveEvent('mouseout', null);
                                clip.reposition(this);
                            }
                            else clip.glue(this);

                            // gotta force these events due to the Flash movie
                            // moving all around.  This insures the CSS effects
                            // are properly updated.
                            clip.receiveEvent('mouseover', null);
                        });
                    }
                </script>
        </body>
        </html>

Requires:
The whole ZeroClipboard library in the same folder
http://code.jquery.com/jquery-1.4.4.min.js(jquery)

We can use a similar mechanism for the website.(with PHP,of course)[/repost]


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#323 2011-01-21 04:22:45

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

Oh, I see, does that mean people will be able to click "copy" and the block contents will be pasted to their clipboard? Neat!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#324 2011-01-21 10:40:51

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

Exactly.  smile

Last edited by comp500 (2011-01-21 10:41:07)


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#325 2011-01-21 11:07:44

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Welcome to your local block library! - Website development thread.

That sounds very neat! We need Daffy22 to arrive, he's the one with the acess.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

Board footer