background preloader

A Pen by Captain Anonymous

A Pen by Captain Anonymous

Comment faire une page ayant la même hauteur que le navigateur ? Nous allons donc maintenant voir une autre technique, utilisant le Javascript. Nous allons reprendre le même squelette que dans la partie précédente, tout en y insérant notre code Javascript <title>Document sans titre</title> Ceci est un essai de page de hauteur 100% Définissons, dans la foulée, la feuille de style associée: body{ margin: 0px; padding: 0px; outline: 0px; background-color: yellow; #page{ background-color: red; width: 100%; Maintenant, réfléchissons... C'est ici que se pose un problème: Revenons à nos moutons! À présent, nous devons vérifier le navigateur du visiteur, et donc utiliser la propriété appropriée à son navigateur. var hauteur; if( typeof( window.innerHeight ) == 'number' ) hauteur = window.innerHeight; else if( document.documentElement && document.documentElement.clientHeight ) hauteur = document.documentElement.clientHeight; Maintenant que nous avons la hauteur de notre zone d'affichage, il ne nous reste plus qu'à l'appliquer. function height(bloc){ Voir ce code en action

Ergonomie web et logiciel, architecture de l'information, utilisabilité sites Internet – Ergolab learn engine 0.8.2 10 Free JavaScript Tools To Create Interactive Maps Here we are presenting a complete list of 10 JavaScript libraries to create interactive and customized maps. Though, there are Google Map maker and other tools to build maps but in this compilation, we are specifically presenting only JavaScript libraries that you can use to show special map markers. We hope that this collection proves to be the best and will help you get going in the initial phases of your map designing project. Geocomplete An advanced jQuery plugin that wraps the Google Maps API’s Geocoding and Places Autocomplete services. Kartograph Kartograph is a simple and lightweight framework for building interactive map applications without Google Maps or any other mapping service. GMaps gmaps.js allows you to use the potential of Google Maps in a simple way. jHere With jHERE, you can easily add interactive maps to your website. Mapael jQuery Mapael is a jQuery plugin based on raphael.js that allows you to display dynamic vector maps. D3js GeoChart DataMaps Maplace.Js Stately

Related: