The Javascript variable under HTML reference questions:) [modified]
-
In Dreamware~press "CTRL+ALT+F" you ca isnert a FLASH video with URL,see code as follows ----------------------------------------------
- <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="32" height="32">
- <param name="movie" value="http://player.56.com/v\_NTcxMTA1Njc.swf" />
- <param name="quality" value="high" />
- <embed src="http://player.56.com/v\_NTcxMTA1Njc.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32"></embed>
- </object>
-------------------------------------------------------- my script is not very good~ but i'm guess this is FLALSH's address~
so, i would like to ask the question~as i'm in the middle with Javascript defines a variable to hold the FLASH's address,as follow~
- <script>
- var a = "http://player.56.com/v\_NTcxMTA1Njc.swf";
- </script>
so~that's question is how to insert FLASH address in "
modified on Sunday, December 12, 2010 5:23 PM
-
In Dreamware~press "CTRL+ALT+F" you ca isnert a FLASH video with URL,see code as follows ----------------------------------------------
- <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="32" height="32">
- <param name="movie" value="http://player.56.com/v\_NTcxMTA1Njc.swf" />
- <param name="quality" value="high" />
- <embed src="http://player.56.com/v\_NTcxMTA1Njc.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32"></embed>
- </object>
-------------------------------------------------------- my script is not very good~ but i'm guess this is FLALSH's address~
so, i would like to ask the question~as i'm in the middle with Javascript defines a variable to hold the FLASH's address,as follow~
- <script>
- var a = "http://player.56.com/v\_NTcxMTA1Njc.swf";
- </script>
so~that's question is how to insert FLASH address in "
modified on Sunday, December 12, 2010 5:23 PM
You could use the following piece of code in place of the string constant currently in the HTML
document.write(a);
So it may look like:
var a = "http://player.56.com/vNTcxMTA1Njc.swf";
document.write(a);" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32">
-
You could use the following piece of code in place of the string constant currently in the HTML
document.write(a);
So it may look like:
var a = "http://player.56.com/vNTcxMTA1Njc.swf";
document.write(a);" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32">