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

JavaScript ºÍ Flash µÄͨÐÅ

JavaScript ºÍ Flash µÄͨÐÅ
ÏÂÃæÊÇһЩÔÚFlashºÍʹÓÃJavascriptµÄHTMLÎļþÖ±½ÓͨÐŵÄʾÀý,ÿ¸öʾÀý¶¼ÓмòÂԵIJ½Öè
±¾ÎÄÌÖÂÛÁË3ÖÖ»ù±¾µÄFlash/JavascriptͨÐÅ·½Ê½:
Javascript µ½ FlashµÄͨÐÅ----ʹÓÃFlash²¥·ÅÆ÷µÄjavascript·½·¨
Flash µ½ JavascriptµÄͨÐÅ----ʹÓÃFlashµÄfscommand
Flash µ½ FlashµÄͨÐÅ----------ʹÓñ¾µØÁ¬½Ó¶ÔÏó»ò×ÛºÏÉÏ2ÖÖ¼¼Êõ
²¢²»ÊÇËùÓеÄä¯ÀÀÆ÷¶¼ºÜÖØÊӽű¾.ΪÁ˺ÍFlash²¥·ÅÆ÷ͨÐÅ,ä¯ÀÀÆ÷±ØÐëÓÐÄÚÖõĹ³×ÓÒÔ±ãFlash²¥·ÅÆ÷¿ÉÒÔ'¼àÌý'.ä¯ÀÀÆ÷±ØÐëÊÇÏÂÁеļ¸ÖÖ:
Netscape Navigator 3.0-4.7x, ºÍ Netscape 6.2»ò¸ü¸ß
(Windows 95/98/NT/2000/XP »ò MacOS; ÔÊÐíJavaºÍLiveConnect)
Internet Explorer 3.0 »ò¸ü¸ß
(½öWindows 95/98/NT/2000/XP; ÔÊÐíActiveX)
×¢Òâ:MacintoshÉϵÄInternet ExplorerºÍÔçÆÚ°æ±¾µÄNetscape6²»Ö§³ÖÕâÖÖ·½·¨.Çë²é¿´±¾Îĵĸ½¼ÓÐÅÏ¢
Ò»¡¢Javascriptµ½FlashµÄͨÐÅ
Õâ¸öÀý×ÓÑÝʾÁËÈçºÎʹÓÃFlashµÄmethod°Ñ±äÁ¿´ÓHTMLµÄinput text ·¢Ë͵½¸ÃÒ³ÃæÖеÄFlashÎļþÖÐ.HTML inputµÄÊý¾Ýͨ¹ýFlashµÄSetVariable·½·¨´«Ë͵½FlashÎļþÖÐ.
²é¿´Ê¾Àý:ʾÀý
ÏÂÔØÔ´Îļþ: javascript_to_flash.zip(17k)
²½Öè:
FlashÖÐ
1.н¨Ò»¸öÎļþ,±£´æΪjavascript_to_flash.fla
2.ÓÃÎÄ×Ö¹¤¾ßÔÚÎę̀ÉÏ´´½¨Ò»¸öÎı¾Óò
3.Ñ¡ÔñÕâ¸öÎı¾Óò,ÔÚÊôÐÔÃæ°åÖÐ,´ÓÏÂÀ­ÁбíÖÐÑ¡Ôñ¶¯Ì¬Îı¾(Dynamic Text),ÔÚ±äÁ¿(variable)À¸ÌîÉÏ"myVar"
×¢Òâ:×îºÃµÄÏ°¹ßÊÇʹÓÃInstance,ÓÃmyVar.text¸ü¸ÄmyVarµÄÖµ.ΪÁ˼òµ¥Æð¼ûºÍ¼æÈÝFlash4ºÍFlash5,ÎÒÃÇʹÓõÄÊDZäÁ¿ÃûµÄÐÎʽ.
4.±£´æÎļþ
5.·¢²¼HTMLÎļþºÍSWFÎļþ
DreamweaverÖÐ
ÏÂÒ»²½µÄ¹¤×÷תÒƵ½DreamweaverÖÐÁË,µ±È»Ò²¿ÉÒÔÊÇÆäËûµÄHTML±à¼­Æ÷
1.´ò¿ªÉÏÒ»²½·¢²¼µÄHTMLÎļþ
2.²åÈëÉú³ÉµÄSWFÎļþºÍOBJECT/EMBED±êÇ©
(1) Insert>Media>Flash,²¢Ñ¡ÔñÕâ¸öFlash
(2) Çл»µ½´úÂëÊÓͼ,ÎÒÃÇÐèÒªÐ޸ı»Ñ¡ÖеÄ<OBJECT>ºÍ<EMBED>±êÇ©
(3) ÔÚOBJECT±êÇ©ÖÐ,²åÈëid="myFlash"
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/
flash/swflash.cab#version=5,0,0,0"¡¡
¡¡width=366 height=142 id="myFlash">
×¢Òâ:Èç¹ûÄãÊÇÕ³Ìù¸´ÖÆ´úÂëµÄ»°,È·±£É¾³ý²»±ØÒªµÄ»»ÐÐ.·ñÔò¿ÉÄÜ»áÒýÆð´íÎó; idÒ²¿ÉÒÔÔÚÊôÐÔÃæ°åÀïÖ±½ÓÊäÈë
(4) ÔÚEMBED±êÇ©ÖÐ,²åÈëname="myFlash"ºÍswLiveConnect="true",È·±


