body{background: #fff url('http://www.vancouver2010.com/dl/00/11/90/torch21280x1024_96d-GK.jpg') no-repeat center top fixed; -moz-background-size: 100% auto; -webkit-background-size: 100% auto; color:#000} a{color:#000} #pub1, hr{display:none} var ge; google.load(earth, 1); function init() { google.earth.createInstance('map3d', initCB, failureCB); } function initCB(instance) { ge = instance; ge.getWindow().setVisibility(true); ge.getLayerRoot().enableLayerById(ge.LAYER_BUILDINGS, true); var la = ge.createLookAt(''); la.set(49.2760 , -123.1111, 0, ge.ALTITUDE_RELATIVE_TO_GROUND, 330, 75, 500); ge.getView().setAbstractView(la); createPlacemark(); // add a navigation control ge.getNavigationControl().setVisibility(ge.VISIBILITY_AUTO); }function createPlacemark() { var placemark = ge.createPlacemark(''); placemark.setName(BC Place); ge.getFeatures().appendChild(placemark); // Create style map for placemark var icon = ge.createIcon(''); icon.setHref('http://maps.google.com/mapfiles/kml/paddle/red-circle.png'); var style = ge.createStyle(''); style.getIconStyle().setIcon(icon); placemark.setStyleSelector(style); // Create point var point = ge.createPoint(''); point.setLatitude(49.2766); point.setLongitude(-123.1119); placemark.setGeometry(point);} function failureCB(errorCode) { } google.setOnLoadCallback(init); Le reste par làNécessite le plugin Google Earth
Publié sur http://zuneo.ne...
//
function fbs_click() {
u=location.href;t=document.title;
window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
return false;
}
$(document).ready(function() {
$.ajax({
type: POST,
url: /api/forum/espace_communaute_ajax.php?ajax=get_bookmarks_sb,
data: {
id_fiche: '319498',
type_fiche: 'fiche actu'
},
success : function(retour){
$(#span_fav).html(retour);
if ($('#id_book').attr('value') != 'NULL') {
$('#fav').toggle(del_fav, add_fav);
} else {
$('#fav').toggle(add_fav, del_fav);
}
}
});
del_fav = function(){
$.ajax({
url:'/api/forum/espace_communaute_ajax.php?ajax=del_bookmark',
type:'POST',
data: {
id: $('#id_book').attr('value')
},
[...]
Related posts:La redevance Tv pour les PC suite
Amazon MP3 en France
Voici un petit script PHP qui permet de convertir une adresse IP en entier.
127.0.0.1 donne 2130706433
Cela peut-être intéressant pour les systèmes de géolocalisation par IP.
echo ipToDecimal ("127.0.0.1"); //Affiche 2130706433
function ipToDecimal ($_pIP)
{
$aIPDecimale = explode (".", $_pIP);
for ($i = 0 ; $i < count ($aIPDecimale) ; $i++)
{
$aIPDecimale[$i] = fillZero (decbin ($aIPDecimale[$i]));
}
$ipDecimal = fillZero (bindec (implode ($aIPDecimale)), 10);
return $ipDecimal;
}
function fillZero [...]
Hubble.NET se présente comme un moteur de recherche capable d'indexer des fichiers mais aussi une base de données : " At present some of the major databases provide full-text search function, but there full-text search function is relatively weak, can not be well positioned to meet the practical application needs, and some full-text search components, such as the more well-known “Lucene”, only provides the full-text search function, while the lack of linking with the relational database (...)". A suivre de très près car l'indexation de sources de données hétérogènes est effectivement le gros point faible de Lucène. Ce projet n'en est qu'à ses débuts.