Hello again,
I have a new problem.
This is my body <script type>
################################################
$(function() {
$("#tree").treeview({
collapsed: true,
animated: "medium",
control:"#sidetreecontrol",
prerendered: true,
persist: "location"
});
$(document).ready(function(){
$('div.panelMineral').toggleElements(
{ fxAnimation:'slide', fxSpeed:'normal', className:'panel' } );
$('ul.panelMineral').toggleElements();
$("a[rel^='prettyPhoto']").prettyPhoto();
});
var mrefreshinterval = 500; // update display every 200ms
var lastmousex=-1;
var lastmousey=-1;
var lastmousetime;
var mousetravel = 0;
var mpoints = [];
var mpoints_max = 50;
$('body').mousemove(function(e) {
var mousex = e.pageX;
var mousey = e.pageY;
if (lastmousex > -1)
mousetravel += Math.max( Math.abs(mousex-lastmousex),
Math.abs(mousey-lastmousey) );
lastmousex = mousex;
lastmousey = mousey;
});
mdraw = function() {
var md = new Date();
var timenow = md.getTime();
if (lastmousetime && lastmousetime!=timenow) {
var pps = Math.round(mousetravel / (timenow - lastmousetime) *
1000);
mpoints.push(pps);
if (mpoints.length > mpoints_max)
mpoints.splice(0,1);
mousetravel = 0;
$('#mousespeed').sparkline(mpoints, { width: mpoints.length*2,
height: '30px', lineColor: '#1A7400', fillColor: false, minSpotColor: false,
maxSpotColor: '#A7332A', spotColor: '#A7332A', spotRadius: 1.5 });
}
lastmousetime = timenow;
mtimer = setTimeout(mdraw, mrefreshinterval);
}
var mtimer = setTimeout(mdraw, mrefreshinterval);
$.sparkline_display_visible();
})
################################################
(some jquery scripts)
I put this code ->
jmolInitialize(".", "JmolApplet0.jar");
jmolSetAppletColor("#ffffff");
... in the body/head
and <table><tr>
<td><form><script>jmolRadio("connect 2.25 2.5 hbond create", "connect Ca and O
hbonds");</script></form></td>
<td><script language="JavaScript" type="text/javascript">
jmolApplet([350,500],"load \"calcite.cif\" {1 1 1}; frank OFF; unitcell
on; set axesUnitcell; axes on; set measurements angstroms; moveto 2 -900 0 0
75; set perspectivedepth off;")</script></td>
</tr></table>
But when i refresh the page in Firefox 3.5 appear: "You do not have Java
applets enabled in your web browser, or your browser is blocking this applet.
Check the warning message from your browser and/or enable Java applets in
your web browser preferences, or install the Java Runtime Environment from
www.java.com" (in the applet <td>)
If i refresh the page in IE 7, it's fine. The applet appear and <form> works
good.
I suspect the body <script type>(some jquery scripts suffer an interference
with jmolInitialize), because when I remove them and I refresh the page in
Firefox 3.5 - surprise! working good (applet appear).
Help me!
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers