This is pastem.html


The easiest way to get good looking equations or other graphics onto a webpage is to make a file like glob3.gif or eqs.jpg (the examples here). The image is then summoned in one of several different ways, with one of several different results. Here are three examples:



These pop the graphics onto a new page, and you can use the back-button to go back.
<a href="glob3.gif">glob3</a> ® glob3

<a href="eqs.jpg">eqs</a> ® eqs

These pop the graphics into the dreaded popup windows, but we are good citizens, and they don't appear unless you ask for them.

<a href="javascript:popup('glob3.gif','g3',
    'menubar,width=520,height=510')">glob3</a> ® glob3

<a href="javascript:popup('eqs.jpg','eq',
    'menubar,width=502,height=282')">eqs</a> ® eqs

(Note the arguments of popup(url,name,params) are in pops.)
The different window-names are there so several popups can be summoned at the same time. The optional 'menubar' parameter makes it easy to print the windows.

<img src="glob3.gif"> ® the image here, with style=float:right.

<img src="eqs.jpg"> ® the image here, with style=float:right.
The only reason for the float:right images is a Netscape4 bug. The float:right can be overridden with style=float:left or float:none, but not with float:none if css stylesheets are in use by NN4.


I greatly prefer the second style because it gives us the choice of whether or not to look at what can be pretty beastly equations. Once up, the equations can be moved out of the way to view the text, they can be minimized, and they can be moved into positions where only little bits of their frames show on the screen. The simple javascript that appears at the head of this document has no friendly features whatever. The only way to get rid of the popups is by closing them.

The tiny script that is within the head of this document is:

<script type="text/javascript"><!--
    function popup(url,name,params)
        {
        pppwin=window.open(url,name,params);
        pppwin.focus();
        }
--></script>