Difference between revisions of "Team:Greece/modeling"

Line 32: Line 32:
  
 
<a href='#' id='third_slice' class='scaleme' ><span class='parallelogram'>
 
<a href='#' id='third_slice' class='scaleme' ><span class='parallelogram'>
                           <img src='https://scontent-frt3-2.xx.fbcdn.net/v/t1.0-9/19989365_1579794682042842_6228231015332750797_n.jpg?oh=4e424311f4b4242285484769c1ad660a&oe=59FD296A'></img></span></a>
+
                           <img onmouseover='caress(this.id, 1)' onmouseleave='caress(this.id, 0)' src='https://scontent-frt3-2.xx.fbcdn.net/v/t1.0-9/19989365_1579794682042842_6228231015332750797_n.jpg?oh=4e424311f4b4242285484769c1ad660a&oe=59FD296A'></img></span></a>
  
 
<a href='#' id='fourth_slice' class='scaleme' ><span style='margin-right:-100px' class='parallelogram'>
 
<a href='#' id='fourth_slice' class='scaleme' ><span style='margin-right:-100px' class='parallelogram'>
Line 252: Line 252:
 
delete element;
 
delete element;
 
</script>
 
</script>
 +
<script>
 +
function caress(x, num){
 +
var old_src = ['https://scontent-frt3-2.xx.fbcdn.net/v/t1.0-9/19989365_1579794682042842_6228231015332750797_n.jpg?oh=4e424311f4b4242285484769c1ad660a&oe=59FD296A'];
 +
var new_src = ['https://scontent-frt3-2.xx.fbcdn.net/v/t1.0-9/19990495_1579794635376180_3389105891699812887_n.jpg?oh=269b591ba31e98c5589138b83322786c&oe=59C6AE37'];
 +
if(num == 1){
 +
void(document.getElementById(x).src = new_src[0]);
 +
}else{
 +
void(document.getElementById(x).src = old_src[0]);
 +
}
 +
}
 +
</script>
 
</body>
 
</body>
 
</html>
 
</html>

Revision as of 15:01, 13 July 2017