Dashcode 问题 - OnClick 图像全屏显示?
我正在 Dashcode 中构建一个网络应用程序,目前一切都按照广告中的方式运行。我正在使用浏览器模板,并且能够对其进行一些修改,让 xml 能够连接图像及其描述。现在我想添加一个简单的 OnClick 事件,将图像发送到全屏,但我找不到任何相关文档。我很确定这很容易完成,所以我在这里遗漏了一些东西?非常感谢任何帮助。
汤姆
I have a web app I'm building in Dashcode, currently every thing is working as advertised. I'm using the browser template and was able to modify it a bit, got the xml working to connect images and their description. Now I want to add a simple OnClick event that sends the image to fullscreen but I can't find any documentation for that. I'm pretty sure this is easily done so I'm missing something here? Any help greatly appreciated.
Tom
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
接管屏幕有点复杂(如果你谈论像 youtube 这样的全屏体验),但浏览器窗口中的全屏绝对是可能的。最简单的方法是让单击事件打开指向图像位置的链接。这会在浏览器窗口中以全分辨率加载图像。更优雅的方法是将图像 url 加载到图像 dashcode 对象的源中。并让对象可见性仅在 Oncick 事件发生时出现在整个 Web 应用程序上。如果您正在谈论 dashcode 中的内置函数来实现全屏/浏览器图像,那么您就不走运了。
Taking over the screen is a bit complicated (if your talking about a full screen experience like youtube), but full screen in the browser window is defiantly possible. The simplest method is to have the click event open a link to the image location. This would load the image in full resolution in the browser window. A more elegant approach would be to load the image url into the source of a image dashcode object. and have that objects visibility only appear overs the whole web app when the Oncick event occurs. If you are talking about a built in function in dashcode to achieve a full screen/browser image, your out of luck.