aspÏÂÔØÆäËüÍøÕ¾µÄͼƬÀ´¸øhtmlÏÔʾ
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
Option Explicit
Response.Buffer = True '»º´æÍ¼Æ¬
Dim objXMLHTTP, XML
Set XML = Server.CreateObject("Microsoft.XMLHTTP") '½¨Á¢ÏÂÔØ¶ÔÏó
XML.Open "GET","http://www.google.cn/images/nav_logo7.png",False '¿ªÊ¼»ñȡͼƬ,http://xxx/pngÕâ½Ú¿ÉÒԸijÉ×Ô¼ºÒªµÄ.ÆäËü±ð¶¯
XML.Send '·¢ËÍÏÂÔØÇëÇó
Response.AddHeader "Content-Disposition", "attachment;filename=png.png" 'ÉèÖÃaspÊä³öÀàÐÍ,²»ÈÃä¯ÀÀÆ÷µ±³ÉhtmlÏÔʾ,ÏÖÔÚÉèÖóÉpng
Response.ContentType = "image/png" 'ÏÔʾ³Épng
Response.BinaryWrite XML.responseBody 'Êä³öÏÂÔØºÃµÄpngÄÚÈÝ,Óöþ½øÖÆÊä³ö
Set XML = Nothing
%>
get_png.aspÊä³öpng
<!---ͼƬ¿ªÊ¼//-->
<!---ͼƬid²»Äܱä,µ«ÊÇ¿ÉÒÔ×Ô¼º¼ÓÉÏ´óС=ÊôÐÔ//-->
<img src="get_png.asp" mce_src="get_png.asp" id=png_img>
<mce:script type="text/javascript"><!--
setInterval(
function ()
{
var png_asp = "get_png.asp";//pngµÄaspÎļþ
png_asp += "?t=" + Math.random();//¼ÓÉÏʱ¼ä²Å¿ÉÒÔÿ´ÎÏÂÔØÐµÄ.
document.getElementById("png_img").src = png_asp;
}
,1000*1);//1000ÊÇÒ»Ãë,*60=ÓÚÒ»·ÖÖÓ,¿ÉÒÔ×Ô¼º¸Ä³ÉÏëÒªµÄʱ¼ä.
// --></mce:script>
<!---ͼƬ½áÊø//-->
xx.htmÏÔʾͼƬ,²¢¶¨Ê±Ë¢ÐÂ.
Ïà¹ØÎĵµ£º
·ÃÎʿؼþµÄÖ÷Òª¶ÔÏóÊÇ:document¶ÔÏó¡£·Ö±ð¶ÔÓ¦µ±Ç°ÎĵµËùÓеģ¨×Ó¶ÔÏ󣩸öÈ˹۵㡣²¢ÇÒÒѾÌṩµÄ¼¸¸öÖ÷Òª·½·¨À´·ÃÎʶÔÏó¡£
1. document.getElementById
2. document.getElementsByName
3 &n ......
ASP.NETÖеÄÉí·ÝÑéÖ¤(authentication)ÓÐÄÄЩ
=========================================
FormsÉí·ÝÑéÖ¤£º
ͨ¹ýÆä¿É½«Ã»ÓÐͨ¹ýÉí·ÝÑéÖ¤µÄÇëÇóÖØ¶¨Ïòµ½Ê¹Óà HTTP ¿Í»§¶ËÖØ¶¨ÏòµÄ HTML ´°ÌåµÄϵͳ¡£Óû§Ìṩƾ
¾Ý²¢Ìá½»¸Ã´°Ìå¡£Èç¹ûÓ¦ÓóÌÐòÑéÖ¤¸ÃÇëÇó£¬ÏµÍ³¾Í»á·¢³ö°üº¬Æ¾¾Ý»òÃÜÔ¿µÄ Cookie ÒÔÖØÐ»ñÈ¡¸Ã±êʶ
¡£ºóÐøµÄ ......
½ûÖ¹Õ¾ÍâÌá½»±íµ¥µÄasp´úÂëÈçÏ£º
<%
server_v1=Cstr(Request.ServerVariables("HTTP_REFERER"))
server_v2=Cstr(Request.ServerVariables("SERVER_NAME"))
if mid(server_v1,8,len(server_v2))<>server_v2 then
response.write "<br><br><center><table border=1 cellpadding=20 bo ......
Ö÷ÒªÊǽ«jsonÎÞ·¨Ê¶±ðµÄ×Ö·û½øÐÐתÒå
function dotran($str) {
$str = str_replace('"','\\"',$str);
$str = str_replace("\r\n",'\\r\\n',$str);
$str = str_ ......
<html>
<frameset cols="25%,50%,25%">
<frame src="/example/html/frame_a.html">
<frame src="/example/html/frame_b.html">
<frame src="/example/html/frame_c.html">
<noframes>
<!-- ÔÚä¯ÀÀÆ÷²»Ö§³ÖÊ ......