打开/关闭搜索
搜索
打开/关闭菜单
14
6636
42
1.1万
OGAS数据中枢
导航
首页
最近更改
随机页面
特殊页面
上传文件
少女前线
简介
战术人形
装备图鉴
BGM
任务
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
注册
登录
查看“︁Widget:GF立绘切换”︁的源代码
来自OGAS数据中枢
更多操作
←
Widget:GF立绘切换
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
管理员
您没有权限编辑
Widget
命名空间内的页面。
您可以查看和复制此页面的源代码。
<includeonly><script> (function() { document.addEventListener('DOMContentLoaded', function() { // 获取所有信息框 var infoboxes = document.querySelectorAll('.gf-infobox-new'); infoboxes.forEach(function(infobox) { var thumbItems = infobox.querySelectorAll('.gf-thumb-item'); var imageContainer = infobox.querySelector('.gf-image-container'); var currentImage = imageContainer ? imageContainer.querySelector('img') : null; if (!thumbItems.length || !imageContainer) return; // 为每个缩略图添加点击事件 thumbItems.forEach(function(thumb) { thumb.addEventListener('click', function() { // 移除所有active状态 thumbItems.forEach(function(t) { t.classList.remove('active'); }); // 添加当前active状态 this.classList.add('active'); // 获取图片地址 var imgSrc = this.getAttribute('data-img'); // 创建新图片元素 var newImg = document.createElement('img'); newImg.src = imgSrc; newImg.alt = '角色立绘'; newImg.style.maxWidth = '100%'; newImg.style.maxHeight = '400px'; newImg.style.objectFit = 'contain'; // 淡入效果 newImg.style.opacity = '0'; newImg.style.transition = 'opacity 0.3s ease'; // 替换图片 imageContainer.innerHTML = ''; imageContainer.appendChild(newImg); // 触发重排后执行淡入 setTimeout(function() { newImg.style.opacity = '1'; }, 50); }); }); }); }); })(); </script></includeonly>
返回
Widget:GF立绘切换
。
查看“︁Widget:GF立绘切换”︁的源代码
来自OGAS数据中枢