Last active
December 17, 2015 14:49
-
-
Save tslmy/5627173 to your computer and use it in GitHub Desktop.
Browser
============
_A browser inside your browser._ Just a demo of tabbed multi-iframes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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="X-UA-Compatible" content="chrome=1"> | |
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> | |
<title>虹忆轩浏览器 Beta</title> | |
<meta name="description" content="A web browser in a web page." /> | |
<meta name="keywords" content="browser,tslmy,lino,personal,website,student,geek,otaku,名扬剑仙" /> | |
<!-- favicon start --> | |
<link href="/favicon.ico" rel="icon" type="image/x-icon" /> | |
<link rel=”shortcut icon” href=”/favicon.ico”> | |
<link rel=”bookmark” href=”/favicon.ico”/> | |
<!-- favicon end --> | |
<link href="style_browser.css" rel="stylesheet" type="text/css" /> | |
<!-- browser start --> | |
<script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script> | |
<script type="text/javascript" language="javascript"> | |
function goa(){ | |
where_to_go=document.all.dizhi.value.replace(/(^\s*)|(\s*$)/g, ""); //.replace(/(^\s*)|(\s*$)/g, "")去除首尾空格 | |
if(where_to_go.toLowerCase().substring(0,7) == "http://"){ document.all.browser_tab_main.src=where_to_go;} | |
else{ document.all.browser_tab_main.src="http://"+where_to_go;} | |
} | |
function searcha(){ | |
kw=document.all.keyword.value.replace(/(^\s*)|(\s*$)/g, "").replace(" ","+"); //.replace(/(^\s*)|(\s*$)/g, "")去除首尾空格 | |
document.all.browser_tab_main.src="http://www.google.com/search?ie=GB2312&q="+kw; | |
} | |
</script> | |
<link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" /> | |
<!-- browser end --> | |
<!-- below to </head>: Google Analytics Code. --> | |
<script type="text/javascript"> | |
var _gaq = _gaq || []; | |
_gaq.push(['_setAccount', 'UA-21290300-1']); | |
_gaq.push(['_trackPageview']); (function() { | |
var ga = document.createElement('script'); | |
ga.type = 'text/javascript'; | |
ga.async = true; | |
ga.src = ('https:' == document.location.protocol ? 'https://ssl': 'http://www') + '.google-analytics.com/ga.js'; | |
var s = document.getElementsByTagName('script')[0]; | |
s.parentNode.insertBefore(ga, s); | |
})(); | |
</script> | |
</head> | |
<body> | |
<a href="index.htm" target="_self" Title="回到主页"> <img src="images/title_s.png" id="pic_title"/> </a> | |
<div id="dizhilan"> | |
<!--input name="debugger" type="text" id="debugger" value="" size="5" readonly="readonly" /--> | |
<input name="dizhi" type="text" id="dizhi" onkeydown= "if(event.keyCode==13)javascript:goa() " /> | |
<input type="button" name="button" value="转到" onclick="javascript:goa()" /> | |
</div> | |
<!--start of browser --> | |
<div id="browser" class="TabbedPanels"> | |
<ul class="TabbedPanelsTabGroup"> | |
<li class="TabbedPanelsTab" tabindex="1">主要</li> | |
<li class="TabbedPanelsTab" tabindex="2">Tab 2</li> | |
<li class="TabbedPanelsTab" tabindex="3">Tab 3</li> | |
</ul> | |
<div class="TabbedPanelsContentGroup"> | |
<div class="TabbedPanelsContent"> | |
<iframe id="browser_tab_main" height="100%" width="100%" frameborder="0" src="blank_stripes.html"></iframe> | |
</div> | |
<div class="TabbedPanelsContent"> | |
<iframe id="browser_tab_1" height="100%" width="100%" frameborder="0" src=""></iframe> | |
</div> | |
<div class="TabbedPanelsContent"> | |
<iframe id="browser_tab_2" height="100%" width="100%" frameborder="0" src=""></iframe></div> | |
</div> | |
</div> | |
<p> </p> | |
<script type="text/javascript"> | |
<!-- | |
var TabbedPanels1 = new Spry.Widget.TabbedPanels("browser"); | |
//document.getElementById("debugger").value=Spry.Widget.TabbedPanels.browser.currentTabIndex; | |
//--> | |
</script> | |
<!--end of browser--> | |
<!-- start of searchbox --> | |
<form action="javascript:searcha()" onSubmit="form_submit()"> | |
<div id="searchdiv"> | |
<div id="searchbox"> | |
<input id="keyword" type="text" name="q" size="31" /> | |
</div> | |
</div> | |
</form> | |
<!-- end of searchbox --> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment