Reinhold Stoermann wrote:
> Maybe I'm looking in the wrong places, but I can't seem to find a
> description of the syntax for the Jmol functions
>
> jmolSetCheckboxCssClass(...)
> jmolSetMenuCssClass(...)
>
> and similar.
>
> What is the parameter to be given to these functions? A string with the
> location of the css file?
>
> Or the class name that I want the menu items to have? And if this is the
> case, do I have to lead the css file before calling
> jmolSetMenuCssClass(...). Probably, but I cannot find anything in the
> JMol Wiki on this subject.
>
>
> I tried both versions with Jmol 11.4RC5, but did not get any effect on
> the style of the Checkbox or Menus in Firefox 2 on Ubuntu Linux.
>
> Maybe something is wrong with my code, but it's difficult to find out
> with no documentation.
>
> Of course I can use something like this
>
> "<script type='text/javascript'>
> jmolCheckbox('...some jmol script...', '...another jmol script...',
> '<span class="mycssclass">Action</span>');
> </script>"
>
> But using jmolSetCheckboxCssClass() would be much more elegant...
>
> I hope somebody can help me with a link to the correct documentation...
>
The documentation can be found inside the documentation for the Jmol
Javascript library:
http://jmol.sourceforge.net/jslibrary/#jmolSetCheckboxCssClass
The CSS file is usually loaded within the "<HEAD>" section of a HTML
document. I don't know if it really would make a difference but I would
advice to load the Jmol Javascript library afterwards to be on the safe
side.
Regards,
Rolf
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users