ï»??xml version="1.0" encoding="utf-8" standalone="yes"?>久久99影院,欧美日韩在线看,九一在线视频http://www.aygfsteel.com/liudawei/category/41096.html畅想的天½I?/description>zh-cnTue, 26 Apr 2011 22:58:14 GMTTue, 26 Apr 2011 22:58:14 GMT60屏蔽enter键提交表å?/title><link>http://www.aygfsteel.com/liudawei/articles/349063.html</link><dc:creator>孤飞ç‡?/dc:creator><author>孤飞ç‡?/author><pubDate>Tue, 26 Apr 2011 09:40:00 GMT</pubDate><guid>http://www.aygfsteel.com/liudawei/articles/349063.html</guid><wfw:comment>http://www.aygfsteel.com/liudawei/comments/349063.html</wfw:comment><comments>http://www.aygfsteel.com/liudawei/articles/349063.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/liudawei/comments/commentRss/349063.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/liudawei/services/trackbacks/349063.html</trackback:ping><description><![CDATA[<script type="text/javascript">   <br />     function disableEnterKey(e) {   <br />         var key;   <br />         if (window.event)   <br />             key = window.event.keyCode; //IE   <br />         else  <br />             key = e.which; //firefox        <br />   <br />         return (key != 13);   <br />     }   <br /> </script><br /> <body onkeypress="return disableEnterKey(event);"> <img src ="http://www.aygfsteel.com/liudawei/aggbug/349063.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/liudawei/" target="_blank">孤飞ç‡?/a> 2011-04-26 17:40 <a href="http://www.aygfsteel.com/liudawei/articles/349063.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>实现¾|‘页中播放FLVæ–‡äšg的源代码http://www.aygfsteel.com/liudawei/articles/294366.html孤飞ç‡?/dc:creator>孤飞ç‡?/author>Tue, 08 Sep 2009 16:14:00 GMThttp://www.aygfsteel.com/liudawei/articles/294366.htmlhttp://www.aygfsteel.com/liudawei/comments/294366.htmlhttp://www.aygfsteel.com/liudawei/articles/294366.html#Feedback0http://www.aygfsteel.com/liudawei/comments/commentRss/294366.htmlhttp://www.aygfsteel.com/liudawei/services/trackbacks/294366.html实现¾|‘页中播æ”?/span>FLVæ–‡äšg的源代码

使用æ–ÒŽ³•åQ?/span>
æ–ÒŽ³•一ã€?/span>js嵌入
直接copy下面代码åQŒä¿®æ”¹å…¶ä¸­çº¢è‰²éƒ¨åˆ†ï¼Œå»I¼šswf_widthã€?/span>swf_heightã€?/span>textsã€?/span>files 参数

