Example 1

This example demonstrates three core elements behind a typical implimentation of the Equation Editor on a page:

Each element can be placed anywhere on the page. They do not necessarily have to follow each other.

Key HTML Code

<!DOCTYPE html>
<html lang="en">
<title>Example 1 - Embedded Installation</title>

<!-- Scripts needed by CodeCogs Equation Editor -->
<link rel="stylesheet" type="text/css" href="http://instructure.codecogs.com/css/equation-embed.css" />
<script type="text/javascript" src="http://instructure.codecogs.com/js/eq_config.js"></script>
<script type="text/javascript" src="http://instructure.codecogs.com/js/eq_editor-lite-18.js"></script>

<style type="text/css">
#EqnEditor { text-align:left; }

<h1>Example 1</h1>

<div id="editor"></div>
<textarea id="testbox" rows="3" cols="40"></textarea>
<img id="equation" />

<script type="text/javascript">
var a=new EqTextArea('equation', 'testbox');


© 2004-2015 www.CodeCogs.com, Zyba Ltd.