天天躁日日躁狠狠躁AV麻豆-天天躁人人躁人人躁狂躁-天天澡夜夜澡人人澡-天天影视香色欲综合网-国产成人女人在线视频观看-国产成人女人视频在线观看

在你的網(wǎng)頁(yè)中嵌入外部網(wǎng)頁(yè)的方法

Description: Using a tabbed interface, this DHTML script lets you display external web pages inline on your page, with the help of the IFRAME tag. We threw in a feature that allows the user to also load the webpage in the entire browser window when desired. This script works in IE5+ and NS6+, and degrades well with the rest (as tabs are simply regular links). Cool! 
Step 1: Add the below CSS and DHTML script to the <HEAD> section of your page:
復(fù)制代碼 代碼如下:
<style type="text/css"> 
/*Eric Meyer's based CSS tab*/ 

#tablist{ 
padding: 3px 0; 
margin-left: 0; 
margin-bottom: 0; 
margin-top: 0.1em; 
font: bold 12px Verdana; 


#tablist li{ 
list-style: none; 
display: inline; 
margin: 0; 


#tablist li a{ 
text-decoration: none; 
padding: 3px 0.5em; 
margin-left: 3px; 
border: 1px solid #778; 
border-bottom: none; 
background: white; 


#tablist li a:link, #tablist li a:visited{ 
color: navy; 


#tablist li a:hover{ 
color: #000000; 
background: #C1C1FF; 
border-color: #227; 


#tablist li a.current{ 
background: lightyellow; 


</style> 

<script type="text/Javascript"> 

/*********************************************** 
* Tabbed Document Viewer script- ? Dynamic Drive DHTML code library (www.dynamicdrive.com) 
* This notice MUST stay intact for legal use 
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code 
***********************************************/ 

var selectedtablink="" 
var tcischecked=false 

function handlelink(aobject){ 
selectedtablink=aobject.href 
tcischecked=(document.tabcontrol && document.tabcontrol.tabcheck.checked)? true : false 
if (document.getElementById && !tcischecked){ 
var tabobj=document.getElementById("tablist") 
var tabobjlinks=tabobj.getElementsByTagName("A") 
for (i=0; i<tabobjlinks.length; i++) 
tabobjlinks[i].className="" 
aobject.className="current" 
document.getElementById("tabiframe").src=selectedtablink 
return false 

else 
return true 


function handleview(){ 
tcischecked=document.tabcontrol.tabcheck.checked 
if (document.getElementById && tcischecked){ 
if (selectedtablink!="") 
window.location=selectedtablink 



</script> 
To customize the look of the tabs (ie: color), edit the CSS. There is no need to modify the script at all.
Step 2: Add the below code to the <BODY> section of your page:
復(fù)制代碼 代碼如下:
<ul id="tablist"> 
<li><a class="current" >Google</a></li> 
<li><a >Yahoo</a></li> 
<li><a >MSN</a></li> 
<li><a >News.com</a></li> 
<li><a >Dynamic Drive</a></li> 
</ul> 
<iframe id="tabiframe" src="http://www.google.com" width="98%" height="350px"></iframe> 

<form name="tabcontrol" style="margin-top:0"> 
<input name="tabcheck" type="checkbox" onClick="handleview()"> Open tab links in browser window instead. 
</form> 
The above HTML code renders the tab links and IFRAME tag used to contain the external documents. Change the URLs to your own. Now, if you have lots of tab links, you can get them to appear on separate lines, by adding a divider: 復(fù)制代碼 代碼如下:
<ul id="tablist"> 
<li><a class="current" href="#">Google</a></li> 
<li><a href="#">Yahoo</a></li> 
<li><a href="#">MSN</a></li> 
<div style="margin-bottom: 8px"></div> 
<li><a href="#">News.com</a></li> 
<li><a href="#">Dynamic Drive</a></li> 
</ul> 

JavaScript技術(shù)在你的網(wǎng)頁(yè)中嵌入外部網(wǎng)頁(yè)的方法,轉(zhuǎn)載需保留來(lái)源!

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請(qǐng)第一時(shí)間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 视频一区二区中文字幕 | 国产高潮久久精品AV无码 | 亚洲伊人成综合人影院 | 果冻传媒在线看免费高清 | 92午夜理论第1000集 app | 色欲AV久久综合人妻蜜桃 | 久久香蕉国产线看观看首页 | 精品国产手机视频在在线 | 被同桌摸出水来了好爽的视频 | 黑丝美女被人操 | 亚洲欧美日韩国产精品26u | 人妻插B视频一区二区三区 人妻 中文无码 中出 | 国产精品亚洲精品久久国语 | 双性被疯狂灌满精NP | WINDOWSCHANNEL老太| 黄色三级三级免费看 | 九九热这里只有精品视频免费 | 亚洲男人片片在线观看 | 99久久做夜夜爱天天做精品 | WWW国产色情在线观看APP | 国产精品v欧美精品v日韩 | 久久久97人妻无码精品蜜桃 | 日韩中文欧美在线视频 | 九九在线精品视频 | 亚洲欧美日本久久综合网站 | 久久精品电影久久电影大全 | 天上人间影院久久国产 | adc影院在线 | 抽插内射高潮呻吟V杜V | mm625亚洲人成电影网 | 国产爱豆果冻传媒在线观看 | 奶头被客人吸得又红又肿 | 亚洲人成伊人成综合网久久久 | 99视频精品免视3 | 国产欧美精品一区二区三区-老狼 | 国产欧美一区二区三区在线看 | 免费国产久久啪久久爱 | 色欲无码国产喷水AV精品 | 嗯别插太快好深再深点 | 国产偷抇久久精品A片蜜臀A | 国产亚洲精品高清视频免费 |