Posts

Showing posts with the label javascript

Developping with googleMaps everywhere with the same licence id

When you want to use google maps on a website, you need to signup and get a key for the internet domain name that will use google Maps. When your developing your googleMaps feature, it's not on the production site with the final url. (At least... I hope it's not so ;) And you may code some google feature for several sites, and all these sites, you often code it on your computer with a local Apache/Php or Tomcat server. So in you html (jsp, php, asp whatever) page you'll include the following code to have access to the google maps feature. <!-- google map --> <script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=A...5g"> </script> A simple trick, is to request a key for a fake domain here : http://code.google.com/apis/maps/signup.html Let's say, for "http://toms-projects" Get the key, put it in your html code, and then edit your etc/hosts file. (/etc/hosts on linux, c:\windows\system32\...

Add image in the blogger link list

I wanted to add link on my blog to blogs I read regularly. Ok, I've found the Link List module, I add it. Add few link I like... But, some of the blogs are in French other in English... So I've obviously tried to insert some <img> or even <span>... nothing works... So I used the hard way : I've modified my template to add prototype + script.aculo.us <head> ... <script src='http://mansonthomas.com/js/lib/prototype.js' type='text/javascript'> </script> <script src='http://mansonthomas.com/js/lib/scriptaculous.js' type='text/javascript'> </script> <script src='http://mansonthomas.com/js/blogger.js' type='text/javascript'> </script> </head> I used the text inside the <a> as a prototype template . For example : #{fr} Rank My Day | Référencement And wrote this code to change #{fr} into a nice flag (with many thanks to www.famfamfam.com for his works on all great ico...