getURL和浏览器设置 [英] getURL and browser settings
问题描述
首先,大家好,
这对某人来说可能很简单,但我被卡住了。
我创建了一个按钮一个flash电影,.swf,将它插入到Dreamweaver中创建的网页中,想法是当点击按钮时,一个新的浏览器窗口打开到600 x 600的大小,没有滚动条到工具栏,只是一种关闭它的方法。浏览器将只包含地图的简单.jpg图像。
现在我已经查看了大量网站并尝试了以下动作。
on(release){
getURL(" javascript :openNewWindow(\ mysite\pictures\simple.jpg,height = 600,width = 600,toolbar = no,scrollbars = no);");
}
上面打开浏览器并立即再次关闭?????
您还可以看到它是相对站点而不是绝对站点。如果我在没有javascript的情况下使用getURL就可以正常工作,例如:
on(release){
getURL(" \ mysite \ pictures \\ \\ simple.jpg"," _blank");
}
然而它会打开一个新窗口这就是我想要的但它的尺寸显然不是600 x 600,并且有滚动条工具栏等。
我做错了什么?我对FLASH和actionscript完全不熟悉,现在我比以往更加困惑,所以你的帮助将不胜感激
希望以上所有内容都有意义!
先谢谢。
First off hi all,
This is probably simple to someone but I''m stuck.
I created a button on a flash movie, .swf, insert it into a webpage created in Dreamweaver, the idea is when the button is clicked, a new browser window opens to a size of 600 x 600, no scroll bars to toolbar, just a way to close it. The browser will just contain a simple .jpg image of a map.
Now I''ve looked at heaps of sites and tried the following actionscript.
on (release) {
getURL("javascript:openNewWindow( \mysite\pictures\simple.jpg, height=600, width=600, toolbar=no, scrollbars=no );");
}
The above opens the browser and immediately closes again?????
As you can also see it''s a relative site not an absolute site. It works fine if I use just getURL without the javascript stuff eg:
on (release) {
getURL("\mysite\pictures\simple.jpg", "_blank");
}
However it opens a new window "which is what I want" but it''s obviously not sized to 600 x 600, and has scrollbars toolbar etc.
What am I doing wrong? I am TOTALLY new to FLASH and actionscript, and I am now more confused than ever, so your help would be appreciated
Hope all of the above makes sense!
Thanks in advance.
推荐答案
嘿,欢迎来到剧本。
试试吧大小:
Hey, welcome to the scripts.
Try this on for size:
谢谢红隼,
它有效当我记得包括''发布''
和{}时。然而,我发现我必须使用完整的WWW地址,它不会与相对地址一起工作,而且,它不会直接进入角落。在窗口顶部和左侧留下间隙。无论如何纠正这个?
再次感谢!!
Thanks Kestrel,
It worked when I remembered to include the ''on release''
and {}. However I found I had to use the full WWW address, it wouldn''t work with a relative address and also, It doesn''t go right up into the corners. Leaves a gap at top of window and left side. Anyway of correcting that?
Thanks again!!
你在谈论新窗口时它是在打开吗?
Are you talking about the new window when it opens?
>
这篇关于getURL和浏览器设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!