Sponks on Facebook
|
December 14, 2009
iPhone Gadget: An iPhone for all of your FriendsAn iPhone for your community! Here is my last work: an iPhone gadget for Google Friend Connect, so you can put a iPhone on your Website and show your community within it. But that is not all because, like the real iPhone, you can:
Moreover, there is no need to use any Flash plugin and its installation is very simple. Then, you can also customize the background color of your community. ![]() That's all!
Here is a snippet of code used in this page to show the iPhone gadget:
<div align="center">
<!-- Include the Google Friend Connect javascript library. --> <script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script> <!-- Define the div tag where the gadget will be inserted. --> <div id="div-7791692969327865580" style="width:;"></div> <!-- Render the gadget into a div. --> <script type="text/javascript"> var skin = {}; skin['BORDER_COLOR'] = '#cccccc'; skin['ENDCAP_BG_COLOR'] = '#e0ecff'; skin['ENDCAP_TEXT_COLOR'] = '#333333'; skin['ENDCAP_LINK_COLOR'] = '#0000cc'; skin['ALTERNATE_BG_COLOR'] = '#000000'; skin[] = '#ffffff'; skin['CONTENT_LINK_COLOR'] = '#0000cc'; skin['CONTENT_TEXT_COLOR'] = '#333333'; skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc'; skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666'; skin['CONTENT_HEADLINE_COLOR'] = '#333333'; google.friendconnect.container.setNoCache(1); google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html */); google.friendconnect.container.renderOpenSocialGadget( { id: 'div-7791692969327865580', url:'http://www.sponks.com/gadgets/iphone.xml', site: 'YOUR GOOGLE FRIEND CONNECT SITE ID', 'prefs':{'iphoneWidth':''} }, skin); </script> </div> Please, note that the value of parameter 'iphoneWidth' (width of the iPhone) starts from 240px to 414px (default is 282px).
|
|

