comp500 wrote:
#300!
I can also do images!
Example:
Before:
http://www.block-library.freehostingclo … motion.png
http://www.block-library.freehostingclo … ontrol.png
http://www.block-library.freehostingclo … /looks.png
http://www.block-library.freehostingclo … ensing.png
http://www.block-library.freehostingclo … /sound.png
http://www.block-library.freehostingclo … rators.png
http://www.block-library.freehostingclo … es/pen.png
http://www.block-library.freehostingclo … iables.png
http://www.block-library.freehostingclo … /files.png
http://www.block-library.freehostingclo … colors.png
http://www.block-library.freehostingclo … /other.png
After:
http://img593.imageshack.us/img593/3461/files.png
http://img413.imageshack.us/img413/2981/motionu.png
http://img42.imageshack.us/img42/3952/looksa.png
http://img641.imageshack.us/img641/3383/otherd.png
http://img535.imageshack.us/img535/5973/pen.png
http://img834.imageshack.us/img834/3860/soundu.png
http://img831.imageshack.us/img831/9119/controlu.png
http://img839.imageshack.us/img839/4051/sensing.png
http://img41.imageshack.us/img41/9518/operators.png
http://img707.imageshack.us/img707/1977/variabless.png
http://img593.imageshack.us/img593/8551/colorsb.png
Ta Da!
yeah, We'll use them
Offline
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)
Offline
Working Example:
<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)
Offline
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
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.
?
Offline
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!
Offline
comp500 wrote:
#300!
I can also do images!
Example:
Before:
http://www.block-library.freehostingclo … motion.png
http://www.block-library.freehostingclo … ontrol.png
http://www.block-library.freehostingclo … /looks.png
http://www.block-library.freehostingclo … ensing.png
http://www.block-library.freehostingclo … /sound.png
http://www.block-library.freehostingclo … rators.png
http://www.block-library.freehostingclo … es/pen.png
http://www.block-library.freehostingclo … iables.png
http://www.block-library.freehostingclo … /files.png
http://www.block-library.freehostingclo … colors.png
http://www.block-library.freehostingclo … /other.png
After:
http://img593.imageshack.us/img593/3461/files.png
http://img413.imageshack.us/img413/2981/motionu.png
http://img42.imageshack.us/img42/3952/looksa.png
http://img641.imageshack.us/img641/3383/otherd.png
http://img535.imageshack.us/img535/5973/pen.png
http://img834.imageshack.us/img834/3860/soundu.png
http://img831.imageshack.us/img831/9119/controlu.png
http://img839.imageshack.us/img839/4051/sensing.png
http://img41.imageshack.us/img41/9518/operators.png
http://img707.imageshack.us/img707/1977/variabless.png
http://img593.imageshack.us/img593/8551/colorsb.png
Ta Da!
Great
Maybe you should make the 'other' block gray, so it matches the Panther of BYOB 'other' color.
Offline
Is this dead?
Offline
Idk! I think Josh knows though. To bad hes offline.
Offline
sparks wrote:
Who's Josh?
Daffy22.
Offline
[repost]
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)
Offline
[repost]Working Example:
<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]
Offline