gpt4 book ai didi

javascript - Shadowbox 永远不会激活;链接只能正常使用

转载 作者:行者123 更新时间:2023-11-28 10:06:11 29 4
gpt4 key购买 nike

按照官方 Shadowbox 使用说明,我仅添加了几行 CSS/JS:

<!DOCTYPE html>
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<link rel="stylesheet" type="text/css" href="shadowbox.css">
<script type="text/javascript" src="shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init(
{players: ['img', 'swf', 'qt']}
);
</script>
</head>

使用相关的 HTML:

<div id = "animations">
<a href="gallery/animations/lipsync_websized.swf"
rel="shadowbox[animations]; height=675; width=1200;"><img
src="gallery/animations/lipsync_thumb.png" title="Lipsync Animation"></a>

</div>

然而,当我单击缩略图时,它不会生成 Shadowbox 叠加层。相反,我的浏览器会跟踪动画的普通链接。

我还尝试过 Lightbox、Greybox 和 Lightbox2,解决这个问题大约十二个小时。我对 Javascript 对象和类的理解非常有限。 Web 开发不是我的职业道路。

这个问题在互联网上很少见,有答案的帖子更是罕见。这一定是太基础的东西了。

最佳答案

我已经在本地测试了您的代码,一切对我来说都运行良好。不知道您下载Shadowbox时是否包含了“Flash(swf文件)”播放器?这是唯一被认为是问题的事情

关于javascript - Shadowbox 永远不会激活;链接只能正常使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8347431/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com