Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¹ØÓÚXML¡¢XSLT¡¢JSÎÊÌâ - .NET¼¼Êõ / ASP.NET

Âß¼­£ºÔÚXSLÖлñµÃXMLÖнڵãpicPathµÄÖµ

ÀýÈ磺/templets/images/test.jpg|/templets/images/ad_1.gif|/templets/images/ad_2.jpg|

ÉùÃ÷±äÁ¿
<xsl:variable name="picPath" select="picPath"/>

½«Öµ´«¸øJSº¯Êý

<div onload="CutPic($picPath)">

JSº¯ÊýΪ
funtion CutPic(picPath)
{
£ý

ÎÊÌ⣺ÎÞ·¨½«picPathµÄÖµ´«¸øJSº¯ÊýCutPic()ÖÐ

Çë´óϺÃǰï°ï棬ÔÚÏߵȣ¡
°ï¶¥¡­¡­

XML code:

<input id="picUrl" type="hidden">
<xsl:attribute name="value">
<xsl:value-of select="$picPath"/>
</xsl:attribute>
</input>



°ÑÖµ±£´æµ½Òþ²ØÓò£¬Óû§µÄʱºòÔÙ»ñÈ¡

¿ÉÄÜÎÒ˵µÄ²»´óÇå³þ£¬ÎÒÔÚJSÍâµ÷Óú¯Êý£ºÒ³Ãæ¼ÓÔØonload="CutPic('/templets/images/test.jpg|/templets/images/ad_1.gif|')"

È»ºó°ÑÖµ´«¸øJSÖеĺ¯Êý£¬¸øÊý×éarrUrl¸³Öµ£¬Ëæºó¿ÉÒÔÔÚº¯ÊýÍâʹÓÃÊý×éarrUrlµÄÖµ

Èç¹ûʹÓ÷µ»ØÖµ£¬ÔÚº¯ÊýÍâµ÷Óøú¯ÊýCutPic£¨²ÎÊý£©£¬ÀïÃæ²ÎÊýÔõô¸ã£¿²ÎÊýÊÇδ֪µÄ

<div onload="CutPic( "+<xsl:value-of select="$picPath"/> +")">

ÕâÑù²»Ðеϰ£¬¾Í°ÑÖµ ·ÅÈëÒ»¸öÒþ²ØÓòÀïÃæ¡£ÔÚjs º¯ÊýÀïÃæÈ¡Õâ¸öÒþ²ØÓòµÄÖµ¡£

ÒýÓÃ
<div o


Ïà¹ØÎÊ´ð£º

ÀûÓÃC#±àдtxtת»¯µ½xmlµÄ³ÌÐò

txt ºÍXML ¸ñʽÏàÓ¦
²»½èÖúDataSet
µ¼Èë¶ÁÈ¡TXTÎļþ
È»ºóÖ±½ÓдÈëXML(ͬһÎļþ,²»Í¬Êý¾Ý,µÝÔöÔ­Êý¾ÝûÓб»¸²¸ÇÇé¿öÏÂÔö¼ÓÊý¾Ý.)
½Ì¸öÒªµã»ò×îºÃÊÇÓиö´úÂëÌáʾµÄ
¹ý·ºÃºº °ï¸öæÈö^^
²»»á£¬°ïÂ¥Ö÷ ......

java xmlÎÄÌâ - Java / Java SE

<?xml version="1.0" encoding="utf-8" ?> 
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical&q ......

asp.net³ÌÐòÔ±ÇóÖ° - .NET¼¼Êõ / ·Ç¼¼ÊõÇø

±¾È˹¤×÷¾­ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp.net
ÊìϤjavascript
ÊìϤCss
ÊìϤajax
ÊìϤsqlserver2005
ÓÐÒ»ÄêµÄÏîÄ¿¾­Ñé
¾ßÌåÏîÄ¿ºÍÆäËûµÄ¾Í²»ÔÚÕâдÁË
ÓÐÒâÕßÁªÏµ£º
QQ:359233910
ÒýÓÃ
±¾È˹¤×÷¾­ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp ......

ÇóÖú£ºÕÒASP.NETÍøÒ³ÖÆ×÷¸ßÊÖ£¬Óб¨³ê¡£

±¾ÈËÊDzËÄñÒ»¸ö£¬Æ½Ê±Òª×öÉúÒ⣬µ«ÊÇÕÒÁ˺ܶàÈË×öÍøÕ¾£¬¾ù±»Æ­ÁË¡£×öµÃ²»Èý²»ËÄ£¬ÏÖÔÚ¾öÐÄ×Ô¼ºÀ´×öÒ»¸ö£¬ÒÑѧϰASP.NETÏà¹ØµÄÍøÒ³ÖÆ×÷֪ʶ£¬ÓÐDW»ù´¡£¬¿ÉÒÔ˵ÊÇĿǰֻÓÐÀíÂÛ֪ʶ£¬µ«ÊÇÔÚʵ¼Ê¾ßÌå²Ù×÷µÄʱºò£¬×ÜÊÇÓöµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