ASP.netÁ¬½ÓÊý¾Ý¿âʵÏÖͼƬÂÖ»»
ǰ̨´úÂ룺
<script type="text/javascript">
<%=LoadImage() %>
imgUrl1="uploads/"+ImgSrc[0];
imgtext1=ImgAlt[0]
imgLink1=escape("adimg.aspx?Img_ID="+ImgUrl[0]);
imgUrl2="uploads/"+ImgSrc[1];
imgtext2=ImgAlt[1]
imgLink2=escape("adimg.aspx?Img_ID="+ImgUrl[1]);
imgUrl3="uploads/"+ImgSrc[2];
imgtext3=ImgAlt[2]
imgLink3=escape("adimg.aspx?Img_ID="+ImgUrl[2]);
imgUrl4="uploads/"+ImgSrc[3];
imgtext4=ImgAlt[3]
imgLink4=escape("adimg.aspx?Img_ID="+ImgUrl[3]);
imgUrl5="uploads/"+ImgSrc[4];
imgtext5=ImgAlt[4]
imgLink5=escape("adimg.aspx?Img_ID="+ImgUrl[4]);
var focus_width=588
var focus_height=254
var text_height=18
var swf_height = focus_height+text_height
var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4+"|"+imgUrl5
var links=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4+"|"+imgLink5
var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4+"|"+imgtext5
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('</object>');
</script>
ºǫ́´úÂ룺
//ͼƬÐÂÎÅ
protected string LoadImage()
{
string sql = string.Forma
Ïà¹ØÎĵµ£º
Asp.net ºǫ́µ÷ÓÃjs·½·¨(ת)
1. ÓÃResponse.Write·½·¨
¡¡¡¡´úÂëÈçÏ£º
Response.Write("<script type='text/javascript'>alert("XXX");</script>");
´Ë·½·¨È±ÏݾÍÊDz»Äܵ÷Óýű¾ÎļþÖеÄ×Ô¶¨ÒåµÄº¯Êý£¬Ö»Äܵ÷ÓÃÄÚ²¿º¯Êý£¬¾ßÌåµ÷ÓÃ×Ô¶¨ÒåµÄº¯ÊýÖ»ÄÜÔÚResponse.WriteдÉϺ¯Êý¶¨ Ò壬±ÈÈç
Response.Write("& ......
Ò³ÃæÊä³ö»º´æ×÷Ϊ×î¼òµ¥µÄ»º´æÐÎʽ£¬Êä³ö»º´æÖ»ÊÇÔÚÄÚ´æÖб£ÁôΪÏìÓ¦ÇëÇó¶ø·¢Ë굀 HTML µÄ¸±±¾¡£ÆäºóÔÙÓÐÇëÇóʱ½«Ìṩ»º´æµÄÊä³ö£¬Ö±µ½»º´æµ½ÆÚ£¬ÕâÑù£¬ÐÔÄÜÓпÉÄܵõ½ºÜ´óµÄÌá¸ß£¨È¡¾öÓÚÐèÒª¶àÉÙ¿ªÏúÀ´´´½¨ÔʼҳÃæÊä³ö - ·¢ËÍ»º´æµÄÊä³ö×ÜÊǺܿ죬²¢ÇұȽ ......
ÉÏ´ÎÎÒÃÇ˵µ½µÄ±àÒë³ÉµÄdllÎļþÓëcsÎļþÔÚͬһĿ¼ÖУ¬¶ø²»»á·Åµ½ÐéÄâĿ¼µÄbinĿ¼ÖУ¬ÈçºÎ×ö²ÅÄܹ»°Ñcs
Îļþ±àÒë³ÉdllÇÒ×Ô¶¯·Åµ½ÐéÄâĿ¼µÄbinÎļþ¼ÐÖÐÄØ£¿
¿ªÊ¼-------³ÌÐò-------Microsoft Visual Studio.NET 2003-------Visual Studio.NET¹¤¾ß£¬µã»÷ÆäÖеēVisual Studio.NET2003ÃüÁîÌáʾ”£¬¾Í»á½øÈëMic ......
1 ʹÓñê×¼HTMLÀ´½øÐÐͼƬÉÏ´«
ǰ̨´úÂ룺
<body>
<form id="form1" runat="server">
<div>
<table>
&nbs ......