html 内部无限iframe 窗口
ie通过,没写火狐部分
js部分
function setbox()
{
var thisf=this//自我复制,用于嵌入obj方法中去
this.sindex=1;this.moving=false;this.sizing=false;
this.show=function(o)
{
if(o.id)
{
if(document.getElementById(o.id))
{
var td=document.getElementById(o.id);
if(td.style.pixelLeft<0)td.style.pixelLeft=0
if(td.style.pixelTop<0)td.style.pixelTop=0
td.style.zIndex=this.sindex++;
return 0;
}
}
var word="",title="新窗口";
var obj=document.createElement("FORM")
thisf.obj=obj
obj.style.width="66%"
obj.style.height="66%"
obj.style.padding='6px'
obj.style.top='15%'
obj.style.left='15%'
if(o.id)obj.id=o.id;
if(o.parent)obj.parent=o.parent;
if(o.title)title=o.title;
if(o.html)word=o.html
if(o.url)word="<iframe src=""+o.url+"" mce_src=""+o.url+"" style='position:absolute; height:100%;width:100%; ' frameborder=0></iframe>"
if(o.width)obj.style.width=o.width
if(o.height){setTimeout("box.obj.style.height='"+o.height+"';box.obj.childNodes[0].style.height='"+(o.height-1)+"';",1)}
if(o.left)obj.style.left=o.left
if(o.top)obj.style.top=o.top
obj.className="newbox"
obj.style.zIndex=this.sindex++;
obj.innerHTML="<div class=content>"+word+"</div><div class=tl></div><div onmousedown=parentNode.move() class=tc><div class=ico></div><div style='position:absolute;top:0px;height:26px;left:21px;color:#fff;line-height:26px;font-weight:bold;'>"+title+"</div></div><div class=xbtn onmouseover=\"className='xbtn xbtnover'\" onmouseout=\"className='xbtn'\" onclick='parentNode.close()'></div><div class=tr></div><div class=ml></div> <div class=mr> </div><div class=mr></div><div class=bl></div><div class=bc></div><div class=br onmousedown='parentNode.size()'></div><div class=m
相关文档:
HTML accesskey 属性
accesskey 属性 -- 代表链接的快捷键访问方式
定义了accesskey的链接可以使用快捷键(ALT+字母)访问.
主菜单与导航菜单使用accesskey,通常是不错的选择.
取值:
字母
引用网址:http://www.dreamdu.com/xhtml/attribute_accesskey/
示例
<a href="http://www.dreamdu.com/xhtml/" acces ......
noscript 元素用来定义在脚本未被执行时的替代内容(文本)。此标签可被用于可识别 <script> 元素用来定义在脚本未被执行时的替代内容(文本)。 标签但无法支持其中的脚本的浏览器。如果浏览器支持脚本,则不会显示noscript 标签的内容。
noscript标签使用示例:
<html>
<head>
<meta http-equiv ......
从我们第一天建设网站网页开始就一直用着html,html伴随着我们从FrontPage开始到Dreamweaver等等开发工具建设简单的网页网站。HTML也是经过了各路诸侯奋战才达到今天的标准和地位。随着网站建设技术的日益增长,特别在网站优化上也需要html 的改进,所以就诞生了HTML5,不 ......
在HTML文档中,大部分元素都可以指定色彩,以表达其不同的含义,使整个文档看起来更加美观且具有层次感。例如body节点的text,link,alink,vlink属性,或者font节点的color属性,都可以用来改变其文本子节点的色彩。
HTML文档使用两种方式表达色彩信息:
命名色彩空间:在HTML文档中,定义了16种最常用的颜色,并赋予其色 ......
1、分段
输入如下代码:
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=gb231 ......