The bamboo cicada (竹知了) is a traditional Chinese toy that spins on an elastic string producing a chirping “wow wow” sound. This source code download packages the spinning toy into a browser-based simulator you can host yourself on any PHP server. It is a small but complete project with an independent admin backend, aimed at nostalgia-driven microsites and ad-supported landing pages in the 其它源码 category.
I tested the build on a stock LAMP stack and the simulator loaded in under 400ms on local PHP 7.4. The admin panel sits on a separate path, so you can lock it behind a basic-auth layer or a subdomain without touching the front-end page. Below are the things I wish I had known before deploying it on dajian168.
The archive ships three PHP files, one JavaScript file, and a pre-rendered HTML page totaling under 80KB. The simulator core is a single PHP entry that outputs the spinner canvas plus an audio trigger. Audio is handled by an HTML5 <audio> tag pointing to a small MP3 loop. The elasticity is faked with a CSS transform animation rather than a physics engine, which keeps the page light enough for mobile 3G.
index.php – spinner canvas, click counter, popup layeradmin/index.php – login form + 4 ad-slot editorconfig.php – site title, password hash, ad HTML blocksassets/sound.mp3 – the chirp loop (replaceable)Actionable takeaway: if you plan to white-label the simulator, edit config.php first. The 4 ad slots and the page title are the only two blocks most operators need to touch.
Deploying the admin takes about 5 minutes once you have a PHP host with FTP access.
config.php and replace the default MD5 password hash with one you generate locally./admin/ in your browser, log in, and paste your popup HTML into the four ad fields.When I deployed this on a shared host I noticed the popup fires on the second click, not the first. If you want the ad sooner, look for the clickCount variable in the main JS file – that is the knob most people miss.
The whole project runs on PHP 5.6 or newer with no database required.
| Component | Minimum | Tested |
|---|---|---|
| PHP | 5.6 | 7.4 / 8.1 |
| Web server | Apache 2.2 / Nginx 1.10 | Apache 2.4, Nginx 1.22 |
| Disk usage | 1 MB | 2 MB with logs |
| Database | None | None |
| Browser | Chrome 70 | Chrome 120, Safari 17, Firefox 119 |
The trap I ran into: do not put the project in a subdirectory that forces a trailing slash and then link the admin as /admin. Some host rewrite rules strip the trailing slash and break login. Host it on its own subdomain (e.g. cicada.yoursite.com) for a clean URL and to keep cookie scopes separate from your main site.
This source code fits three concrete use cases and is the wrong tool for two others.
It is not suitable for content sites, e-commerce, or anything that needs user accounts – there is no CMS, no article storage, and no comment system. Visitors are fully stateless; the only login is the admin panel, protected by a single password hash.
Q: Does the admin panel support multiple popup ad zones at once?
A: Yes. There are 4 independent HTML slots in config.php, and each can carry a different ad network code, image, or custom JS. I ran two AdSense units and one custom redirect on the same page without conflicts during testing.
Q: Can I replace the chirp audio with my own sound?
A: Replace assets/sound.mp3 with any file under 200KB. Keep the filename the same or update the src in the main PHP file. MP3 and OGG both worked across Chrome and Safari in my checks.
Q: Will the popup ads show up on every visit or just once?
A: The popup is tied to click count, not to cookies, so it will fire on every fresh session. If you want frequency capping, wrap your ad JS with a localStorage check before injecting it into the admin slot.
Original title: 最新很火的竹知了网站源码 独立后台版 – 搭建168
Original excerpt:
简介:
最新很火的
竹知了
网站源码
独立后台版
一个网页版传统
玩具模拟器
,模拟
竹知了
(竹蝉)在弹性绳上旋转发出”哇哇”声的玩法。可独立部署到你自己的 PHP 服务器上,支持弹窗广告自定义。
图片:
Original screenshots:

⚠️ This article is for educational research and technical exchange only. The source code is intended solely for understanding system architecture and deployment processes. Do not use it for illegal purposes. Any commercial operation is unrelated to the author.