Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/413.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Opera 10.7窗口位置问题_Javascript_Opera - Fatal编程技术网

Javascript Opera 10.7窗口位置问题

Javascript Opera 10.7窗口位置问题,javascript,opera,Javascript,Opera,有人知道在Opera 10.7中使用window.location有什么问题吗。我似乎无法更改哈希、搜索,甚至href属性。它似乎完全忽略了我告诉它使用window.location执行的任何操作 在有人建议之前,不,升级到新版本的Opera不是一个选项。是的,我知道10.7不是Opera的正式发布版本,但我不能选择是否使用它。将其另存为whather.xhtml并确保不使用BOM(字节顺序标记)保存,如果不确定,则使用SuperEdi(免费软件)保存,并在保存对话框中取消选中它 这应该是不言自

有人知道在Opera 10.7中使用window.location有什么问题吗。我似乎无法更改哈希、搜索,甚至href属性。它似乎完全忽略了我告诉它使用window.location执行的任何操作


在有人建议之前,不,升级到新版本的Opera不是一个选项。是的,我知道10.7不是Opera的正式发布版本,但我不能选择是否使用它。

将其另存为whather.xhtml并确保不使用BOM(字节顺序标记)保存,如果不确定,则使用SuperEdi(免费软件)保存,并在保存对话框中取消选中它

这应该是不言自明的,点击这个对象,它会为你列出它的所有子对象,无论你使用什么浏览器(我没有Opera 10.7的副本,因为它从来没有超过测试版本,他们直接进入Opera 11.0)

如果你需要帮助,请告诉我

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Opera 10.7</title>
<script type="application/javascript">
//<![CDATA[
function dom_list(o)
{
 if (eval(o)==undefined) {alert('Error: that is not a valid object.');}
 else if (document.getElementById(o) && document.getElementById(o).childNodes.length>1)
 {
  change_toggle(o+'_children','overflow','hidden');
 }
 else
 {
  var dom_list = new Array();

  for (var a in eval(o)) {dom_list.push(a);}
  dom_list.sort();

  if (eval('typeof '+o+'.'+dom_list[i])=='function') {ao = o+'()';}
  else {ao = o;}
  var d1 = document.createElement('div');
  d1.setAttribute('id',ao+'_children');

  for (var i=0; i<dom_list.length; i++)//
  {
   if (eval('typeof '+o+'.'+dom_list[i])=='function')
   {
    ao = o+'.'+dom_list[i]+'()';
    var ab = ao.split('()')[0];
    ah = 'javascript:try{alert('+ao+'+\'/\n/\n\'+'+ab+');} catch(err) {alert('+ab+'(\'A test string.\'));}';
   }
   else
   {
    ao = o+'.'+dom_list[i];
    ah = 'javascript:dom_list(\''+ao+'\');';
   }

   var d2 = document.createElement('div');
   d2.setAttribute('id',ao);
   var a1 = document.createElement('a');

   a1.setAttribute('href',ah);
   var n2 = document.createTextNode(ao);
   a1.appendChild(n2);
   d2.appendChild(a1);
   d1.appendChild(d2);
  }

  document.getElementById(o).appendChild(d1);
 }
}

function change(id,newClass)
{
 if (document.getElementById(id)) {document.getElementById(id).className=newClass;}
 else if (id) {id.className=newClass;}
 else {alert('Error: the id \''+id+'\' was not found or has not yet been imported to the DOM.\n\nNew class intended: '+newClass);}
}

function change_toggle(id,c1,c2)
{
 if (document.getElementById(id))
 {
  if (document.getElementById(id).className==c2) {change(id,c1);}
  else {change(id,c2);}
 }
 else {alert('Error: the id \''+id+'\' was not found or has not yet been imported to the DOM.');}
}
//]]>
</script>
<style type="text/css">
/*<![CDATA[*/
.hidden {display: none;}
a {font-size: 20px;}
a:hover {color: #000;}
div {margin: 4px;}
/*]]>*/
</style>
</head>

<body>

<div id="window.location"><a href="javascript:dom_list('window.location');">window.location</a></div>

</body>
</html>

歌剧10.7
//1)
{
更改切换(o+“子项”、“溢出”、“隐藏”);
}
其他的
{
var dom_list=新数组();
对于(eval(o)中的变量a){dom_list.push(a);}
dom_list.sort();
如果(eval('typeof'+o+'.+dom_list[i])=='function'){ao=o+'()';}
else{ao=o;}
var d1=document.createElement('div');
d1.setAttribute('id',ao+'u子项');
对于(var i=0;i
/**/

您能告诉我如何重现问题的代码或说明吗?对不起,除非您有权访问Enseo机顶盒,否则您将无法重现。由于浏览器运行的硬件原因,我无法随时发出警报或在控制台上记录任何内容。好的,如果您将.xhtml文件保存到计算机上,您至少可以用Opera打开它们吗更新答案,用它来迭代你可以使用的内容。谢谢,这成功了。它似乎不知道window.location的那些属性。这不是好消息,但至少现在我知道了。再次感谢。