|
您的位置是:
软件 >
设计在线 >
网页陶吧 >
技术平台 >
HTML学习 >
正文
主页制作2000.09问答集(一) 2000-09-23■作者: 兰竹整理■出处: yesky |
|
| 1。问:在网页中JS打印按钮怎么做? 答:加入以下代码: $#@60;script language="Javascript"$#@62; var NS = (navigator.appName == "Netscape"); var VERSION = parseInt(navigator.appVersion); if (VERSION $#@62; 3) { document.write("$#@60;form$#@62;$#@60;input type=button value="打印本页" name="Print" onClick="printit()"$#@62;$#@60;/form$#@62;"); } $#@60;/script$#@62; 2。在html中是否可包含其它文件,如何使用使用内侦IFRAME $#@60;CENTER$#@62; $#@60;IFRAME MARGINHEIGHT=0 MARGINWIDTH=0 FRAMEBORDER=0 HEIGHT=62 WIDTH=470 SCROLLING=NO SRC=http://www.51hz.com/bbs/$#@62;$#@60;/IFRAME$#@62; $#@60;/CENTER$#@62; 3。谁知道怎么用JS关掉亿唐的广告? 这是JavaScript参考手册的原话: You can use open on an existing window, and if you pass the empty string for the URL, you will get a reference to the existing window, but not load anything into it. You can, for example, then look for properties in the window. 所以我们只要用两句话就行了 newwindow=open("","etangWHpopup"); newwindow.close(); 【责任编辑:】
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||