Windows Live Ga...'s profileWindows Live GalleryBlogListsNetwork Tools Help

Blog


    27 February

    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

    Comments (184)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.
    Windows Live Gallery has turned off comments on this page.
    YORGUN canwrote:
    <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 canwrote:

    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.
    PETARwrote:
    WWW.DOGS-VON-KRISTINGER-HAUS.DIR.BG  EGER ISTIYOSANIZ SAF KAN ALMAN KURDLARI  SAYFA BAKIN
    2 Mar.
    19 Feb.
    enzo baronewrote:
    weeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
     
    ciao
    19 Feb.
    Picture of Anonymous
    vahdet ilhan wrote:
    aman boşver
    13 Feb.
    13 Feb.
    MORISwrote:
    SEJAM BEM VINDOS
    9 Feb.
    kasey wilsonwrote:
    So I cannot use the gadgets on WindowsXP Pro???? 
    8 Feb.
    Picture of Anonymous
    someone wrote:
    i dont get how to make a picture thing
    7 Feb.
    bence sitenin içerigini görmekde fayda var umarım begenirsiniz
    5 Feb.
    nevzat 44wrote:
    merhabalar spacese son dakika haberleri girmak kolay
    4 Feb.
    tek kelimeyle çok güzel
    4 Feb.
    quero muito fazer parte
    3 Feb.
    31 Jan.
    31 Jan.
    31 Jan.
    enzo baronewrote:
    tutti nel mio blog
    31 Jan.
    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.
    very good
    26 Jan.