On 08/20/2011 12:17 PM, SixWingedSeraph wrote:
> My blog Gyre&Gimble, which covers math and language, has moved to
> http://www.abstractmath.org/Word%20Press/
> This moves enables me to include Mathematica CDF files in the posts,
> and the first such post, showing a manipulable graph of derivatives of
> a function, is now up at http://www.abstractmath.org/Word%20Press/?p=2126
>
>
>
Has anyone tried having a CDF on a Blogger blog?
Mike
STEP 1:
In Blogger go to Dashboard / <blogname> / Settings / Design / Edit HTML /
Insert the following code between <head> and "</head>" (this needs to be
done only once):
<script
src='http://blog.wolfram.com/common/javascript/cdfplugin/1.0/cdfplugin.js?ver=2.8.4'
type='text/javascript'/>
STEP 2:
Create your new blogger post with everything except the CDF content.
STEP 3:
In Blogger select Edit HTML, and then insert the following code into the
body of your post where you want a CDF to appear (this is an exact copy of
some code from the Wolfram blog post above - no doubt this could be pruned
as necessary):
<div class="WriCDF">
<div style="margin: 0px auto; width: 450px;">
<div id="A0a80e4147b724017e6b37e1ab7e8f9c5" style="background-color:
#e8e8e8; border: 1px solid rgb(160, 160, 160); color: #333333; height:
300px; margin-bottom: 15px; text-align: center; width: 450px;">
<noscript><br /> <p style="margin: 0; padding: 10px 10px
0">To view the full content of this page, please enable JavaScript in
your browser. <br /> Learn more <a
href="http://www.wolframalpha.com/jsMac.html">here</a>.</p>
</noscript>
<div style="margin: 0px; padding: 10px;">
To view this content, please install <em>Wolfram CDF Player</em>. You can
install the free <em>CDF Player</em> <a
href="http://demonstrations.wolfram.com/download-cdf-player.html"
title="Wolfram CDF Player">here</a>.</div>
</div>
</div>
<script type="text/javascript">
var cdf = new cdf_plugin();
cdf.addCDFObject("A0a80e4147b724017e6b37e1ab7e8f9c5",
"http://blog.wolfram.com/data/uploads/2011/07/Animation11.cdf", 450, 300);
</script></div>
Finally, publish your post.
You can see the result of this feasibility test at
http://stephenluttrell.blogspot.com/2011/07/embedding-computable-document-in.html.
To publish your own CDF, I presume that all you need to change is the
"http://blog.wolfram.com/data/uploads/2011/07/Animation11.cdf" to point to
wherever your own CDF is located.
Good luck!
--
Stephen Luttrell
West Malvern, UK
"Armand Tamzarian" <mike.hon...@gmail.com> wrote in message
news:j3angs$hfn$1...@smc.vnet.net...