Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Inspect Element-ed ideas
- MrSherlockHolmes
- Scratcher
500+ posts
Inspect Element-ed ideas
Lol, that's pretty cool!You put the variable names inside the quotes. It should be like this: Hey, anyone know why this doesn't work:var r;
var g;
var b;
setInterval(function() { r = Math.round(Math.random()*255); g = Math.round(Math.random()*255); b = Math.round(Math.random()*255); $('*').css({ 'color': 'rgb(r, g, b)' }) }, 1000);var r; var g; var b; setInterval(function() { r = Math.round(Math.random()*255); g = Math.round(Math.random()*255); b = Math.round(Math.random()*255); $('*').css({ 'color': 'rgb(' + r + ',' + g + ',' + b + ')' }) }, 1000);
Centred signature.
- MrSherlockHolmes
- Scratcher
500+ posts
Inspect Element-ed ideas
Does anyone have 5000+ posts?
Centred signature.
- CatsUnited
- Scratcher
1000+ posts
Inspect Element-ed ideas
Not a good idea to question about - the does anyone have 1000+ posts topic was closed. Does anyone have 5000+ posts?
bottom text
- DigiTechs
- Scratcher
500+ posts
Inspect Element-ed ideas
Not a good idea to question about - the does anyone have 1000+ posts topic was closed. Does anyone have 5000+ posts?
I don't know about you but I definitely have:
$("dl").each(function(){$(this).html($(this).html().replace(/\d+\+ posts/, "9001+ posts"))});
I do, in fact, have my own site; it's here.
I'm also working on a thing called Fetch. Look at it here!
@thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain.
- dude341
- Scratcher
1000+ posts
Inspect Element-ed ideas
<div class="unsupported-browser banner" data-cue="unsupported_browser">
<div class="container">
<span>Scratch 9.0 is out. We suggest you upgrade.
</div>
</div>
Placeholder
- kvackkvack
- Scratcher
500+ posts
Inspect Element-ed ideas
Thanks!Lol, that's pretty cool!You put the variable names inside the quotes. It should be like this: Hey, anyone know why this doesn't work:var r;
var g;
var b;
setInterval(function() { r = Math.round(Math.random()*255); g = Math.round(Math.random()*255); b = Math.round(Math.random()*255); $('*').css({ 'color': 'rgb(r, g, b)' }) }, 1000);var r; var g; var b; setInterval(function() { r = Math.round(Math.random()*255); g = Math.round(Math.random()*255); b = Math.round(Math.random()*255); $('*').css({ 'color': 'rgb(' + r + ',' + g + ',' + b + ')' }) }, 1000);
- iwotastic
- Scratcher
100+ posts
Inspect Element-ed ideas
$("div").wrap("<marquee>"); // Looks like a mess to me
$("*").wrap("<marquee>");
- ChocolatePi
- Scratcher
1000+ posts
Inspect Element-ed ideas
Something is wrong with your fonts. I recommend uninstalling any fonts you downloaded from the net that have the words “Helvetica” in them. LOL Anagram mess
(looks like a mess to me!)
- CatsUnited
- Scratcher
1000+ posts
Inspect Element-ed ideas
That gives me an idea - Helvetica Comic Sans!Something is wrong with your fonts. I recommend uninstalling any fonts you downloaded from the net that have the words “Helvetica” in them. LOL Anagram mess
(looks like a mess to me!)
bottom text
- Zro716
- Scratcher
1000+ posts
Inspect Element-ed ideas
$("body").wrap('<a href="https://www.youtube.com/embed/dQw4w9WgXcQ">');
everything is a rickroll
oh oh oh
$("div.post_body_html").remove(); $("div.postmsg").wrap('<iframe width="420" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen>');
Last edited by Zro716 (March 29, 2015 04:42:14)
As a long time Scratcher, I have found new meaning to the name “Scratch”: for me, it means to “scratch that itch”, to come back again and again to realize new ideas in this toy language, even when I'm capable of creating my projects in real programming languages years later. It's a friend that helped me to pursue programming and get me to enjoy its fruit. I'm certain many others who have walked this path as well have grown fond of its importance in their life.
- kvackkvack
- Scratcher
500+ posts
Inspect Element-ed ideas
i r8 rickroll/11$("body").wrap('<a href="https://www.youtube.com/embed/dQw4w9WgXcQ">');
everything is a rickroll
oh oh oh$("div.post_body_html").remove(); $("div.postmsg").wrap('<iframe width="420" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen>');
- kvackkvack
- Scratcher
500+ posts
Inspect Element-ed ideas
Calm down there, Scratch!
$("div.post_body_html").wrap('<img src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcTFYS4PWnjh9Lqbi39VkYW_BgeUbGv3RDKkCHLlFVh2HFS2bvrXDA" />'); $("div.postsignature").wrap('<img src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcTFYS4PWnjh9Lqbi39VkYW_BgeUbGv3RDKkCHLlFVh2HFS2bvrXDA" />');
- cheeseeater
- Scratcher
1000+ posts
Inspect Element-ed ideas
I started all of them at the same time and burnt out my 1 Mbps connection.$("body").wrap('<a href="https://www.youtube.com/embed/dQw4w9WgXcQ">');
everything is a rickroll
oh oh oh$("div.post_body_html").remove(); $("div.postmsg").wrap('<iframe width="420" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen>');
- MrSherlockHolmes
- Scratcher
500+ posts
Inspect Element-ed ideas
Ok, not an inspect element, but still nice :P
Last edited by MrSherlockHolmes (March 29, 2015 08:27:55)
Centred signature.
- Discussion Forums
- » Advanced Topics
- » Inspect Element-ed ideas