<%
abc="123"
%>
1.-----------------
<!--#include file="guide_pages/forum/123.asp"-->
<br />
<hr>
2.-----------
<object type="text/x-scriptlet" width="100" height="200" data="guide_pages/forum/123.asp"></object>
width="100" height="200指網(wǎng)頁調(diào)用寬度
<hr>
<br />
3.-------------------
<object type="text/x-scriptlet" width="100" height="200" data="guide_pages/forum/<%=abc%>.asp"></object>
<br />
<hr>
4.------------------
<iframe width="100" height="200" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no src="guide_pages/forum/123.asp"></iframe>
<hr>
5.------------------
<iframe width="100" height="200" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no src="guide_pages/forum/<%=abc%>.asp"></iframe>
<hr>
<!--#include file="guide_pages/forum/<%=abc%>.asp"-->不可用
參考資料:
-----------------------------
調(diào)用其它網(wǎng)頁的代碼
一)調(diào)用其它網(wǎng)頁的代碼
<object type="text/x-scriptlet" width="自己設(shè)寬度" height="自己設(shè)置高度"
data="調(diào)用網(wǎng)頁的地址如[url]http://www.china.com[/url]">
</object>
(二)加入背景音樂的代碼
1. 如何貼rm,ra,ram類型的音樂,代碼如下:
<embed width="0" height="0" type="audio/x-pn-realaudio-plugin"
autostart="true" controls="ControlPanel"
src="http://guest./uploads/01.rm";>
2. 如何貼midi,asf,wma,asx類型的音樂,代碼如下:
<embed autostart="true" loop="-1" controls="ControlPanel" width="0" height="0"
src="http://guest./uploads/01.mid";>
說明,loop=-1表示無限循環(huán)
(三)分時(shí)問候:
<script language="javaScript">
<!--
now = new Date(),hour = now.getHours()
if(hour < 6){document.write("凌晨好!")}
else if (hour < 9){document.write("早上好!")}
else if (hour < 12){document.write("上午好!")}
else if (hour < 14){document.write("中午好!")}
else if (hour < 17){document.write("下午好!")}
else if (hour < 19){document.write("傍晚好!")}
else if (hour < 22){document.write("晚上好!")}
else {document.write("夜里好!")}
// -->
</script> 夜里好! 凌晨好!
(四 )FLASH時(shí)鐘:
給blog增加flash精美時(shí)鐘
刻度時(shí)鐘:<EMBED SRC=http://www./Clock/clock_038.swf WIDTH=150 HEIGHT=150 wmode=transparent quality=high loop=true menu=false>其中的[url]http://www./Clock/clock_038.swf[/url]是時(shí)鐘的flash地址,可以在IE中預(yù)覽,其中的038可以替換成000-039之間或者051-059之間的任何一個(gè)數(shù)字(全看個(gè)人喜好,呵呵)
數(shù)字時(shí)鐘:
第一種風(fēng)格:<EMBED SRC=http://www./Clock/digiwide019.swf WIDTH=150 HEIGHT=15 wmode=transparent quality=high loop=true menu=false>其中的[url]http://www./Clock/digiwide019.swf[/url]同樣是時(shí)鐘的flash地址,可以在IE中預(yù)覽,其中的019可以替換成000-019之間之間的任何一個(gè)數(shù)字(同樣全看個(gè)人喜好,呵呵)
第二種風(fēng)格:<EMBED SRC=http://www./Clock/digital_019.swf WIDTH=150 HEIGHT=90 wmode=transparent quality=high loop=true menu=false>
---------------------------------------------------------
調(diào)用網(wǎng)頁代碼,歡迎用代碼發(fā)帖.
本網(wǎng)論壇全部開啟Html代碼,發(fā)帖可以用以下代碼發(fā),避免因連接圖片或音樂網(wǎng)址而不久網(wǎng)址失效的毛病,也避開了很多網(wǎng)頁防盜鏈的功能,直接調(diào)用該網(wǎng)頁到本論壇來看.
我在網(wǎng)上搜到了以下一段代碼:
<iframe width="529" height="1000" marginwidth=0 marginheight=1000 hspace=0 vspace=0 frameborder=0 scrolling=no src="這里是你需要調(diào)用的網(wǎng)頁地址"></iframe>
width="529"是調(diào)整網(wǎng)頁的寬度,height="1000"調(diào)整網(wǎng)頁的高度.
但以上代碼有一個(gè)毛病,就是全部把原網(wǎng)頁的所有都調(diào)用過來了,包括頂部和左側(cè).
以下代碼就解決了這個(gè)問題:
<IFRAME marginWidth=0 hspace=-190 vspace=-350 marginHeight=1000 src="這里是你需要調(diào)用的網(wǎng)頁地址" frameBorder=0 width=829 scrolling=no height=450></IFRAME>
在原來的基礎(chǔ)上,hspace=-190 是減少左側(cè)顯示部分,使左側(cè)不想看到的部分隱藏;減少多少就可以全部隱藏左側(cè),修改hspace=-350的數(shù)值即可。
vspace=-350 ,是減少項(xiàng)部顯示部分,使頂部不想看到的部分隱藏,減少多少就可以全部隱藏頂部,修改vspace=-350的數(shù)值即可。
代碼解釋:
網(wǎng)頁上下兩邊的垂直間隔量:vspace
網(wǎng)頁左右兩邊的水平間隔量:hspace
width=寬度
height=高度