Ïà¹ØÎĵµ£º

NOR FLASHºÍNAND FLASHÌصã


NORºÍNANDÊÇÏÖÔÚÊг¡ÉÏÁ½ÖÖÖ÷ÒªµÄ·ÇÒ×ʧÉÁ´æ¼¼Êõ¡£IntelÓÚ1988ÄêÊ×ÏÈ¿ª·¢³öNOR flash¼¼Êõ£¬³¹µ×¸Ä±äÁËÔ­ÏÈÓÉEPROMºÍEEPROMһͳÌìϵľÖÃæ¡£½ô½Ó×Å£¬1989Ä꣬¶«Ö¥¹«Ë¾·¢±íÁËNAND flash½á¹¹£¬Ç¿µ÷½µµÍÿ±ÈÌصijɱ¾£¬¸ü¸ßµÄÐÔÄÜ£¬²¢ÇÒÏó´ÅÅÌÒ»Ñù¿ÉÒÔͨ¹ý½Ó¿ÚÇáËÉÉý¼¶¡£µ«ÊǾ­¹ýÁËÊ®¶àÄêÖ®ºó£¬ÈÔÈ»ÓÐÏ൱¶àµÄÓ²¼þ¹¤³Ìʦ·Ö²»Çå ......

±éÀúJavaScript¶ÔÏóµÄËùÓÐÊôÐÔ


/*
* ÓÃÀ´±éÀúÖ¸¶¨¶ÔÏóËùÓеÄÊôÐÔÃû³ÆºÍÖµ
* obj ÐèÒª±éÀúµÄ¶ÔÏó
* author: Jet Mah
* website: http://www.javatang.com/archives/2006/09/13/442864.html 
*/ 
function allPrpos(obj) { 
    // ÓÃÀ´±£´æËùÓеÄÊôÐÔÃû³ÆºÍÖµ
    var props = "";
&nbs ......

JavascriptµÄ³£ÓÃÓï¾ä

1. document.write( " "); Êä³öÓï¾ä
2.JSÖеÄ×¢ÊÍΪ//
3.´«Í³µÄHTMLÎĵµË³ÐòÊÇ:document- >html- >(head,body)
4.Ò»¸öä¯ÀÀÆ÷´°¿ÚÖеÄDOM˳ÐòÊÇ:window- >(navigator,screen,history,location,document)
5.µÃµ½±íµ¥ÖÐÔªËصÄÃû³ÆºÍÖµ:document.getElementById( "±íµ¥ÖÐÔªËصÄID號 &quo ......

ÔÚJavascriptÖж¯Ì¬´´½¨º¯Êý

´´½¨¶¯Ì¬º¯Êý£¨ÔÚc/c++ÖÐÀûÓú¯ÊýÖ¸ÕëÀ´ÊµÏÖ£©
  var FunctionName = new Function(argument1,...,lastargument);
  ˵Ã÷£º
  ËùÓеIJÎÊý¶¼±ØÐëÊÇ×Ö·û´®ÀàÐ͵ģ¬×îºóµÄÒ»¸ö²ÎÊý±ØÐëÊÇÕâ¸ö¶¯Ì¬º¯ÊýµÄ¹¦ÄܳÌÐò´úÂë¡£
    <script type="text/javascript"> 
 & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