Wednesday, May 27, 2009

Playing with Google Trends Gadget

I recently bumped into the google trends gadget that I just had to try out.

The challenge is in customizing this beast as it is not really documented properly :-(





The code for the above gadget is quite simply:
<iframe> id="trendsframe" src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/trends_gadget.xml&source=imag&up_is_init=true&up_cur_term=+Facebook,+Netlog,+MySpace&up_date=ytd" style="border:1px solid #ccc; padding:10px;" width="330" height="250" frameborder="0" scrolling="no" ></iframe>

Although the functionality is working I would like to prevent the edit link from showing up on the screen ...
As it is dynamically set by some javascript code I cannot simply override the style in a local stylesheet. I tried upon onload of the iframe to get to the element and change the style but that does not work either due to the fact that (for security reasons) there is no acces to the content of the iframe at all from outside it ...

If anyone has the google trends gadget hacked in such a way that it doesn't show the edit link I would love to hear from you ...

No comments:

Post a Comment