歌剧,爪哇 [英] opera, java

查看:68
本文介绍了歌剧,爪哇的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Folk


我最近完成了一张互动地图。我现在发现它在Opera中不起作用。


地址是:

http://switch.hosts.net.nz/~admin64/search.php

地图基本上是20多张图像,每张图像都是透明的GIF。


除了第一张(底部,显示国家),它们是直到鼠标移过地图才能看到。也就是说,

JavaScript将图像从隐藏转换为可见。隐藏部分的CSS是:


#map IMG.n {position:absolute;左:0px;顶部:0px;能见度:隐藏; z-index:5}

和可见的:

#map IMG.v {position:absolute;左:0px;顶部:0px;能见度:可见; z-index:10}

我认为这就是问题所在。这张地图好像在Netscape,IE和firefox上工作,但在Opera中,这些区域并没有突出显示。
FYI,样式交换的方式如下:

.....

if(document.layers){

img = findElement(''i''+ r,0);

}

else {

img = document.images [''i''+ r];

}

if(img){

img.className =" v";

}

....


你认为Opera可能不会识别这种交换(似乎有时会显示部分图像)。


有人有任何提示吗?


干杯

- Nicolaas

解决方案

windandwaves写道:

我最近完成了一个交互式地图。我现在发现它在Opera中不起作用。
http://switch.hosts.net.nz/~admin64/search.php




首先,请理解它们之间的区别Java和Javascript。


其次,这里似乎工作得很好,除了这些问题(似乎

效果*所有*浏览器):


* Ticking theNorth Island盒子没有打勾惠灵顿,但是

确实突出了它,它击中斯图尔特岛,但没有

突出它。

* Ticking South Island突出斯图尔特岛,但没有
勾选它。


*在斐济上空盘旋不会造成悬停效果超过

勾选框。


* Ticking New Zealand不会勾选惠灵顿,但会突出显示

它在地图上。


-

Toby A Inkster BSc(荣誉)ARCS

与我联系〜 http://tobyinkster.co.uk/contact




" windandwaves" <无线********* @ coldmail.com>在留言中写道

新闻:42 ******** @ clear.net.nz ...

嗨民谣

我最近完成了一个互动地图。我现在发现它是
不在Opera工作。
地址是:

http://switch.hosts.net.nz/~admin64/search.php

地图是基本上彼此超过20张图像,每张图片都是
透明GIF。
除了第一张(底部,显示国家),它们不是
可见,直到鼠标移过地图。也就是说,JavaScript将图像从隐藏转换为可见。
隐藏部分的CSS为:
#map IMG.n {position:absolute;左:0px;顶部:0px;能见度:隐藏;
z-index:5}以及可见的:
#map IMG.v {position:absolute;左:0px;顶部:0px;能见度:可见;
z-index:10}我认为这就是问题所在。这张地图好像在
Netscape,IE和firefox上工作,但是在Opera中没有突出显示的区域。

仅供参考,样式交换的方式如下:
....
if(document.layers){
img = findElement(''我'+ r,0);
}
其他{
img = document.images [''我'+ r];
}
if(img){
img.className =" v" ;;
}
...

你认为Opera可能不会识别这种交换(看起来好像是
,因为有时会显示部分图像)。
有没有人有提示?



我只是在歌剧7.6中看过它,它对我有用..

下载歌剧你可以选择带或不带java的版本

安装我好像记得。


这个白痴写道:

" windandwaves" <无线********* @ coldmail.com>在消息中写道
新闻:42 ******** @ clear.net.nz ...

嗨民俗

我最近完成了一个互动地图。我现在发现它在



不在Opera中工作。

地址是:

http://switch.hosts.net.nz/~admin64/search。 php

地图基本上是20多张图片,每张图片都是



透明的GIF。

除了第一个(底部,显示国家)之外,它们不是



可见,直到鼠标移过地图。也就是说,

JavaScript将图像从隐藏转换为可见。


隐藏部分的CSS是:

#map IMG.n {position:absolute;左:0px;顶部:0px;可见性:隐藏;



z-index:5}

以及可见的:
#map IMG.v {position:absolute;左:0px;顶部:0px;可见性:可见;



z-index:10}

我认为这就是问题所在。该地图似乎正在开发



Netscape,IE和firefox,但在Opera中,这些区域并未突出显示。

突出显示。

