absolute - Cooliris relative path Issue -


take on codes:

> <object id="o" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" > width="100%" height="100%">   <param name="movie" > value="cooliris.swf"/>   <param name="allowfullscreen" value="true"/>  > <param name="allowscriptaccess" value="never"/>    > <param name="flashvars" value="feed=http://ip/xml/cooliris.xml"/>   > <param name="wmode" value="opaque"/>   <embed > type="application/x-shockwave-flash" >     src="cooliris.swf" >     width="100%" >     height="100%" >     allowfullscreen="true" >     allowscriptaccess="never" >      flashvars="feed=http://ip/xml/cooliris.xml" >     wmode="opaque">   </embed>  </object> 

it's working fine when change path absolute relative, image file not showing other image info shown except in image itself. how can use relative path instead of absolute path?

you may use like..

var _local_host = window.location.hostname;  $("#o").append('<embed id="embed" width="100%" height="100%" wmode="opaque" allowscriptaccess="never" allowfullscreen="true" src="cooliris.swf" type="application/x-shockwave-flash"  flashvars="feed=http://'+_local_host+'/xml/cooliris.xml">'); 

good luck...


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -