gpt4 book ai didi

mootools - 在 PageLoad 上自动打开 Mootools SqueezeBox 弹出窗口

转载 作者:行者123 更新时间:2023-12-02 19:51:10 27 4
gpt4 key购买 nike

我试图让 SqueezeBox 弹出窗口在打开页面时自动打开,但我使用的代码打开了弹出窗口,但弹出内容未加载。

我不太熟悉,因此我需要一些帮助来了解我做错了什么

window.addEvent('domready', function(){ 
var feedback = new Element('a', {
'href': "gSlide/index.html",
'rel' : "{handler: 'iframe', size: {x: 400, y: 400}}"
});

SqueezeBox.fromElement(feedback);

});

提前致谢

最佳答案

SqueezeBoxopen()方法就这么简单,就能满足您的需要。无需创建虚拟对象 <a>元素,然后将 SqueezeBox 附加到其上。

window.addEvent('domready', function() { 

SqueezeBox.open("gSlide/index.html", {
handler: 'iframe',
size: { x: 400, y: 400 }
});

});

引用:http://digitarald.de/project/squeezebox/#how-to

关于mootools - 在 PageLoad 上自动打开 Mootools SqueezeBox 弹出窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9290870/

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