仅供参考,样式交换的方式如下:
....
if(document.layers){
img = findElement(''i''+ r ,0);
}
其他{
img = document.images [''我'+ r];
}
if(img){
img.className =" v";
}
...

你认为Opera可能不会识别这个交换(似乎,

因为有时会显示部分图像。

有没有人有任何提示?



我只是在歌剧7.6看了它,它对我有用..
下载歌剧时你可以选择安装或不安装java
的版本我似乎记得。




JavaSCRIPT。 OP混淆了JavaScript for Java,两种语言

完全不同。我认为所有浏览器都附带JavaScript(内置的是
)。无论是否安装了Java,他的网站都能正常运行。他只需要
需要重新编写代码才能使用getElementById并转储所有这些

过时的innerHTML内容。这一切都可以通过JS和CSS来完成,而不需要过多的心痛。


Hi Folk

I recently completed an interactive map. I have now discovered that it is not working in Opera.

The address is:

http://switch.hosts.net.nz/~admin64/search.php

The map is basically 20+ images over each other, each of which are transparent gifs.

Apart from the first one (bottom, showing the country), they are not visible until the mouse moves over the map. That is to say,
the JavaScript swaps the image from hidden to visible. The css for the hidden part is:

#map IMG.n {position: absolute; left: 0px; top: 0px; visibility: hidden; z-index: 5}
and for those that are visible:
#map IMG.v {position: absolute; left: 0px; top: 0px; visibility: visible; z-index: 10}
I think this is where the problem lies. The map seems to be working on Netscape, IE and firefox, but in Opera the areas are not
highlighted.

FYI, the way the styles get swapped is as follows:
.....
if (document.layers) {
img = findElement(''i''+r,0);
}
else {
img = document.images[''i''+r];
}
if (img) {
img.className = "v";
}
....

Do you think that perhaps Opera does not recognise this swap (it seems to, because at times it shows parts of the images).

Does anyone have any hints?

Cheers
- Nicolaas

解决方案

windandwaves wrote:

I recently completed an interactive map. I have now discovered that it
is not working in Opera.
http://switch.hosts.net.nz/~admin64/search.php



Firstly, please understand the difference between Java and Javascript.

Secondly, seems to work fine here, except these problems (that seem to
effect *all* browsers):

* Ticking the "North Island" box doesn''t tick Wellington, but
does highlight it, and it ticks Stewart Island, but doesn''t
highlight it.

* Ticking South Island highlights Stewart Island, but doesn''t
tick it.

* Hovering over Fiji doesn''t cause the hover effect over the
tick box.

* Ticking New Zealand doesn''t tick Wellington, but does highlight
it on the map.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact



"windandwaves" <wi*********@coldmail.com> wrote in message
news:42********@clear.net.nz...

Hi Folk

I recently completed an interactive map. I have now discovered that it is not working in Opera.
The address is:

http://switch.hosts.net.nz/~admin64/search.php

The map is basically 20+ images over each other, each of which are transparent gifs.
Apart from the first one (bottom, showing the country), they are not visible until the mouse moves over the map. That is to say, the JavaScript swaps the image from hidden to visible. The css for the hidden part is:
#map IMG.n {position: absolute; left: 0px; top: 0px; visibility: hidden; z-index: 5} and for those that are visible:
#map IMG.v {position: absolute; left: 0px; top: 0px; visibility: visible; z-index: 10} I think this is where the problem lies. The map seems to be working on Netscape, IE and firefox, but in Opera the areas are not highlighted.

FYI, the way the styles get swapped is as follows:
....
if (document.layers) {
img = findElement(''i''+r,0);
}
else {
img = document.images[''i''+r];
}
if (img) {
img.className = "v";
}
...

Do you think that perhaps Opera does not recognise this swap (it seems to, because at times it shows parts of the images).
Does anyone have any hints?


ive just looked at it in opera 7.6 and it works for me..
when downloading opera you have the choice of versions with or without java
installed i seem to remember.


the idiot wrote:

"windandwaves" <wi*********@coldmail.com> wrote in message
news:42********@clear.net.nz...

Hi Folk

I recently completed an interactive map. I have now discovered that it is



not working in Opera.

The address is:

http://switch.hosts.net.nz/~admin64/search.php

The map is basically 20+ images over each other, each of which are



transparent gifs.

Apart from the first one (bottom, showing the country), they are not



visible until the mouse moves over the map. That is to say,

the JavaScript swaps the image from hidden to visible. The css for the



hidden part is:

#map IMG.n {position: absolute; left: 0px; top: 0px; visibility: hidden;



z-index: 5}

and for those that are visible:
#map IMG.v {position: absolute; left: 0px; top: 0px; visibility: visible;



z-index: 10}

I think this is where the problem lies. The map seems to be working on



Netscape, IE and firefox, but in Opera the areas are not

highlighted.

FYI, the way the styles get swapped is as follows:
....
if (document.layers) {
img = findElement(''i''+r,0);
}
else {
img = document.images[''i''+r];
}
if (img) {
img.className = "v";
}
...

Do you think that perhaps Opera does not recognise this swap (it seems to,



because at times it shows parts of the images).

Does anyone have any hints?



ive just looked at it in opera 7.6 and it works for me..
when downloading opera you have the choice of versions with or without java
installed i seem to remember.



JavaSCRIPT. The OP confused Java for JavaScript, and the two languages
are totally different. I think all browsers ship with JavaScript (it''s
built in). His site works fine with or without Java installed. He just
needs to rework the code to use getElementById and dump all of that
antiquated innerHTML stuff. This can all be done via JS and CSS without
too much heartache.


这篇关于歌剧,爪哇的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