如何在Scratch中制作一个按钮,可以跳转到某个网站?

huangapple go评论177阅读模式
英文:

How to make a button in a Scratch that takes you to some website?,

问题

我知道这在普通的Scratch中不会起作用。最多只能在Turbowarp中使用,但有一个问题。Turbowarp将Scratch转化为JavaScript,不幸的是,我不懂这种语言。我该怎么办,或者我应该输入什么命令,以便按钮将我带到网站?

英文:

I know that this won't work in a normal Scratch. Maximum with Turbowarp, but there is one problem. Turbowarp makes JavaScript out of Scratch, and unfortunately I don't know this language. What should I do, or what command should I enter, so that the button takes me to the site?

答案1

得分: 2

TurboWarp有一个名为Network扩展,提供以下功能之一:

  • 在新标签页中打开(...)
  • 在新窗口中打开(...)
  • 重定向此标签页至(...)

快速尝试链接:
https://turbowarp.org/editor?extension=https://extensions.turbowarp.org/true-fantom/network.js

示例:

如何在Scratch中制作一个按钮,可以跳转到某个网站?

执行时,这些块将始终在继续之前请求权限。

如何在Scratch中制作一个按钮,可以跳转到某个网站?

英文:

TurboWarp has an extension called Network that offers you (among others) the following blocks:

  • open (...) in new tab
  • open (...) in new window
  • redirect this tab to (...)

Quick link to try it out:
https://turbowarp.org/editor?extension=https://extensions.turbowarp.org/true-fantom/network.js

Example:

如何在Scratch中制作一个按钮,可以跳转到某个网站?

When executed, the blocks will always ask permission before proceeding.

如何在Scratch中制作一个按钮,可以跳转到某个网站?

huangapple
  • 本文由 发表于 2023年6月13日 01:52:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/76459155.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定