Sticky Footer , fixed footer, pinned footer
1. through css
#footer {
position:fixed;
left:0px;
bottom:0px;
height:30px;
width:100%;
background:#999;
}
2. jQuery Easy Pinned Footer
1. through css
#footer {
position:fixed;
left:0px;
bottom:0px;
height:30px;
width:100%;
background:#999;
}
2. jQuery Easy Pinned Footer
1. through css
#footer {
position:fixed;
left:0px;
bottom:0px;
height:30px;
width:100%;
background:#999;
}
2. jQuery Easy Pinned Footer
This version leaves behind the older Internet Explorer 6, 7, and 8 browsers. In return it is smaller, faster, and can be used in JavaScript environments where the code needed for old-IE compatibility often causes problems of its own. But don’t worry, the jQuery team still supports the 1.x branch which does run on IE 6/7/8. You can (and should) continue to use jQuery 1.9 (and the upcoming 1.10) on web sites that need to accommodate older browsers.
With the release of jQuery 2.0, there are a few environments where the jQuery team will no longer support use of the 1.x line because 2.x is a far better choice. These are typically non-web-site scenarios where support for older IE isn’t relevant. They include:
You can break up a code line within a text string with a backslash. The example below will be displayed properly:
document.write("Hello \
World!");
However, you cannot break up a code line like this:
document.write \
("Hello World!");
it is quite simple via jquery,
$("#yourSelectCtrlId option:selected").text();
In google map API, there is a class google.maps.Geocoder, it is a service for converting between an address and a LatLng.
Demo of using this api:
function showAddress(address){
var geocoder = new google.maps.Geocoder();
geocoder.geocode( {‘address’: ‘your address’}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var searchLoc = results[0].geometry.location;
var latlng = new google.maps.LatLng(searchLoc.lat(), searchLoc.lng());
map.setCenter(latlng);// assert we already have a ‘map’ instance
marker.setPosition(latlng); // assert we already have a ‘marker’ instance
}
else{
alert("There is no such place!");
}
});
}