Changeset 1503


Ignore:
Timestamp:
Sep 29, 2010, 4:00:46 PM (10 years ago)
Author:
popeye
Message:

Highlight de la carte des circos

Location:
cpc/trunk/project
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/circonscription/templates/listSuccess.php

    r1421 r1503  
    1717    continue;
    1818  if (preg_match('/^\d$/', $num)) $num = sprintf("%02d",$num);
    19   echo '<p title="'.strtoupper($num).'" onclick="document.location=\''.url_for('@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'\'" class="dept" id="dep'.strtoupper($num).'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>';
     19  echo '<p title="'.strtoupper($num).'" class="dept" id="dep'.strtoupper($num).'">'.link_to($circo, '@list_parlementaires_departement?departement='.preg_replace('/ /', '_', $circo)).'</p>';
    2020  if ($ct == $iter2)
    2121    break;
     
    2323} ?>
    2424</div>
     25<script type="text/javascript">
     26/* survol du txt */
     27$(".dept").live("mouseover", function() {
     28  dep = $(this).attr("id").substring(3);
     29  $("#map"+dep).mouseover();
     30})
     31$(".dept").live("mouseout", function() {
     32  dep = $(this).attr("id").substring(3);
     33  $("#map"+dep).mouseout();
     34})
     35/* survol de la map */
     36$("area").live("mouseover", function() {
     37  dep = $(this).attr("id").substring(3);
     38  $("#dep"+dep).css("background-color", "#D1EA74");
     39})
     40$("area").live("mouseout", function() {
     41  dep = $(this).attr("id").substring(3);
     42  $("#dep"+dep).css("background-color", "#fff");
     43})
     44</script>
  • cpc/trunk/project/web/css/xneth/style.css

    r1502 r1503  
    17451745  background-color: rgb(198,229,81);
    17461746}
     1747.dept a {
     1748  display: block;
     1749  width: 100%;
     1750  height: 100%;
     1751}
    17471752.list_choix {
    17481753  text-align: center;
Note: See TracChangeset for help on using the changeset viewer.