Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/81.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:";在mozilla上工作?_Javascript_Jquery_Html_Iframe_Element - Fatal编程技术网

是不是;Javascript:";在mozilla上工作?

是不是;Javascript:";在mozilla上工作?,javascript,jquery,html,iframe,element,Javascript,Jquery,Html,Iframe,Element,我有一个鼠标事件链接,如下所示。 在IE8中,当我在link上鼠标悬停时,会出现一个空白的iframe(这部分是在stackoverflow friends的帮助下完成的:)。但是在mozilla中什么都没有发生。即使在控制台中也不会发生任何事情。这是我的第一个问题。第二个问题是为什么iframe是空白的,而没有显示任何内容? 你能帮我弄清楚吗? 塔克斯 代码如下: <a href="javascript:"> <div id="idAdminMenu

我有一个鼠标事件链接,如下所示。 在IE8中,当我在link上鼠标悬停时,会出现一个空白的iframe(这部分是在stackoverflow friends的帮助下完成的:)。但是在mozilla中什么都没有发生。即使在控制台中也不会发生任何事情。这是我的第一个问题。第二个问题是为什么iframe是空白的,而没有显示任何内容? 你能帮我弄清楚吗? 塔克斯 代码如下:

   <a href="javascript:">
          <div id="idAdminMenu" onmouseover="Dropdown(idAdminMenu,idAdminMenuDrop,iAdminMenuWidth)" >
          <%=GetLanguagePhrase(11)%>
          <!--Admin-->

其功能是:

function Dropdown (oMenu,oMenuDropDown) {

    // Construct the element purely in JS:
    var iframe = document.createElement('iframe');
    iframe.className = 'adframe';
    iframe.id = '111';
    iframe.name = 'widget';
    iframe.width = 207;
    iframe.height = 100;
    iframe.marginWidth = 0;
    iframe.marginHeight = 0;
    iframe.frameBorder = 0;
    iframe.scrolling = 'no';
    // Set the position:
    iframe.style.position = 'absolute';
    iframe.style.top = '70px'; // Change this value to what you need
    iframe.style.left = '370px'; // Change this value to what you need
    // Set the contents:
    var sHTML = '<html><head><link rel="stylesheet" type="text/css" href="../style.css"></head><body topmargin="0" rightmargin="0" leftmargin="0" bottommargin="0" style="overflow:visible;border-width:0px">' + oMenuDropDown.innerHTML + '</body></html>';
   // iframe.src = 'data:text/html;charset=UTF-8,' + encodeURI(sHTML);
  iframe.src = encodeURI(sHTML);
    // Show popup:
    document.body.appendChild(iframe);}
功能下拉列表(oMenu、oMenuDropDown){
//纯粹在JS中构造元素:
var iframe=document.createElement('iframe');
iframe.className='adframe';
iframe.id='111';
iframe.name='widget';
iframe.width=207;
iframe.height=100;
iframe.marginWidth=0;
iframe.marginHeight=0;
iframe.frameBorder=0;
iframe.scrolling='no';
//设置位置:
iframe.style.position='绝对';
iframe.style.top='70px';//将此值更改为所需值
iframe.style.left='370px';//将此值更改为所需值
//设置内容:
var sHTML=''+oMenuDropDown.innerHTML+'';
//iframe.src='data:text/html;charset=UTF-8',+encodeURI(sHTML);
iframe.src=encodeURI(sHTML);
//显示弹出窗口:
document.body.appendChild(iframe);}

Mozilla自FF 6起禁用了javascript URI,我相信-您必须从bookmarklet或Firefox插件运行themThanx。但第二个问题仍然存在(