灯箱和 swf 导航问题
谁能告诉我为什么灯箱在我的页面上不起作用?当我测试 Dreamweaver 时它可以工作,但是一旦我加载它,它就停止工作。单击其中一张图片,闪存导航就会消失。我已经为此工作了几个小时,所以我不知道下一步该尝试什么。谢谢。
Can anyone tell me why lightbox isn't working on my page?? It works when i test it dreamweaver but as soon as i load it, it stops working. You click on one of the pictures and the flash navigation disappears. I've been working on this for hours so i'm lost as to what to try next. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只是很快地看了一下——发现了一些肯定会让你陷入困境的事情。首先,只需调试此页面,您就会收到一个严重的错误“Builder is not Defined”——这意味着您链接 Scriptaculous 的方式有问题(我没有花任何时间处理这两个页面,因此修复取决于您,但这就是你的问题所在)。检查一下,它应该可以解决您的灯箱问题。
你的闪光灯正在消失,因为你将其可见性设置为隐藏 - 我认为是因为闪光灯会漂浮在灯箱上,这在当时似乎是个好主意。老实说,如果您只是使用闪光灯进行简单的翻转,那么它就不适合这项工作。一个简单的 JavaScript 翻转使用起来会简单得多,而且功能完全相同。
希望这有助于为您指明正确的方向。
Just looked at this real quickly - found a couple things going on that definitely will mess you up. First off, just debug this page and you get a potent error "Builder is not defined" - this means something is wrong with how you are linking Scriptaculous (I haven't spent any time with either, so the fix is up to you, but thats where your problem is). Check that out and it should fix your lightbox issue.
Your flash is disappearing because your are setting its visiblity to hidden - I assume because flash will float over lightbox and it seemed like a good idea at the time. And honestly, if you are just using flash for a simple rollover, then its the wrong tech for the job. A simple javascript rollover will be much simpler to use, and function exactly the same.
Hope that helps point you in the right direction.