<script type="text/javascript">
var swf_width=240
var swf_height=240
var texts=’
òq¸ç¦çš„脚丫预告片
var files=’
http://www.ruochi.com/product/vcastr/flv/happy_feet.flv
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="’+ swf_width +’" height="’+ swf_height +’">’);
document.write(’<param name="movie" value="
http://www.ruochi.com/product/vcastr2/vcastr22.swf"><param name="quality" value="high">’);
document.write(’<param name="menu" value="false"><param name="allowFullScreen" value="true" />’);
document.write(’<param name="FlashVars" value="vcastr_file=’+files+’&vcastr_title=’+texts+’">’);
document.write(’<embed src="
http://www.ruochi.com/product/vcastr2/vcastr22.swf" allowFullScreen="true" FlashVars="vcastr_file=’+files+’&vcastr_title=’+texts+’" menu="false" quality="high" width="’+ swf_width +’" height="’+ swf_height +’" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />’); document.write(’</object>’);
</script>

其中åQ?/span>
òq¸ç¦çš„脚丫预告片是标题ã€?/span>
http://www.ruochi.com/product/vcastr/flv/happy_feet.flvæ˜?/span>FLVæ–‡äšg地址ã€?/span>
http://www.ruochi.com/product/vcastr2/vcastr22.swfæ˜?/span>FLVæ–‡äšg播放器地址åQˆå¦‚果你不会制作åQŒå¯ä¸‹è²åˆ«äh的然后上传到自己的空间再调用åQ‰ã€?/span>

flv播放�/span> Vcastr 2.0 下蝲
http://www.ruochi.com/product/vcastr2/vcastr22.zip




æ–ÒŽ³•二、简单直接传递媄片地址

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="240" height="180">
<param name="movie" value="
http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.ruochi.com/product/vcastr/flv/happy_feet.flv">
<param name="quality" value="high">
<param name="allowFullScreen" value="true" />
<embed src="
http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.ruochi.com/product/vcastr/flv/happy_feet.flv" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="240" height="180"></embed>
</object>



æ–ÒŽ³•三、读取媄ç‰?/span>xml

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="240" height="120">
<param name="movie" value="
http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_xml=http://www.ruochi.com/product/vcastr2/vcastr.xml">
<param name="quality" value="high">
<param name="allowFullScreen" value="true" />
<embed src="
http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_xml=http://www.ruochi.com/product/vcastr2/vcastr.xml" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="240" height="120"></embed>
</object>

其中åQ?/span>http://www.ruochi.com/product/vcastr/vcastr.xml是播攑ֈ—表的xml地址
高çñ”选项

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="240" height="180">
<param name="movie" value="
http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.ruochi.com/product/vcastr/flv/happy_feet.flv">
<param name="quality" value="high">
<param name="allowFullScreen" value="true" />
<embed src="
http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.ruochi.com/product/vcastr/flv/happy_feet.flv" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="240" height="180"></embed>
</object>

<http://www.ruochi.com/product/vcastr2/vcastr22.swf?参数A=111&参数B=222&....>


在以ä¸?/span>"参数A=111&参数B=222"部分æ·ÕdŠ å‚æ•°åQŒä‹Éç”?/span>参数=å€?/span>的格式,多个参数ç”?/span>&˜qžæŽ¥åQŒå‚数数量不限制åQŒæ³¨æ„æœ‰2个红色部åˆ?/span>http://www.ruochi.com/product/vcastr2/vcastr22.swf地方需要修æ”?/span>
例如åQ?/span>

value="http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.ruochi.com/product/vcastr/flv/happy_feet.flv&vcastr_title=òq¸ç¦çš„脚丫预告片&BarColor=0xFF6600&BarPosition=1"


表示å½Þq‰‡åœ°å€æ˜?/span>"http://www.ruochi.com/product/vcastr/flv/happy_feet.flv"åQŒæ ‡é¢˜æ˜¯"变åŞ金刚预告ç‰?/span>"åQŒæŽ§åˆ¶æ é¢œè‰²æ˜?/span>0xFF6600åQŒæŽ§åˆ¶æ ä½ç½®åœ¨ä¸‹æ–V€?/span>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="224">
<param name="movie" value="
http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.ruochi.com/product/vcastr/flv/happy_feet.flv&vcastr_title=òq¸ç¦çš„脚丫预告片&BarColor=0xFF6600&BarPosition=1">
<param name="quality" value="high">
<param name="allowFullScreen" value="true" />
<embed src="
http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.ruochi.com/product/vcastr/flv/happy_feet.flv&vcastr_title=òq¸ç¦çš„脚丫预告片&BarColor=0xFF6600&BarPosition=1" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="224"></embed>

参数名称

参数说明

默认�/span>

vcastr_file

æ–ÒŽ³•2传递媄ç‰?/span>flvæ–‡äšg地址参数åQŒå¤šä¸ªä‹Éç”?/span>|分开

½I?/span>

vcastr_title

å½Þq‰‡æ ‡é¢˜å‚æ•°åQŒå¤šä¸ªä‹Éç”?/span>|分开åQŒä¸Žæ–ÒŽ³•2配合使用

½I?/span>

vcastr_xml

æ–ÒŽ³•3 传递媄ç‰?/span>flvæ–‡äšg地址参数åQŒæ ·æ¿å‚è€?/span> http://www.ruochi.com/product/vcastr2/vcastr.xml

vcastr.xml

IsAutoPlay

å½Þq‰‡è‡ªåŠ¨æ’­æ”¾å‚æ•°åQ?/span>0表示不自动播放,1表示自动播放

0

IsContinue

å½Þq‰‡˜qžç®‹æ’­æ”¾å‚æ•°åQ?/span>0表示不连¾l­æ’­æ”¾ï¼Œ1表示˜qžç®‹å¾ªçޝæ’?/span>

1

IsRandom

å½Þq‰‡éšæœºæ’­æ”¾å‚æ•°åQ?/span>0表示不随机播放,1表示随机播放

0

DefaultVolume

默认音量参数åQ?/span>0-100 的数å€û|¼Œè®„¡½®å½Þq‰‡å¼€å§‹é»˜è®¤éŸ³é‡å¤§ž®?/span>

100

BarPosition

控制栏位¾|®å‚æ•?/span>åQ?/span>0表示在媄片上‹¹®åŠ¨æ˜„¡¤ºåQ?/span>1表示在媄片下æ–ÒŽ˜¾½C?/span>

0

IsShowBar

控制栏显½Cºå‚æ•?/span>åQ?/span>0表示不显½Cºï¼›1表示一直显½Cºï¼›2表示鼠标悬停时显½Cºï¼›3表示开始不昄¡¤ºåQŒé¼ æ ‡æ‚¬åœåŽæ˜„¡¤º

2

BarColor

播放控制栏颜è‰ÔŒ¼Œé¢œè‰²éƒ½ä»¥0xå¼€å§?/span>16˜q›åˆ¶æ•°å­—表示

0x000033

BarTransparent

播放控制栏透明�/span>

60

GlowColor

按键图标颜色åQŒé¢œè‰²éƒ½ä»?/span>0xå¼€å§?/span>16˜q›åˆ¶æ•°å­—表示

0x66ff00

IconColor

鼠标悬停时光晕颜è‰ÔŒ¼Œé¢œè‰²éƒ½ä»¥0xå¼€å§?/span>16˜q›åˆ¶æ•°å­—表示

0xFFFFFF

TextColor

播放器文字颜è‰ÔŒ¼Œé¢œè‰²éƒ½ä»¥0xå¼€å§?/span>16˜q›åˆ¶æ•°å­—表示

0xFFFFFF

LogoText

可以æ·ÕdŠ è‡ªå·±¾|‘站名称½{‰ä¿¡æ?/span>(英文)

½I?/span>

LogoUrl

可以从外部读å?/span>logo囄¡‰‡åQŒæ³¨æ„è‡ªå·Þp°ƒæ•?/span>logo大小åQŒæ”¯æŒå›¾ç‰‡æ ¼å¼å’Œswf格式

½I?/span>

EndSwf

å½Þq‰‡æ’­æ”¾¾l“束å?/span>,从外部读å?/span>swfæ–‡äšgåQŒå¯ä»¥æ·»åŠ ç›¸å…›_ª„片信息,å½Þq‰‡åˆ†äín½{‰ä¿¡æ¯ï¼Œéœ€è‡ªå·±åˆ¶ä½œ

½I?/span>

BeginSwf

å½Þq‰‡å¼€å§‹æ’­æ”¾ä¹‹å‰?/span>,从外部读å?/span>swfæ–‡äšgåQŒå¯ä»¥æ·»åŠ å¹¿å‘Šï¼Œæˆ–è€…ç½‘ç«™ä¿¡æ¯ï¼Œéœ€è‡ªå·±åˆ¶ä½œ

½I?/span>

IsShowTime

是否昄¡¤ºæ—‰™—´ : 0表示不显½Cºæ—¶é—ß_¼Œ1表示昄¡¤ºæ—‰™—´

1

BufferTime

å½Þq‰‡¾~“冲旉™—´åQŒå•位(¿U’)

2



]]>
js比较日期(yyyy-MM-dd æˆ?yyyy-MM-dd hh:mm:ss)http://www.aygfsteel.com/liudawei/articles/293945.html孤飞ç‡?/dc:creator>孤飞ç‡?/author>Fri, 04 Sep 2009 15:00:00 GMThttp://www.aygfsteel.com/liudawei/articles/293945.htmlhttp://www.aygfsteel.com/liudawei/comments/293945.htmlhttp://www.aygfsteel.com/liudawei/articles/293945.html#Feedback0http://www.aygfsteel.com/liudawei/comments/commentRss/293945.htmlhttp://www.aygfsteel.com/liudawei/services/trackbacks/293945.html   {   
    return   Date.parse(d1.replace(/-/g,"/"))>Date.parse(d2.replace(/-/g,"/")) ; 
   } 

]]>
Js处理½Iºå­—½W¦ä¸²http://www.aygfsteel.com/liudawei/articles/293847.html孤飞ç‡?/dc:creator>孤飞ç‡?/author>Fri, 04 Sep 2009 04:15:00 GMThttp://www.aygfsteel.com/liudawei/articles/293847.htmlhttp://www.aygfsteel.com/liudawei/comments/293847.htmlhttp://www.aygfsteel.com/liudawei/articles/293847.html#Feedback0http://www.aygfsteel.com/liudawei/comments/commentRss/293847.htmlhttp://www.aygfsteel.com/liudawei/services/trackbacks/293847.html<%@page contentType="text/html;charset=gb2312"%>   
  • <html>   
  • <head>   
  • <!-- åˆ¤æ–­è¾“å…¥çš„æ˜¯å¦äØ“½I?½Iºçš„话就˜q”回该焦点的javascript代码 -->   
  • <script language="javasctipt" type="text/javascript">   
  •   function login(){   
  •    //thisForm是form中的name   
  •     var form = document.thisForm;   
  •        
  •     if(trim(form.name.value) == ""){   
  •         window.alert("误‚¾“入姓å?");   
  •         form.name.select();//或者form.name.focus()   
  •         return;   
  •     }   
  • /**或像下面那样也可ä»? 
  • if (trim(document.thisForm.username.value)=="")  
  •     {  
  •         alert("请填写您的姓名!");  
  •         document.thisForm.name.focus();  
  •         return ;//false;  
  •     }  
  • */  
  •     if(trim(form.password.value) == ""){   
  •         window.alert("误‚¾“入密ç ?");   
  •         form.password.select();   
  •         return;   
  •     }   
  •   
  •       // ˜q˜å¯ä»¥åšå¾ˆå¤šäº‹æƒ…åQŒæ¯”如在˜q™é‡Œåˆè°ƒç”¨å…¶ä»–çš„function来触发其他事ä»?  
  •        
  •     form.target = "_blank";//弹出新的™åµé¢   
  •     form.action = "isNull.jsp";//form中的actionå€?  
  •     form.method = "post";   
  •     form.submit();//提交form         
  •   }   
  •   /** ä¿®å‰ªå­—串前后的空æ ?nbsp; */  
  • function trim(s) {   
  •   var count = s.length;   
  •   var st    = 0;       // start   
  •   var end   = count-1// end   
  •   
  •   if (s == ""return s;   
  •   while (st < count) {   
  •     if (s.charAt(st) == " ")   
  •       st ++;   
  •     else  
  •       break;   
  •   }   
  •   while (end > st) {   
  •     if (s.charAt(end) == " ")   
  •       end --;   
  •     else  
  •       break;   
  •   }   
  •   return s.substring(st,end + 1);   
  • }   
  • </script>   


  • ]]>
    Ö÷Õ¾Ö©Öë³ØÄ£°å£º ƽÑôÏØ| ¸»ÃñÏØ| Íû¶¼ÏØ| ÒËÀ¼ÊÐ| ÒÊË®ÏØ| Ð˰²ÃË| ¼ÃÔ´ÊÐ| ººÒõÏØ| ɽÎ÷Ê¡| °²Ô¶ÏØ| ̨ɽÊÐ| °¢À­¶ûÊÐ| Ñô¹ÈÏØ| ¹ã¶«Ê¡| ƽÁ¹ÊÐ| Ðì»ãÇø| ͬ½­ÊÐ| ·Ê³ÇÊÐ| É̳ÇÏØ| Ê®ÑßÊÐ| ÔÆÃÎÏØ| ·î»¯ÊÐ| ´ó·áÊÐ| н®| ¶ÁÊé| ¼Ð½­ÏØ| Ñ×ÁêÏØ| ÅÌÉ½ÏØ| ÍûÚÓÏØ| ÉÇβÊÐ| ÍÁÄ¬ÌØÓÒÆì| ÑôÇúÏØ| ¼ÃÄÏÊÐ| Ñô¸ßÏØ| ÖêÖÞÊÐ| ÚöáÁÊÐ| ľÀï| ÉÐÒåÏØ| ¸ß°²ÊÐ| ÉñÅ©¼ÜÁÖÇø| ±¦ÛæÇø|