快速放置
将一个 iframe 代码片段粘贴到 CMS 区块、网站构建器或 HTML 模板中,无需重新构建页面。

Iframe 游戏 embeds
使用简单的 iframe 即可向网站添加可玩的浏览器游戏。Games I Know 为网站所有者提供轻量级框架路由、移动友好型游戏以及用于开始、移动和完成结果的可选 postMessage 事件。
embeds 的帧路由
移动优先尺寸
postMessage 事件
领域感知设置
简答
对于网站 embed,请使用 Games I Know 和 iframe,并设置路由为 /embed/{gameSlug}/frame/,宽度设置为 100%,以及您的租户 ID。这种方法适用于博客、企业页面、社区和自定义网站。
首先运行 iframe 演示,然后检查父页面事件日志,看看您的网站可以接收什么。
想要直接联系iframe embed的网站所有者
iframe 可以将游戏与主页隔离,同时仍然为访客提供原生体验的可玩模块。
将一个 iframe 代码片段粘贴到 CMS 区块、网站构建器或 HTML 模板中,无需重新构建页面。
游戏运行在独立的框架中,因此布局、脚本和样式与您的宿主页面分离。
当您需要分析、奖励或自定义页面行为时,请监听开始和完成事件。
设置流程
生产模式很简单:注册域名,复制框架 URL,设置 iframe 维度,并在需要时监听事件。
步骤 1
注册将要托管游戏的网站,以便将 iframe 与已批准的域名关联。
步骤 2
根据受众和页面布局选择 Tic Tac Toe、Four in a Row、Bingo 或 I Know。
步骤 3
使用 /embed/{gameSlug}/frame/ 作为 iframe 源。公共 /embed/{gameSlug}/ 页面适用于人类和搜索引擎。
步骤 4
当您的页面需要分析、奖励或自定义 UI 时,请使用 GAME_STARTED 和 GAME_COMPLETED 等 postMessage 事件。
执行
使用 iframe 内的框架路由,并保持公共着陆路由作为普通链接对用户和爬虫可用。
iframe src 应该指向 /embed/{gameSlug}/frame/,并包含您的租户 ID。请勿将 iframe 指向公共 SEO 页面。
使用宽度="100%" 和接近 640px 的高度,以便游戏在手机和桌面内容栏上有足够的空间。
对于奖品、积分或受限内容,请将 GAME_COMPLETED 中的 resultId 和 signedToken 转发到您的后端,并在授予奖励之前使用合作伙伴服务器密钥进行验证。
可玩游戏
Tic Tac Toe
Embed for same-screen play on your site, or send players to Games I Know to challenge a friend remotely with a room link.
Embed 设置
Four in a Row
Embed for local two-player drops on one screen, or link friends to play Four in a Row online from anywhere.
Embed 设置
Bingo
Same-screen Bingo in your embed, or host a remote room so players can join from their own devices.
Embed 设置
I Know
Quick trivia in your embed on one screen, or run a live room so friends can answer from anywhere.
Embed 设置
Sudoku
Embed a solo Sudoku puzzle for calm brain breaks on blogs, school pages, and waiting-room screens.
Embed 设置
Word Search
Embed a solo Word Search puzzle for quick brain breaks on blogs, school pages, and waiting-room screens.
Embed 设置
常问问题
使用 /embed/{gameSlug}/frame/ 作为 iframe 的 src。该路由是为网站 embed 和 postMessage 事件构建的轻量级游戏框架。/embed/{gameSlug}/ 路由是面向用户的公开预览和 SEO 页面,不应放置在 iframe 内。
不。访客可以在手机、平板电脑、笔记本电脑或台式机上的浏览器iframe内进行游戏。只有安装embed的网站所有者才需要合作伙伴帐户。
是的。Games I Know 和 embed 是围绕注册网站和域名受限的租户设置设计的,因此复制的 iframe 代码不能在未经授权的网站上随意重复使用。
Tic Tac Toe、Four in a Row、Bingo 和 I Know 可作为 embed 浏览器游戏使用。embed 文档在所有受支持的游戏中使用相同的事件模型。
游戏框架本身不应作为SEO页面。请在embed周围保留一个普通的、可索引的页面,其中包含有用的文本、链接和常见问题解答。Games I Know也提供搜索引擎和AI爬虫可以理解的公共embed页面和文档。