Profil de Windows Live Ga...Windows Live GalleryBlogListesRéseau Outils Aide

Blog


27 février

Make one, get one free! (almost)

When you make a gadget, it can work on both Spaces and Live.com. Follow the SDK to get started.

Make sure you consider the Author and Viewer modes.

Author mode is when the space owner is in “edit” mode of their space. This is where the space owner would configure their gadgets. Viewer mode is when a visitor is viewing someone’s space. This is also true when the space owner is viewing their space while not in “edit” mode. Gadgets on live.com are always in author mode. There is no distinction between author and viewer mode on live.com. Here is an example of how to determine author or viewer mode on Spaces:

m_mode = m_module.getMode();

getMode will either return Web.Gadget.Mode.author or Web.Gadget.Mode.viewer

Recommendations to make your gadget look better:

  • Gadget width - Gadgets on Spaces are only allowed to take up ½ the width of the larger columns on Spaces. Gadgets on Live.com always take up 100% of the width of the column they are contained within. You can test for the width of a gadget by getting the offset width of the “module” class.

var myWidth = m_el.offsetWidth

  • Transparency - You may want to set the background color of your gadget to “transparent”. The default gadget background is always white. This works well on live.com but several themes on Spaces have other background colors. Here is an example of how to set background transparency:

if (window.parent != window.self) {

document.body.style.backgroundColor = "transparent";

}

  • Spaces themes - Gadgets on Spaces do not have access to the font / css information of the underlying page. It is recommended that you implicitly set a font family and size in your gadget CSS file. It is also recommended that you allow the space owner to set the text color of their gadget in author mode. Allowing the user to choose between white or black text solves most issues with font colors.

The Windows Live Gallery Team

Commentaires (184)

Veuillez patienter...
Le commentaire entré est trop long. Raccourcissez-le.
Vous n'avez rien entré. Réessayez.
Il est actuellement impossible d'ajouter votre commentaire. Réessayez plus tard.
Pour ajouter un commentaire, tu dois avoir l'autorisation de tes parents. Demander l'autorisation
Tes parents ont désactivé les commentaires.
Il est actuellement impossible de supprimer votre commentaire. Réessayez plus tard.
Vous avez dépassé le nombre maximal de commentaires qu'il est possible d'envoyer le même jour. Réessayez dans 24 heures.
Votre compte a pu laisser les commentaires désactivés parce que nos systèmes indiquent que vous risquez d'arroser d'autres utilisateurs de messages. Si vous pensez que votre compte a été désactivé par erreur, contactez l'assistance en ligne de Windows Live.
Effectuez la vérification de sécurité ci-dessous pour finaliser l'envoi de votre commentaire.
Les caractères entrés pour la vérification de sécurité doivent correspondre à ceux de l'image ou du fichier audio.
Windows Live Gallery a désactivé les commentaires dans cette page.
YORGUN cana écrit :
<MARQUEE WIDTH='100%' BEHAVIOR='scroll' SCROLLAMOUNT='5' DIRECTION='left'><a href='http://www.bigoo.ws'><img alt='www.bigoo.ws' border='0' src='http://media.bigoo.ws/letters/style65/y.gif'><img alt='www.bigoo.ws' border='0' src='http://media.bigoo.ws/letters/style65/o.gif'><img alt='www.bigoo.ws' border='0' src='http://media.bigoo.ws/letters/style65/r.gif'><img alt='www.bigoo.ws' border='0' src='http://media.bigoo.ws/letters/style65/g.gif'><img alt='www.bigoo.ws' border='0' src='http://media.bigoo.ws/letters/style65/u.gif'><img alt='www.bigoo.ws' border='0' src='http://media.bigoo.ws/letters/style65/n.gif'></a></MARQUEE><br><a href='http://www.bigoo.ws'><span style='text-decoration: none'>Glittery texts by bigoo.ws</span></a></font></p><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/CIMP/Jmx*PTEyMDY3MjA2OTYyODEmcHQ9MTIwNjcyMDk4Mzk2OCZwPTIwMzIxJmQ9Jm49.jpg" />
28 Mar.
YORGUN cana écrit :

canım benim güzel arkadaşım
güzünde gülücükler ve tebesüm hiç eksikolmasın

R. THANKS, BY THE IMAGE FOR MY....ALE

VEFASIZ SEVDİGİM  NAZLI CANANIM BANA DÜĞÜN BAYRAM YAS BUNDAN SONRA

 SENİN HASRETLİGİN BENİ ÖLDÜRÜR ARTIK ELLERİ BAGRINA BAS BUNDAN SONRA

GELİP GECEN HERGÜN GÜNLERİ SAYDIM  UNUTTUM DEMİŞSİN ELLERDEN DOYDUM

BEN SENİN ADINI VEFASIZ KOYDUM İSTER DARIL İSTERGÜCEN İSTER KÜS BUNDAN SONRA

 
19 Mar.
PETARa écrit :
WWW.DOGS-VON-KRISTINGER-HAUS.DIR.BG  EGER ISTIYOSANIZ SAF KAN ALMAN KURDLARI  SAYFA BAKIN
2 Mar.
19 Fév.
enzo baronea écrit :
weeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
 
ciao
19 Fév.
Image de Anonyme
vahdet ilhan a écrit :
aman boşver
13 Fév.
13 Fév.
MORISa écrit :
SEJAM BEM VINDOS
9 Fév.
kasey wilsona écrit :
So I cannot use the gadgets on WindowsXP Pro???? 
8 Fév.
Image de Anonyme
someone a écrit :
i dont get how to make a picture thing
7 Fév.
mehmet yorulmaza écrit :
bence sitenin içerigini görmekde fayda var umarım begenirsiniz
5 Fév.
nevzat 44a écrit :
merhabalar spacese son dakika haberleri girmak kolay
4 Fév.
mehmet yorulmaza écrit :
tek kelimeyle çok güzel
4 Fév.
vanessa nessaa écrit :
quero muito fazer parte
3 Fév.
31 Jan.
31 Jan.
31 Jan.
enzo baronea écrit :
tutti nel mio blog
31 Jan.
qencihtiya​ra écrit :
selam saolkardeş güzel içerik ama tam gelişdirmek istiyorum ben sohbet yeride atmak istiyorum bana nasıl yardımcı olabilirsin bana yardımcı olamnı istiyorum  paylaşım için tşk ..!
30 Jan.
robert semenzatoa écrit :
very good
26 Jan.