Quantcast
Channel: Topics in Category: Can I do this with LimeSurvey? - LimeSurvey forums
Viewing all articles
Browse latest Browse all 17529

Check answer from an image map and conditions - by: dc_pgn

$
0
0
Hi,

my Code is not working. What is wrong? :(
Which type of question must i choose?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><title>QGIS</title><script type="text/javascript">
function mapOnMouseOver(str){document.getElementById("mousemovemessage").innerHTML=str; }
function mapOnMouseOut(str){document.getElementById("mousemovemessage").innerHTML="out of "+str; }
function mapOnClick(str){alert(str);}
</script> </head> <body><div id="mousemovemessage"></div><br><img src="Gewerbestandorte.png" border="0" ismap="ismap" usemap="#mapmap" alt="html imagemap created with QGIS" >
<map name="mapmap">
<area shape="poly" href=""  coords="611,413,611,411,611" alt="1">
<area shape="poly" href=""  coords="735,495,734,494,734" alt="2">
<area shape="poly" href=""  coords="212,592,212,587,212" alt="3">
<area shape="poly" href=""  coords="241,727,264,727,265" alt="4">
<area shape="poly" href=""  coords="596,107,596,105,595" alt="5">
<area shape="poly" href=""  coords="627,439,624,442,614" alt="6">
<area shape="poly" href=""  coords="150,300,150,302,147" alt="7">
<area shape="poly" href=""  coords="146,283,147,283,147" alt="8">
<area shape="poly" href=""  coords="103,509,301,506,301" alt="9">
<area shape="poly" href=""  coords="442,404,443,403,443" alt="10">
<area shape="poly" href=""  coords="408,497,408,498,407" alt="11">
</map></body></html>
 
<script type="text/javascript" charset="utf-8">
 
$('area').click(function() {
    var alt = $(this).attr('alt');
    $("#question42 input.text").val(alt);
 
 
  return false;
});
 
</script>

Viewing all articles
Browse latest Browse all 17529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>