打开全屏窗口的HTML的代码怎么写?

来源:百度知道 编辑:UC知道 时间:2024/09/21 12:25:59
要求:文字或图片的超连接,点击后要全屏的,看不到地址拦的那种。
注意:不是按钮!是文字连接或者图片连接。
报酬:报酬不大,不过你可以让我 佩服,因为我都不知道而你知道。
效果:看下面的图片

<!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=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
function openWin(){
var targeturl="http://www.baidu.com"
newwin=window.open("","newWindow","resize=no")
if (document.all){
newwin.moveTo(0,0);
newwin.resizeTo(screen.width,screen.height);
}
newwin.location=targeturl
}