231 |
#Cut&Pastes imagemap into html |
#Cut&Pastes imagemap into html |
232 |
imgmap = open(mputils._slashify(settings['tmpdir'])\ |
imgmap = open(mputils._slashify(settings['tmpdir'])\ |
233 |
+context_name+".gen.html").read() |
+context_name+".gen.html").read() |
|
out.write("<div class=\"embedded\">") |
|
234 |
out.write("<map id=\""+name+"_small\" name=\""+name+"_small\">\n") |
out.write("<map id=\""+name+"_small\" name=\""+name+"_small\">\n") |
235 |
out.write(imgmap[imgmap.find('>',imgmap.find('<map'))+1:\ |
out.write(imgmap[imgmap.find('>',imgmap.find('<map'))+1:\ |
236 |
imgmap.find('</map>')]) |
imgmap.find('</map>')]) |
239 |
+"src=\""+mputils._slashify(settings['to_tmpdir'])\ |
+"src=\""+mputils._slashify(settings['to_tmpdir'])\ |
240 |
+context_name+".gen.png"\ |
+context_name+".gen.png"\ |
241 |
+"\" usemap=\"#"+name+"_small\" alt=\""+name+"_small\" />\n") |
+"\" usemap=\"#"+name+"_small\" alt=\""+name+"_small\" />\n") |
|
out.write("</div>") |
|
242 |
html = html[insert+5:len(html)] |
html = html[insert+5:len(html)] |
243 |
out.write(html) |
out.write(html) |
244 |
out.close() |
out.close() |