国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

My Desktop :) 桌面式代碼

2019-11-21 01:30:11
字體:
來源:轉載
供稿:網友
復制代碼 代碼如下:

<body bgcolor="black">
<script language = "javascript">
function loadframe(url)
{
mainone.innerHTML = "<iframe src='" + url + "' width='100%' height='500'></iframe>";
}

function loadframefrominput(url)
{
var tmpstr;
tmpstr = url.value;
try{
if(tmpstr==""||tmpstr=="http://"||tmpstr=="https://"||tmpstr=="ftp://")
mainone.innerHTML = "Please enter URL.";
else if(tmpstr.indexOf("http://")>=0||tmpstr.indexOf("https://")>=0||tmpstr.indexOf("ftp://")>=0)
mainone.innerHTML = "<iframe src='" + tmpstr + "' width='100%' height='500'></iframe>";
else
mainone.innerHTML = "Please enter a valid URL.";
}catch(err)
{
mainone.innerHTML = err.description;
}
}

function contain(str,charset)
{
var i;
for(i=0;i<charset.length;i++)
if(str.indexOf(charset.charAt(i))>=0)
return true;
return false;
}

function clearframe()
{
mainone.innerHTML = "";
}

</script>
<font color=white>
<table border="0" width="1000" align=center>
<p>
<hr/>
<button onclick="loadframe('http://rss.news.sohu.com/rss/guoji.xml')">Sohu Int.</button>
<button onclick="loadframe('http://rss.news.sohu.com/rss/it.xml')">Sohu IT</button>
<button onclick="loadframe('http://rss.news.sohu.com/rss/guonei.xml')">Sohu Nat.</button>
<button onclick="loadframe('//m.survivalescaperooms.com')">VeVB.COm</button>
<button onclick="loadframe('http://www.baidu.com')">baidu</button>
<button onclick="loadframe('http://www.google.com')">Google</button>
<button onclick="clearframe()">Close</button>
Open a URL: <input id="urltxt" size="50" value="http://"/> <button onclick="loadframefrominput(urltxt)"> Go! </button>
<hr/>
<div id="mainone" width="100%" hight="500"></div>
</table>



</font>
</body>
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 巨野县| 抚远县| 始兴县| 安塞县| 读书| 芦溪县| 武义县| 抚松县| 防城港市| 沙洋县| 吉木乃县| 广灵县| 郴州市| 商洛市| 富蕴县| 石河子市| 夹江县| 菏泽市| 祁连县| 岫岩| 南雄市| 眉山市| 建平县| 德庆县| 赤城县| 江西省| 郴州市| 阜南县| 平阴县| 南汇区| 武义县| 嘉义市| 陇南市| 陇川县| 黄浦区| 巴南区| 易门县| 和硕县| 娄烦县| 余姚市| 周口市|