Jump to content

Laegnur

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Laegnur

  • Rank
    Newbie
  • Birthday 03/20/1980

Contact Methods

  • MSN
    GrenDeath@yahoo.es
  • Website URL
    http://
  • ICQ
    0
  • Yahoo
    GrenDeath

Profile Information

  • Location
    Redes (A Coruña)
  1. HiI have this code on mi own wesite. Sorry for my bad english... function initialize() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map_canvas")); //Change this to yor map content div id map.setMapType(G_HYBRID_MAP); map.setCenter(new GLatLng(43.399739,-8.16524), 14); //Change this to your Latitude/Longitude map.addControl(new GSmallZoomControl3D()); var arelaIcon = new GIcon(G_DEFAULT_ICON); arelaIcon.shadow = "img/shadow.png"; //Change this to your marker image arelaIcon.iconSize = new GSize(20, 34); arelaIcon.shadowSize = new GSize(37, 34); arelaIcon.iconAnchor = new GPoint(9, 34); arelaIcon.infoWindowAnchor = new GPoint(9, 2); arelaIcon.image = "img/marker.png"; // And this to your marker's shadow image markerOptions = { icon:arelaIcon }; var latlng = new GLatLng(43.400152,-8.165503); // and finaly change this to your Lattitude/Longitud marker position var marker = new GMarker(latlng, markerOptions); GEvent.addListener(marker, "click", function() { // This is to add a message to the marker marker.openInfoWindowHtml("Message"); }); map.addOverlay(marker); }}
  2. If I not add the + ' #content' It copy all the content of the linked page in the div #content of the main pageDOM Page Source ...<div style="display: block;" id="content"><title></title><meta name="generator" content="Bluefish 1.0.7"><meta name="author" content="Tury Laegnur"><meta http-equiv="content-type" content="text/html; charset=UTF-8"><meta http-equiv="content-style-type" content="text/css"> <ul id="nav"> <li><a href="index.html" class="current"><span>Home</span></a></li> <li><a href="links.html"><span>Links</span></a></li> </ul> <div id="content"> <p>Lorem Ipsum</p> </div></div>...
  3. HelloIn my web I have a script to load the #content from any page in the div #content of the main page, using JQuery, but when I run these script for first time, it duplicate the div #content.code.js $(document).ready(function() { $('#nav a').click(function(event) { $('#content').hide().load($(this).attr("href") + ' #content').fadeIn(1000); $('#nav a').removeClass("current"); $(this).addClass("current"); event.preventDefault(); }); index.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><title></title><meta name="generator" content="Bluefish 1.0.7"><meta name="author" content="Tury Laegnur"><meta http-equiv="content-type" content="text/html; charset=UTF-8"><meta http-equiv="content-style-type" content="text/css"><script type="text/javascript" src="jquery.js"></script><script type="text/javascript" src="code.js"></script></head><body> <ul id="nav"> <li><a href="index.html" class="current"><span>Home</span></a></li> <li><a href="links.html"><span>Links</span></a></li> </ul> <div id="content"> <p>Lorem Ipsum</p> <p>Lorem Ipsum</p> </div></body></html> DOM Page Source <div style="display: block;" id="content"><div id="content"> ... </div></div> Some one can help me with this?
×
×
  • Create New...