[Qgis-user] qgis , html & css
Andrea Peri
aperi2007 at gmail.com
Wed Oct 24 07:25:05 PDT 2012
Hi,
I see actually qgis will support javascript and some css,
but it don't execute correctly this code:
<img src="image/marker.gif" id="marker" style="display: none;
position: relative;" /> <img id="map" height="680"
width="1000" src="map.gif"> <script type="text/javascript"> var
pixel_i = 500; var pixel_j = 340; { alert('eseguo codice
js'); with(document.getElementById('marker')) { alert('eseguo
altro codice js'); style.left = pixel_i; style.top =
pixel_j; style.display = 'block'; } }; </script>
The goal of this javascrirpt code is move the marker image on the map image.
QGIS windows run the two alert, so I understand that the javascirpt code
are running, but the marker.gif is not moved.
I dn't know if this is a bug for qgis.
This code work well on a browser web like firefox.
Thx,
--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20121024/a838c59a/attachment.html>
More information about the Qgis-user
mailing list