Open GoogleCodeExporter opened 8 years ago
I've already found the solution.
In the example js-files the object where you can do all API functions on is
created, and is called myimgmap.
E.g. If you want to set the map HTML you can add
<a href="javascript:setMapHTML();">Set map</a>
<script>
function setMapHTML(){
myimgmap.setMapHTML('<map id="imgmap201095184256" name="imgmap201095184256"><area shape="rect" alt="" title="" coords="352,206,499,308" href="" target="" /><!-- Created by Online Image Map Editor (http://www.maschek.hu/imagemap/index) --></map>');
}
</script>
make sure that the code is loaded after the page completes loading the
following files:
<script type="text/javascript" src="../imgmap.js"></script>
<script type="text/javascript"
src="example1_files/default_interface.js"></script>
Original comment by w.bre...@gmail.com
on 5 Sep 2010 at 4:47
Original issue reported on code.google.com by
w.bre...@gmail.com
on 5 Sep 2010 at 4:34