There is an easy way to display an odt document in html?
With pdf extension is like:
<object width="400" height="400" data="FILE_URL" type="FILE_CONTENT_TYPE">
<embed src="FILE_URL" type="FILE_CONTENT_TYPE" />
</object>
I would like to know if I can do something similar for .odt documents. Thanks!
Related
I have a swf named "client.swf" on my desktop, and I want to add it to my website so people can play the .swf on there, but the website only accepts HTML content, and not .swf, whats an html code I can use for it to load the .swf from my desktop? or another way of doing it?
you can use <object> </object> tag and also use the <iframe></iframe>
<iframe src="client.swf" width="200" heigt="200"></iframe>
<object width="500" height="500">
<param name="media" value="client.swf">
<embed src="client.swf" width="500" height="500">
</embed>
</object>
SWF into a HTML page is to use swfobject
Just example
<object width="100" height="100">
<param name="movie" value="my.swf">
<embed src="my.swf" width="100" height="100">
</embed>
</object>
I would like to change flash player SoundCloud to HTML5 player to my site in WordPress. The audios are add in pages.
I'm having problems because i cant find a code no user, just a player that work.
The flash code:
<object height="100%" width="100%">
<param name="movie"
value="http://player.soundcloud.com/player.swf?url=<?=print_field($data,'sound_link') ?>&auto_play=false&player_type=artwork&color=000000"></param>
<param name="allowscriptaccess" value="always"></param>
<embed allowscriptaccess="always" height="100%" src="http://player.soundcloud.com/player.swf?url=<?=print_field($data,'sound_link') ?>&auto_play=false&player_type=artwork&color=000000" type="application/x-shockwave-flash" width="100%"></embed>
</object>
Did you try code like this?
Simply create a new Wordpress post, give a title, then in main text area just insert the shown code below into it as if it was usual article text: (click "Save draft" and then try "Preview") :
[soundcloud url="http://api.soundcloud.com/tracks/34019569" params="color=000000" width="100%" height="166" iframe="true" /]
note: You must use http:// not the SSL version of https://.
EDIT :
First make sure you install the SoundCloud Short Code plugin (made by SoundClound Inc) :
For using SoundCloud URL as link, you can now try:
[soundcloud url="https://soundcloud.com/soulmovementrecords/dj-fleg-new-horns" params="auto_play=false&show_comments=false" width="100%" height="150" /]
Here is a link to an example: SoundCloud Player test (using a page URL not user or track ID)
I assume using your code, you can try something like:
[soundcloud url="sound_link" params="auto_play=false&show_comments=false" width="100%" height="150" /]
I am trying to embed a PDF on a web page, but it isn't showing up. This is the code:
<object type="application/pdf" data="http://www.sunshinesam.com/v/vspfiles/downloadables/Father'sDayPrintable2015.pdf" height="600" width="400">Father's Day Printable 2015</object>
What do I need to change to make it work? Thanks!
A pure, non-javascript way to this would be to do exactly what you're doing now, but add a link. Some thing like
<object data="myfile.pdf" type="application/pdf" width="100%" height="100%">
<p>Alternative text - include a link to the PDF!</p>
</object>
I am using tag to display my video on the page. When the page is loaded, the video gets started automatically.
To prevent this , I use autostart="false". But no Luck.
My code :
<embed style="max-width:180px; max-height:135px;" src="url" autostart="false" loop="true">
Can anyone help me with it?
If it is an strictly an embed, usually you just have to put autostart="false" within the embed tag.
EXAMPLE:
<embed autostart="false">
If it is an object (which is recommended), you will want to use a param.
EXAMPLE:
<object width="160" height="144">
<param name="autoplay" value="false">
<embed src="sample.mov" width="160" height="144" autoplay="false" controller="false"
</embed>
I wrote an applet which is called "IdrawApplet.java" and a HTML which is supposed to contain this applet. But somehow when I run the HTML it says that it can't find my java-Class.
This is a "Dynamic-Web-Project". It has a "WebContent"-Folder which contains both, the HTML and the java-Class.
As you will see I tried to insert the applet in two different ways. By putting it in a "applet"-Tag and a "object"-Tag (as suggested) on SELFHTML.org:
<!-- <applet code= "IdrawApplet.class"
codebase= "../applets"
width= 320 height= 180></applet> -->
<object classid="java:IdrawApplet.class"
codebase="../applets"
width="800" height="600"></object>
Thanks in advance...
The proper way (which is also the HTML5 way) to embed a Java applet is:
<object type="application/x-java-applet" width="320" height="180">
<param name="code" value="MyJavaClass">
fallback content
</object>
However, IE doesn't support the standard way so you need to use IE conditional comments (in an HTML5-compatible way) like this:
<!--[if !IE]>-->
<object type="application/x-java-applet" width="320" height="180">
<param name="code" value="MyJavaClass">
fallback content
</object>
<!--<![endif]-->
<!--[if IE]>
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="320" height="180">
<param name="code" value="MyJavaClass">
fallback content
</object>
<![endif]-->
Note that for the value of the code param, it doesn't require the .class extension. Just the class name is preferable.
For IE, you can also specify a codebase attribute if you want to provide a location to a cab file where IE can fetch Java if you don't have it. However, if you want to specify the path to the directory the .class file is in, you do that (for any browser) with the codebase param.
As for enabling scripting with "mayscript", you shouldn't need to do that these days. But, if you need to for some reason, you do it with a mayscript param (not attribute) and set its value to true.
Note that the fallback content will only show when a handler for application/x-java-applet isn't present or is disabled. It won't show for a missing .class file as the Java plug-in still loads.
for that..first check your environment variables, then see the class file names, if you do not write .class extention than it may be works...and its batter to include applet file..like
in header part of the html code