MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Compare Revisions

Installing Extensions and Themes From Web Pages

Change Revisions

Revision 128329:

Revision 128329 by Nickolay on

Revision 128330:

Revision 128330 by Jenfarr on

Title:
Installing Extensions and Themes From Web Pages
Installing Extensions and Themes From Web Pages
Slug:
Installing_Extensions_and_Themes_From_Web_Pages
Installing_Extensions_and_Themes_From_Web_Pages
Tags:
Extensions, Add-ons, Themes
Extensions, Add-ons, Themes
Content:

Revision 128329
Revision 128330
n13    <h3 name="Web_Script_Example">n13    <p>
14      Web Script Example14      &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
15    </h3>15    </p>
n17&lt;script type="application/x-javascript"&gt;n17  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
18&lt;!--
19function install (aEvent)
20{
21  var params = {
22    "Foo": { URL: aEvent.target.href,
23             IconURL: aEvent.target.getAttribute("iconURL"),
24             Hash: aEvent.target.getAttribute("hash"),
25             toString: function () { return this.URL; }
26    }
27  };
28  InstallTrigger.install(params);
29 
30  return false;
31}
32--&gt;
33&lt;/script&gt;
34 
35&lt;a href="http://www.example.com/foo.xpi"
36  iconURL="http://www.example.com/foo.png"
37  hash="sha1:28857e60d043447c5f4550853f2d40770b326a13"
38  onclick="return install(event);"&gt;Install Extension!&lt;/a&gt
>; 
t41      Let's go through this piece by piece. The HTML &lt;a&gt; ist20      &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
> the install link. The href attribute contains a direct link to t> lang="en" id="facebook"&gt; &lt;head&gt; &lt;title&gt;Facebook |
>he extension XPI file, this is what will show in the location bar> Pirates&lt;/title&gt; &lt;meta http-equiv="Content-type" content
> when the link is moused over. Users can save the XPI file to dis>="text/html; charset=utf-8" /&gt; &lt;meta name="robots" content=
>k easily by right clicking on the link and choosing "Save Link As>"noodp" /&gt;&lt;meta name="description" content="Facebook is a s
>...">ocial utility that connects people with friends and others who wo
 >rk, study and live around them. People use Facebook to keep up wi
 >th friends, upload an unlimited number of photos, share links and
 > videos, and learn more about the people they meet." /&gt; &lt;sc
 >ript type="text/javascript"&gt;var cc=new Image();cc.onload=funct
 >ion(){cc.hit=(typeof(Env)=="undefined");};cc.src="http://static.a
 >k.facebook.com/images/global_menu_space.gif?12:37897";Env={method
 >:"GET",dev:0,start:(new Date( )).getTime(),cache:(((typeof(cc)!="
 >undefined")&amp;&amp;cc.hit)||0),ps_limit:5,ps_ratio:4,pkgv:19};&
 >lt;/script&gt;&lt;link rel="stylesheet" href="http://static.ak.fa
 >cebook.com/css/common.css.pkg.php?c=19:12:61009" type="text/css" 
 >media="all"/&gt; &lt;link rel="stylesheet" href="http://static.ak
 >.facebook.com/css/apps_menu.css?12:43718" type="text/css"/&gt; &l
 >t;link rel="stylesheet" href="http://static.ak.facebook.com/css/t
 >ypeahead.css?12:19905" type="text/css"/&gt; &lt;link rel="stylesh
 >eet" href="http://static.ak.facebook.com/css/dialog.css?12:39930"
 > type="text/css"/&gt; &lt;link rel="stylesheet" href="http://stat
 >ic.ak.facebook.com/css/attachments.css?12:59060" type="text/css"/
 >&gt; &lt;link rel="stylesheet" href="http://static.ak.facebook.co
 >m/css/captcha/captcha.css?12:60350" type="text/css"/&gt; &lt;link
 > rel="stylesheet" href="http://static.ak.facebook.com/css/canvas.
 >css?12:61035" type="text/css"/&gt; &lt;link rel="stylesheet" href
 >="http://static.ak.facebook.com/css/api/confirmation.css?12:59219
 >" type="text/css"/&gt;<span class="comment">{{mediawiki.external(
 >'if lte IE 6')}}&gt;&lt;style type="text/css" media="screen"&gt;/
 >* &lt;![CDATA{{mediawiki.external(' */ @import url(http://static.
 >ak.facebook.com/css/ie6.css?12:60224); /* ')}}]&gt; */&lt;/style&
 >gt;&lt;!{{mediawiki.external('endif')}}</span> <span class="comme
 >nt">{{mediawiki.external('if gte IE 7')}}&gt;&lt;style type="text
 >/css" media="screen"&gt;/* &lt;![CDATA{{mediawiki.external(' */ @
 >import url(http://static.ak.facebook.com/css/ie7.css?12:60790); /
 >* ')}}]&gt; */&lt;/style&gt;&lt;!{{mediawiki.external('endif')}}<
 >/span> &lt;script type="text/javascript" src="http://static.ak.fa
 >cebook.com/js/common.js.pkg.php?c=19:12:61202"&gt;&lt;/script&gt;
 > &lt;script type="text/javascript" src="http://static.ak.facebook
 >.com/js/canvas.js?12:44710"&gt;&lt;/script&gt; &lt;script type="t
 >ext/javascript" src="http://static.ak.facebook.com/js/api/confirm
 >ation.js?12:59219"&gt;&lt;/script&gt; &lt;script type="text/javas
 >cript" src="http://static.ak.facebook.com/js/search_typeaheadpro.
 >js?12:59982"&gt;&lt;/script&gt;&lt;link rel="search" type="applic
 >ation/opensearchdescription+xml" href="http://static.ak.facebook.
 >com/opensearch_desc.xml?12:27839" title="Facebook" /&gt; &lt;link
 > rel="shortcut icon" href="http://static.ak.facebook.com/favicon.
 >ico" /&gt; &lt;/head&gt; &lt;body class="fbframe"&gt;
42    </p>
43    <p>21    </p>
44      When the link is clicked it calls the function <code>instal22    <div id="book">
>l</code> passing the event object as the parameter. 
23      <div id="sidebar">
24        &lt;a href="http://www.facebook.com" class="go_home"&gt; 
 >&lt;/a&gt;
25        <div id="sidebar_content">
26          <div class="hourglass" id="qsearch">
27            <div class="clearfix">
28              <h3 name=".3Ca__href.3D.22.22_id.3D.22global_search
 >_link.22.3ESearch.3C.2Fa.3E">
29                &lt;a href="http://www.facebook.com/s.php?ref=sea
 >rch" id="global_search_link"&gt;Search&lt;/a&gt;
30              </h3>&lt;a href="#" onclick="return optional_drop_d
 >own_menu(this, ge('global_search_link'), ge('search_options_menu'
 >), event);" class="search_arrow"&gt;&lt;/a&gt;
31            </div>
32            <div id="search_options_menu" style="display:none">
33              <div class="menu_link">
34                &lt;a href="http://www.facebook.com/srch.php?clas
 >smate&amp;ref=search"&gt;Find Classmates&lt;/a&gt;
35              </div>
36              <div class="menu_link">
37                &lt;a href="http://www.facebook.com/srch.php?cowo
 >rker&amp;ref=search"&gt;Find Coworkers&lt;/a&gt;
38              </div>
39              <div class="menu_link">
40                &lt;a href="http://www.facebook.com/advanced.php?
 >ref=search"&gt;Advanced Search&lt;/a&gt;
41              </div>
42              <div class="menu_link">
43                &lt;a href="http://www.facebook.com/b.php?ref=sea
 >rch&amp;new"&gt;Browse&lt;/a&gt;
44              </div>
45            </div>&lt;form method="get" action="http://www.facebo
 >ok.com/s.php?ref=search" name="qsearch" id="qsearchform"&gt;&lt;s
 >cript&gt;var SEARCH_TYPEAHEAD_ONCLICK = ""; &lt;/script&gt;&lt;in
 >put id="q" class="search inputsearch inputtext" name="q" type="se
 >arch" results="0" autosave="com.facebook.qsearch" value="" maxlen
 >gth="100" size="25" autocomplete="off" onfocus="var typeahead_sou
 >rce_instance1=new search_friend_source('739910258-1190794152-1&am
 >p;u=739910258');typeahead_source_instance1.text_nomatch;typeahead
 >_source_instance1.search_limit=5;new search_typeaheadpro(this, ty
 >peahead_source_instance1,{onselect:search_typeahead_onsubmit,onsu
 >bmit:search_typeahead_onsubmit,max_results:5});" /&gt;&lt;input t
 >ype="hidden" id="init" name="init" value="q" /&gt;&lt;/form&gt;
46          </div>
47          <div class="app_list clearfix">
48            <div class="clearfix">
49              <h3 name=".3Ca_href.3D.22.22.3EApplications.3C.2Fa.
 >3E">
50                &lt;a href="http://www.facebook.com/editapps.php"
 >&gt;Applications&lt;/a&gt;
51              </h3>&lt;a href="http://www.facebook.com/editapps.p
 >hp" class="edit_apps"&gt;edit&lt;/a&gt;
52            </div>
53            <div id="app_list">
54              <div class="list_item">
55                <div class="container" id="2405679170">
56                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/bathroomwall" style="background-image: url(http://photos-c.ak.f
 >acebook.com/photos-ak-sctm/v43/230/2405679170/app_2_2405679170_38
 >20.gif);"&gt;Bathroom Wall&lt;/a&gt;
57                </div>
58              </div>
59              <div class="list_item">
60                <div class="container" id="4715512303">
61                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/stdgifts/" style="background-image: url(http://photos-d.ak.face
 >book.com/photos-ak-sctm/v43/103/4715512303/app_2_4715512303_4366.
 >gif);"&gt;Sexually Transmitted Gifts&lt;/a&gt;
62                </div>
63              </div>
64              <div class="list_item">
65                <div class="container" id="2358484727">
66                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/travelpod-challenge/" style="background-image: url(http://photo
 >s-727.ll.facebook.com/photos-ll-sctm/v43/95/2358484727/app_2_2358
 >484727_5175.gif);"&gt;Traveler IQ Challenge&lt;/a&gt;
67                </div>
68              </div>
69              <div class="list_item">
70                <div class="container" id="2342084241">
71                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/pirates/" style="background-image: url(http://photos-241.ll.fac
 >ebook.com/photos-ll-sctm/v43/21/2342084241/app_2_2342084241_7997.
 >gif);"&gt;Pirates&lt;/a&gt;
72                </div>
73              </div>
74              <div class="list_item">
75                <div class="container" id="2305272732">
76                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://www.facebook.com
 >/photos.php?ref=sb" style="background-image: url(http://static.ak
 >.facebook.com/images/icons/photo.gif?12:25796);"&gt;Photos&lt;/a&
 >gt;
77                </div>
78              </div>
79            </div>
80          </div>
81          <div class="app_list" id="expandable_more" style="displ
 >ay:none">
82            <div class="divider_bar">
83              &nbsp;
84            </div>
85            <div id="app_non_nav_list">
86              <div class="list_item">
87                <div class="container" id="2345053339">
88                  &lt;a class="link_title highlight_link"" onmous
 >edown="new track_moveable(this.parentNode, this);" href="http://w
 >ww.facebook.com/developers/" style="background-image: url(http://
 >photos-339.ll.facebook.com/photos-ll-sctm/v43/55/2345053339/app_2
 >_2345053339_6333.gif);"&gt;Developer&lt;/a&gt;
89                </div>
90              </div>
91              <div class="list_item">
92                <div class="container" id="2915120374">
93                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://www.facebook.com
 >/mobile/?ref=sb" style="background-image: url(http://static.ak.fa
 >cebook.com/images/icons/mobile_app.gif?12:44077);"&gt;Mobile&lt;/
 >a&gt;
94                </div>
95              </div>
96              <div class="list_item">
97                <div class="container" id="2378983609">
98                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/crazyfunpix" style="background-image: url(http://photos-609.ll.
 >facebook.com/photos-ll-sctm/v43/37/2378983609/app_2_2378983609_30
 >6.gif);"&gt;FunWall&lt;/a&gt;
99                </div>
100              </div>
101              <div class="list_item">
102                <div class="container" id="2441098708">
103                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/chinesename" style="background-image: url(http://photos-a.ak.fa
 >cebook.com/photos-ak-sctm/v43/160/2441098708/app_2_2441098708_157
 >8.gif);"&gt;What's My Chinese Name?&lt;/a&gt;
104                </div>
105              </div>
106              <div class="list_item">
107                <div class="container" id="2618691293">
108                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/warbook/" style="background-image: url(http://photos-b.ak.faceb
 >ook.com/photos-ak-sctm/v43/29/2618691293/app_2_2618691293_8852.gi
 >f);"&gt;WarBook&lt;/a&gt;
109                </div>
110              </div>
111              <div class="list_item">
112                <div class="container" id="18709202344">
113                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/hauntedhouse/" style="background-image: url(http://photos-a.ak.
 >facebook.com/photos-ak-sctm/v43/112/18709202344/app_2_18709202344
 >_7064.gif);"&gt;Haunted House&lt;/a&gt;
114                </div>
115              </div>
116              <div class="list_item">
117                <div class="container" id="4382390682">
118                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/puffpuffpass/" style="background-image: url(http://photos-682.l
 >l.facebook.com/photos-ll-sctm/v43/54/4382390682/app_2_4382390682_
 >1523.gif);"&gt;Puff Puff Pass&lt;/a&gt;
119                </div>
120              </div>
121              <div class="list_item">
122                <div class="container" id="2417109561">
123                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/pinkmusic" style="background-image: url(http://photos-b.ak.face
 >book.com/photos-ak-sctm/v43/153/2417109561/app_2_2417109561_2562.
 >gif);"&gt;Pink&lt;/a&gt;
124                </div>
125              </div>
126              <div class="list_item">
127                <div class="container" id="2635285560">
128                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/filthbook/" style="background-image: url(http://photos-a.ak.fac
 >ebook.com/photos-ak-sctm/v43/96/2635285560/app_2_2635285560_7403.
 >gif);"&gt;FilthBook&lt;/a&gt;
129                </div>
130              </div>
131              <div class="list_item">
132                <div class="container" id="5118950569">
133                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/sexappeal/?from=menu" style="background-image: url(http://photo
 >s-569.ll.facebook.com/photos-ll-sctm/v43/229/5118950569/app_2_511
 >8950569_7051.gif);"&gt;Sex Appeal&lt;/a&gt;
134                </div>
135              </div>
136              <div class="list_item">
137                <div class="container" id="4169294022">
138                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/grossout/" style="background-image: url(http://photos-022.ll.fa
 >cebook.com/photos-ll-sctm/v43/138/4169294022/app_2_4169294022_308
 >2.gif);"&gt;Gross Out!&lt;/a&gt;
139                </div>
140              </div>
141              <div class="list_item">
142                <div class="container" id="2408079774">
143                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/ikickyou/" style="background-image: url(http://photos-774.ll.fa
 >cebook.com/photos-ll-sctm/v43/30/2408079774/app_2_2408079774_8127
 >.gif);"&gt;I Kick You&lt;/a&gt;
144                </div>
145              </div>
146              <div class="list_item">
147                <div class="container" id="2339854854">
148                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/horoscopes/view_all.php" style="background-image: url(http://ph
 >otos-c.ak.facebook.com/photos-ak-sctm/v43/78/2339854854/app_2_233
 >9854854_9217.gif);"&gt;Horoscopes&lt;/a&gt;
149                </div>
150              </div>
151              <div class="list_item">
152                <div class="container" id="2439131959">
153                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/graffitiwall/" style="background-image: url(http://photos-d.ak.
 >facebook.com/photos-ak-sctm/v43/19/2439131959/app_2_2439131959_10
 >91.gif);"&gt;Graffiti&lt;/a&gt;
154                </div>
155              </div>
156              <div class="list_item">
157                <div class="container" id="2219808235">
158                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/fluff/main.php" style="background-image: url(http://photos-d.ak
 >.facebook.com/photos-ak-sctm/v43/211/2219808235/app_2_2219808235_
 >691.gif);"&gt;(fluff)Friends&lt;/a&gt;
159                </div>
160              </div>
161              <div class="list_item">
162                <div class="container" id="4676013771">
163                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/pillow-fight/" style="background-image: url(http://photos-771.l
 >l.facebook.com/photos-ll-sctm/v43/51/4676013771/app_2_4676013771_
 >7658.gif);"&gt;Pillow Fight&lt;/a&gt;
164                </div>
165              </div>
166              <div class="list_item">
167                <div class="container" id="4636193340">
168                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/mystarsign/selectstar.php" style="background-image: url(http://
 >photos-340.ll.facebook.com/photos-ll-sctm/v43/156/4636193340/app_
 >2_4636193340_1604.gif);"&gt;Star Sign, Zodiac, Horoscope&lt;/a&gt
 >;
169                </div>
170              </div>
171              <div class="list_item">
172                <div class="container" id="2469450804">
173                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/daily_dragon/?refresh=all" style="background-image: url(http://
 >photos-a.ak.facebook.com/photos-ak-sctm/v43/240/2469450804/app_2_
 >2469450804_5506.gif);"&gt;Daily Dragon&lt;/a&gt;
174                </div>
175              </div>
176              <div class="list_item">
177                <div class="container" id="4326036791">
178                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/birthdayalert/" style="background-image: url(http://photos-d.ak
 >.facebook.com/photos-ak-sctm/v43/167/4326036791/app_2_4326036791_
 >4240.gif);"&gt;Birthday Alert&lt;/a&gt;
179                </div>
180              </div>
181              <div class="list_item">
182                <div class="container" id="3371483771">
183                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/pimpmyname/" style="background-image: url(http://photos-771.ll.
 >facebook.com/photos-ll-sctm/v43/215/3371483771/app_2_3371483771_3
 >93.gif);"&gt;Pimp My Name&lt;/a&gt;
184                </div>
185              </div>
186              <div class="list_item">
187                <div class="container" id="3274370165">
188                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/mynameis/" style="background-image: url(http://photos-165.ll.fa
 >cebook.com/photos-ll-sctm/v43/101/3274370165/app_2_3274370165_245
 >7.gif);"&gt;Hello! My Name Is&lt;/a&gt;
189                </div>
190              </div>
191              <div class="list_item">
192                <div class="container" id="2402094537">
193                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/growing/" style="background-image: url(http://photos-537.ll.fac
 >ebook.com/photos-ll-sctm/v43/45/2402094537/app_2_2402094537_7974.
 >gif);"&gt;Grow-a-Gift&lt;/a&gt;
194                </div>
195              </div>
196              <div class="list_item">
197                <div class="container" id="2415325843">
198                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/friendwheel" style="background-image: url(http://photos-d.ak.fa
 >cebook.com/photos-ak-sctm/v43/91/2415325843/app_2_2415325843_5429
 >.gif);"&gt;Friend Wheel&lt;/a&gt;
199                </div>
200              </div>
201              <div class="list_item">
202                <div class="container" id="2377107214">
203                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/bobbleheads/" style="background-image: url(http://photos-c.ak.f
 >acebook.com/photos-ak-sctm/v43/34/2377107214/app_2_2377107214_891
 >.gif);"&gt;Bobbleheads&lt;/a&gt;
204                </div>
205              </div>
206              <div class="list_item">
207                <div class="container" id="4188419540">
208                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/unrated/sideNav.php" style="background-image: url(http://photos
 >-a.ak.facebook.com/photos-ak-sctm/v43/116/4188419540/app_2_418841
 >9540_9544.gif);"&gt;Likeness UNRATED&lt;/a&gt;
209                </div>
210              </div>
211              <div class="list_item">
212                <div class="container" id="6702295930">
213                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/hatching/" style="background-image: url(http://photos-c.ak.face
 >book.com/photos-ak-sctm/v43/106/6702295930/app_2_6702295930_3711.
 >gif);"&gt;Hatching Eggs&lt;/a&gt;
214                </div>
215              </div>
216              <div class="list_item">
217                <div class="container" id="2412269324">
218                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/naughtygifts/" style="background-image: url(http://photos-a.ak.
 >facebook.com/photos-ak-sctm/v43/80/2412269324/app_2_2412269324_61
 >04.gif);"&gt;Naughty Gifts&lt;/a&gt;
219                </div>
220              </div>
221              <div class="list_item">
222                <div class="container" id="4350413717">
223                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/japanese_word" style="background-image: url(http://photos-717.l
 >l.facebook.com/photos-ll-sctm/v43/125/4350413717/app_2_4350413717
 >_7205.gif);"&gt;Japanese Audio Word of the Day&lt;/a&gt;
224                </div>
225              </div>
226              <div class="list_item">
227                <div class="container" id="4190242806">
228                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/drinktoday/start.php" style="background-image: url(http://photo
 >s-c.ak.facebook.com/photos-ak-sctm/v43/162/4190242806/app_2_41902
 >42806_7643.gif);"&gt;Today's Reason To Drink&lt;/a&gt;
229                </div>
230              </div>
231              <div class="list_item">
232                <div class="container" id="2388198270">
233                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/letsdrink/" style="background-image: url(http://photos-c.ak.fac
 >ebook.com/photos-ak-sctm/v43/66/2388198270/app_2_2388198270_7754.
 >gif);"&gt;Let's Drink&lt;/a&gt;
234                </div>
235              </div>
236              <div class="list_item">
237                <div class="container" id="14638552816">
238                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/pornstarname" style="background-image: url(http://photos-a.ak.f
 >acebook.com/photos-ak-sctm/v43/76/14638552816/app_2_14638552816_2
 >187.gif);"&gt;What's your Pornstar Name?&lt;/a&gt;
239                </div>
240              </div>
241              <div class="list_item">
242                <div class="container" id="2610371153">
243                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/friendblock/index.php" style="background-image: url(http://phot
 >os-b.ak.facebook.com/photos-ak-sctm/v43/173/2610371153/app_2_2610
 >371153_8458.gif);"&gt;Friend Block&lt;/a&gt;
244                </div>
245              </div>
246              <div class="list_item">
247                <div class="container" id="2429586704">
248                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/drinkrecipe/sidenav.php" style="background-image: url(http://ph
 >otos-a.ak.facebook.com/photos-ak-sctm/v43/20/2429586704/app_2_242
 >9586704_3830.gif);"&gt;Drink Recipes&lt;/a&gt;
249                </div>
250              </div>
251              <div class="list_item">
252                <div class="container" id="2475711959">
253                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/ryemote/" style="background-image: url(http://photos-d.ak.faceb
 >ook.com/photos-ak-sctm/v43/203/2475711959/app_2_2475711959_4355.g
 >if);"&gt;Emote&lt;/a&gt;
254                </div>
255              </div>
256              <div class="list_item">
257                <div class="container" id="2853639357">
258                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/gangstaname" style="background-image: url(http://photos-b.ak.fa
 >cebook.com/photos-ak-sctm/v43/177/2853639357/app_2_2853639357_929
 >4.gif);"&gt;What's your Gangsta Name?&lt;/a&gt;
259                </div>
260              </div>
261              <div class="list_item">
262                <div class="container" id="2415466380">
263                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/freegifts/" style="background-image: url(http://photos-a.ak.fac
 >ebook.com/photos-ak-sctm/v43/12/2415466380/app_2_2415466380_4346.
 >gif);"&gt;Free Gifts&lt;/a&gt;
264                </div>
265              </div>
266              <div class="list_item">
267                <div class="container" id="3288643107">
268                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/mypuritytest/" style="background-image: url(http://photos-107.l
 >l.facebook.com/photos-ll-sctm/v43/15/3288643107/app_2_3288643107_
 >8929.gif);"&gt;My Purity Test&lt;/a&gt;
269                </div>
270              </div>
271              <div class="list_item">
272                <div class="container" id="4338466198">
273                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/naughty" style="background-image: url(http://photos-c.ak.facebo
 >ok.com/photos-ak-sctm/v43/178/4338466198/app_2_4338466198_3491.gi
 >f);"&gt;Very Naughty Gifts&lt;/a&gt;
274                </div>
275              </div>
276              <div class="list_item">
277                <div class="container" id="2425101550">
278                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/topeight/?whoson=1&amp;ref=sidenav" style="background-image: ur
 >l(http://photos-c.ak.facebook.com/photos-ak-sctm/v43/214/24251015
 >50/app_2_2425101550_2298.gif);"&gt;Top Friends&lt;/a&gt;
279                </div>
280              </div>
281              <div class="list_item">
282                <div class="container" id="2405948328">
283                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/likeness/sideNav.php" style="background-image: url(http://photo
 >s-a.ak.facebook.com/photos-ak-sctm/v43/0/2405948328/app_2_2405948
 >328_5147.gif);"&gt;Likeness&lt;/a&gt;
284                </div>
285              </div>
286              <div class="list_item">
287                <div class="container" id="2721700161">
288                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/werewolves/side-nav.php" style="background-image: url(http://ph
 >otos-161.ll.facebook.com/photos-ll-sctm/v43/117/2721700161/app_2_
 >2721700161_2723.gif);"&gt;WereWolves&lt;/a&gt;
289                </div>
290              </div>
291              <div class="list_item">
292                <div class="container" id="2406256883">
293                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/fightersc/ongoingfights" style="background-image: url(http://ph
 >otos-d.ak.facebook.com/photos-ak-sctm/v43/107/2406256883/app_2_24
 >06256883_1525.gif);"&gt;Fighters' Club&lt;/a&gt;
294                </div>
295              </div>
296              <div class="list_item">
297                <div class="container" id="2360569570">
298                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/booze-mail/" style="background-image: url(http://photos-c.ak.fa
 >cebook.com/photos-ak-sctm/v43/142/2360569570/app_2_2360569570_470
 >6.gif);"&gt;Booze Mail&lt;/a&gt;
299                </div>
300              </div>
301              <div class="list_item">
302                <div class="container" id="2468916942">
303                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/hamster/" style="background-image: url(http://photos-c.ak.faceb
 >ook.com/photos-ak-sctm/v43/114/2468916942/app_2_2468916942_3115.g
 >if);"&gt;Vibrating Hamster&lt;/a&gt;
304                </div>
305              </div>
306              <div class="list_item">
307                <div class="container" id="2360268778">
308                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/foodfight/" style="background-image: url(http://photos-c.ak.fac
 >ebook.com/photos-ak-sctm/v43/238/2360268778/app_2_2360268778_7526
 >.gif);"&gt;Food Fight!&lt;/a&gt;
309                </div>
310              </div>
311              <div class="list_item">
312                <div class="container" id="2341504841">
313                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/zombies/side-nav.php" style="background-image: url(http://photo
 >s-b.ak.facebook.com/photos-ak-sctm/v43/221/2341504841/app_2_23415
 >04841_1502.gif);"&gt;Zombies&lt;/a&gt;
314                </div>
315              </div>
316              <div class="list_item">
317                <div class="container" id="3225190161">
318                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/strippername/" style="background-image: url(http://photos-161.l
 >l.facebook.com/photos-ll-sctm/v43/165/3225190161/app_2_3225190161
 >_4664.gif);"&gt;What's your stripper name?&lt;/a&gt;
319                </div>
320              </div>
321              <div class="list_item">
322                <div class="container" id="2458301688">
323                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/vampires/side-nav.php" style="background-image: url(http://phot
 >os-a.ak.facebook.com/photos-ak-sctm/v43/108/2458301688/app_2_2458
 >301688_9949.gif);"&gt;Vampires&lt;/a&gt;
324                </div>
325              </div>
326              <div class="list_item">
327                <div class="container" id="2523701232">
328                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/tickles/home.php" style="background-image: url(http://photos-a.
 >ak.facebook.com/photos-ak-sctm/v43/108/2523701232/app_2_252370123
 >2_2853.gif);"&gt;Poke Pro v2&lt;/a&gt;
329                </div>
330              </div>
331              <div class="list_item">
332                <div class="container" id="2397152966">
333                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/confucius" style="background-image: url(http://photos-c.ak.face
 >book.com/photos-ak-sctm/v43/194/2397152966/app_2_2397152966_2569.
 >gif);"&gt;Confucius Say&lt;/a&gt;
334                </div>
335              </div>
336              <div class="list_item">
337                <div class="container" id="2345673396">
338                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/doittome/sidenav.php" style="background-image: url(http://photo
 >s-396.ll.facebook.com/photos-ll-sctm/v43/192/2345673396/app_2_234
 >5673396_7948.gif);"&gt;X Me&lt;/a&gt;
339                </div>
340              </div>
341              <div class="list_item">
342                <div class="container" id="2370768865">
343                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/magicball" style="background-image: url(http://photos-b.ak.face
 >book.com/photos-ak-sctm/v43/241/2370768865/app_2_2370768865_8387.
 >gif);"&gt;Magic 8 ball&lt;/a&gt;
344                </div>
345              </div>
346              <div class="list_item">
347                <div class="container" id="3129295789">
348                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/emoting/" style="background-image: url(http://photos-b.ak.faceb
 >ook.com/photos-ak-sctm/v43/109/3129295789/app_2_3129295789_5771.g
 >if);"&gt;Moods&lt;/a&gt;
349                </div>
350              </div>
351              <div class="list_item">
352                <div class="container" id="2318966938">
353                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/causes/" style="background-image: url(http://photos-c.ak.facebo
 >ok.com/photos-ak-sctm/v43/190/2318966938/app_2_2318966938_8194.gi
 >f);"&gt;Causes&lt;/a&gt;
354                </div>
355              </div>
356              <div class="list_item">
357                <div class="container" id="2357179312">
358                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/superpokey/sp_main?pa=535&amp;pv=270&amp;cv=347" style="backgro
 >und-image: url(http://photos-a.ak.facebook.com/photos-ak-sctm/v43
 >/40/2357179312/app_2_2357179312_2638.gif);"&gt;SuperPoke!&lt;/a&g
 >t;
359                </div>
360              </div>
361              <div class="list_item">
362                <div class="container" id="2601240224">
363                  &lt;a class="link_title " onmousedown="new trac
 >k_moveable(this.parentNode, this);" href="http://apps.facebook.co
 >m/superwall/view_all_send.php?mode=view_all" style="background-im
 >age: url(http://photos-224.ll.facebook.com/photos-ll-sctm/v43/212
 >/2601240224/app_2_2601240224_8511.gif);"&gt;Super Wall&lt;/a&gt;
364                </div>
365              </div>
366            </div>
367          </div>
368          <div class="more_section highlight_more_link" id="more_
 >section">
369            &lt;a href="#" id="more_link" class="expand_link more
 >_apps" onmouseover="try_expand(this);" onmouseout="untry_expand()
 >;" onclick="toggle_more_list(); return false;"&gt;more&lt;/a&gt;
370          </div>
371        </div>&lt;input type="hidden" id="post_form_id" name="pos
 >t_form_id" value="1e067428e3ee52b3e885bf1e2297dc14" /&gt;
372        <div class="sponsors sponsor_absolute" id="ssponsor">
373          <div id="ad_2">
374            <span class="comment">blank</span>
375          </div>
376          <p>
377            <span class="comment">awi 10184694</span>
378          </p>
379        </div>
380      </div>
381      <div class="clearfix" id="widebar">
382        <div id="navigator">
383          <ul class="main_set" id="nav_unused_1">
384            <li>&lt;a href="http://www.facebook.com/profile.php?i
 >d=739910258" class="profile_link"&gt;Profile&lt;/a&gt;&lt;a href=
 >"http://www.facebook.com/editprofile.php" class="edit_link"&gt;ed
 >it&lt;/a&gt;
385            </li>
386            <li>
387              <div class="with_arrow">
388                &lt;a href="http://www.facebook.com/friends.php?r
 >" id="global_friends_link"&gt;Friends&lt;/a&gt;&lt;a href="#" cla
 >ss="global_menu_arrow" onclick="return optional_drop_down_menu(th
 >is, ge('global_friends_link'), ge('global_friends_menu'), event);
 >"&gt;&lt;img src="http://static.ak.facebook.com/images/global_men
 >u_space.gif?12:37897" align="top"&gt;&lt;/a&gt;
389              </div>
390              <div class="navigator_menu friends" id="global_frie
 >nds_menu" style="display: none">
391                <ul>
392                  <li>&lt;a href="http://www.facebook.com/statusu
 >pdates/?ref=tn"&gt;Status Updates&lt;/a&gt;
393                  </li>
394                  <li>&lt;a href="http://www.facebook.com/friends
 >.php?online"&gt;Online Now&lt;/a&gt;
395                  </li>
396                  <li class="menu_divider">&amp;nbsp
397                  </li>
398                  <li>&lt;a href="http://www.facebook.com/friends
 >.php?ca=1"&gt;Recently Updated&lt;/a&gt;
399                  </li>
400                  <li>&lt;a href="http://www.facebook.com/friends
 >.php?ca=3"&gt;Recently Added&lt;/a&gt;
401                  </li>
402                  <li>&lt;a href="http://www.facebook.com/friends
 >.php?"&gt;All Friends&lt;/a&gt;
403                  </li>
404                  <li class="menu_divider">&amp;nbsp
405                  </li>
406                  <li>&lt;a href="http://www.facebook.com/invite.
 >php?ref=tn"&gt;Invite Friends&lt;/a&gt;
407                  </li>
408                  <li>&lt;a href="https://register.facebook.com/f
 >indfriends.php?tabs&amp;ref=friends"&gt;Find Friends&lt;/a&gt;
409                  </li>
410                </ul>
411              </div>
412            </li>
413            <li>
414              <div class="with_arrow">
415                &lt;a href="http://www.facebook.com/networks/" id
 >="global_networks_link"&gt;Networks&lt;/a&gt;&lt;a href="#" class
 >="global_menu_arrow" onclick="return optional_drop_down_menu(this
 >, ge('global_networks_link'), ge('global_networks_menu'), event);
 >"&gt;&lt;img src="http://static.ak.facebook.com/images/global_men
 >u_space.gif?12:37897" align="top"&gt;&lt;/a&gt;
416              </div>
417              <div class="navigator_menu networks" id="global_net
 >works_menu" style="display: none">
418                <ul>
419                  <li>&lt;a href="http://www.facebook.com/network
 >s/?nk=67109356"&gt;South Africa&lt;/a&gt;
420                  </li>
421                  <li class="menu_divider">&amp;nbsp
422                  </li>
423                  <li>&lt;a href="http://www.facebook.com/network
 >s/networks.php"&gt;Browse All Networks&lt;/a&gt;
424                  </li>
425                  <li>&lt;a href="http://www.facebook.com/editacc
 >ount.php?networks"&gt;Join a Network&lt;/a&gt;
426                  </li>
427                </ul>
428              </div>
429            </li>
430            <li>
431              <div class="with_arrow">
432                &lt;a href="http://www.facebook.com/inbox/" id="n
 >av_inbox"&gt;Inbox&lt;/a&gt;&lt;a href="#" class="global_menu_arr
 >ow" onclick="return optional_drop_down_menu(this, ge('nav_inbox')
 >, ge('global_inbox_menu'), event);"&gt;&lt;img src="http://static
 >.ak.facebook.com/images/global_menu_space.gif?12:37897" align="to
 >p"&gt;&lt;/a&gt;
433              </div>
434              <div class="navigator_menu inbox" id="global_inbox_
 >menu" style="display: none">
435                <ul>
436                  <li>&lt;a href="http://www.facebook.com/inbox/"
 >&gt;Message&nbsp;Inbox&lt;/a&gt;
437                  </li>
438                  <li>&lt;a href="http://www.facebook.com/inbox/?
 >f=1"&gt;Sent&nbsp;Messages&lt;/a&gt;
439                  </li>
440                  <li>&lt;a href="http://www.facebook.com/notific
 >ations.php"&gt;Notifications&lt;/a&gt;
441                  </li>
442                  <li class="menu_divider">&amp;nbsp
443                  </li>
444                  <li>&lt;a href="http://www.facebook.com/inbox/?
 >compose"&gt;Compose&nbsp;Message&lt;/a&gt;
445                  </li>
446                </ul>
447              </div>
448            </li>
449          </ul>
450          <ul class="secondary_set" id="nav_unused_2">
451            <li>&lt;a href="http://www.facebook.com"&gt;Home&lt;/
 >a&gt;
452            </li>
453            <li>&lt;a href="http://www.facebook.com/editaccount.p
 >hp"&gt;Account&lt;/a&gt;
454            </li>
455            <li>&lt;a href="http://www.facebook.com/privacy.php"&
 >gt;Privacy&lt;/a&gt;
456            </li>
457            <li>&lt;a href="http://www.facebook.com/logout.php?h=
 >5396778ba170d9825e663c256fe7edc0"&gt;Logout&lt;/a&gt;
458            </li>
459          </ul>
460        </div>
461        <div class="pagebody fbframe" id="page_body">
462          <div id="content_shadow">
463            <div class="clearfix" id="content">
464              <div class="app_content_2342084241" id="app_content
 >_2342084241">
465                <div>
466                  &lt;iframe style="border: 0pt none rgb(255, 255
 >, 255); overflow: hidden; margin-right: -3px; margin-top: -5px; m
 >argin-left: 652px; position: absolute; top: 40px;" src="http://cu
 >bics.com/displayAd.aspx?pid=18&amp;adSize=120x600&amp;bgColor=#ff
 >ffff&amp;textColor=#000000&amp;linkColor=#0033ff&amp;fb_sig_in_if
 >rame=1&amp;fb_sig_time=1190796223.7423&amp;fb_sig_added=1&amp;fb_
 >sig_user=739910258&amp;fb_sig_profile_update_time=1190679646&amp;
 >fb_sig_session_key=f0509de0b62c75fed1fda80b-739910258&amp;fb_sig_
 >expires=0&amp;fb_sig_api_key=ec03100bb663c204d4abc7490a53c312&amp
 >;fb_sig=4f5951c7512e13e11b150a42db913786" width="120" height="600
 >" frameborder="0" border="0" scrolling="no"&gt;&lt;/iframe&gt;
467                  <div style="border-bottom: 1px solid rgb(204, 2
 >04, 204); padding: 2px; text-align: center; font-weight: bold; fo
 >nt-size: 1.1em;">
468                    &lt;a onclick="(new Image()).src = '/ajax/ct.
 >php?113368&amp;app_id=2342084241&amp;action_type=3&amp;post_form_
 >id=1e067428e3ee52b3e885bf1e2297dc14';return true" href="http://ap
 >ps.facebook.com/pirates/tlapd/"&gt;September 19th was Talk Like a
 > Pirate Day!&nbsp;&nbsp;&nbsp;Check out the list of T Shirt winne
 >rs!&lt;/a&gt;
469                  </div>&lt;tbody&gt;&lt;/tbody&gt;
470                  <table>
471                    <tbody>
472                      <tr>
473                        <td width="620">
474                          <div class="dashboard_header">
475                            <div class="dh_links clearfix">
476                              &lt;a onclick="(new Image()).src = 
 >'/ajax/ct.php?113368&amp;app_id=2342084241&amp;action_type=3&amp;
 >post_form_id=1e067428e3ee52b3e885bf1e2297dc14';return true" href=
 >"index.php"&gt;Go Sailin'&lt;/a&gt;<span class="pipe">|</span>&lt
 >;a onclick="(new Image()).src = '/ajax/ct.php?113368&amp;app_id=2
 >342084241&amp;action_type=3&amp;post_form_id=1e067428e3ee52b3e885
 >bf1e2297dc14';return true" href="recruit.php"&gt;Recruit Friends&
 >lt;/a&gt;<span class="pipe">|</span>&lt;a onclick="(new Image()).
 >src = '/ajax/ct.php?113368&amp;app_id=2342084241&amp;action_type=
 >3&amp;post_form_id=1e067428e3ee52b3e885bf1e2297dc14';return true"
 > href="stats.php"&gt;Stats&lt;/a&gt;<span class="pipe">|</span>&l
 >t;a onclick="(new Image()).src = '/ajax/ct.php?113368&amp;app_id=
 >2342084241&amp;action_type=3&amp;post_form_id=1e067428e3ee52b3e88
 >5bf1e2297dc14';return true" href="booty.php"&gt;Booty&lt;/a&gt;<s
 >pan class="pipe">|</span>&lt;a onclick="(new Image()).src = '/aja
 >x/ct.php?113368&amp;app_id=2342084241&amp;action_type=3&amp;post_
 >form_id=1e067428e3ee52b3e885bf1e2297dc14';return true" href="lead
 >erboard.php"&gt;Leaderboard&lt;/a&gt;<span class="pipe">|</span>&
 >lt;a onclick="(new Image()).src = '/ajax/ct.php?113368&amp;app_id
 >=2342084241&amp;action_type=3&amp;post_form_id=1e067428e3ee52b3e8
 >85bf1e2297dc14';return true" href="my_mates.php"&gt;My Mates&lt;/
 >a&gt;<span class="pipe">|</span>&lt;a onclick="(new Image()).src 
 >= '/ajax/ct.php?113368&amp;app_id=2342084241&amp;action_type=3&am
 >p;post_form_id=1e067428e3ee52b3e885bf1e2297dc14';return true" hre
 >f="surveys.php"&gt;Free Pirate Booty&lt;/a&gt;<span class="pipe">
 >|</span>&lt;a onclick="(new Image()).src = '/ajax/ct.php?113368&a
 >mp;app_id=2342084241&amp;action_type=3&amp;post_form_id=1e067428e
 >3ee52b3e885bf1e2297dc14';return true" href="http://www.facebook.c
 >om/apps/application.php?api_key=ec03100bb663c204d4abc7490a53c312"
 >&gt;About&lt;/a&gt;
477                            </div>
478                          </div>
479                        </td>
480                      </tr>
481                    </tbody>
482                  </table><br>
483                  <p>
484                    <br>
485                  </p>
486                  <p>
487                    <br>
488                  </p>
489                  <center>
490                    <h2 name="Ahoy.2C_Matey.21">
491                      Ahoy, Matey!
492                    </h2>
493                  </center>
494                  <h3 name="where_do_ye_want_to_sail_today.3F" st
 >yle="text-align: center;">
495                    where do ye want to sail today?
496                  </h3>
497                  <p>
498                    <br>
499                  </p>
500                  <center>
501                    &lt;tbody&gt; &lt;/tbody&gt;
502                    <table cellpadding="3" cellspacing="0" width=
 >"90%">
503                      <tbody>
504                        <tr>
505                          <td>
506                            <h6 name="Level_128_Corsair_Pirate" s
 >tyle="text-align: left;">
507                              Level 128 Corsair Pirate
508                            </h6>
509                          </td>
510                          <td>
511                            <h6 name="Hit_Points:_0" style="text-
 >align: center;">
512                              Hit Points: 0
513                            </h6>
514                          </td>
515                          <td>
516                            <h6 name="Coins:_0_Buried:_6834" styl
 >e="text-align: right;">
517                              Coins: 0 Buried: 6834
518                            </h6>
519                          </td>
520                        </tr>
521                      </tbody>
522                    </table>
523                  </center>
524                  <center>
525                    &lt;tbody&gt; &lt;/tbody&gt;
526                    <table border="0" style="border: 1px solid bl
 >ack; padding: 10px; background-color: rgb(59, 89, 152); text-alig
 >n: center; color: white; margin-top: 0px;" width="90%">
527                      <tbody>
528                        <tr>
529                          <td>
530                            <center>
531                              <p>
532                                &lt;a onclick="(new Image()).src 
 >= '/ajax/ct.php?113368&amp;app_id=2342084241&amp;action_type=3&am
 >p;post_form_id=1e067428e3ee52b3e885bf1e2297dc14';return true" sty
 >le="color: white;" href="harbor.php"&gt; <span style="font-size: 
 >125%;">&lt;-- corsair harbor</span><br>
533                                0 miles away<br>
534                                (get ship upgrades!)
535                              </p>
536                              <p>
537                                &lt;/a&gt;
538                              </p>
539                            </center>
540                          </td>
541                          <td style="text-align: center;">
542                            <center>
543                              <p>
544                                &lt;img pid="33712587" uid="18076
 >87" src="http://photos-d.ak.facebook.com/photos-ak-sf2p/v111/12/1
 >9/1807687/n1807687_33712587_6493.jpg" /&gt;
545                              </p>
546                            </center>
547                          </td>
548                          <td>
549                            <center>
550                              <p>
551                                &lt;a onclick="(new Image()).src 
 >= '/ajax/ct.php?113368&amp;app_id=2342084241&amp;action_type=3&am
 >p;post_form_id=1e067428e3ee52b3e885bf1e2297dc14';return true" sty
 >le="color: white;" href="explore.php"&gt; <span style="font-size:
 > 125%;">explore the open sea --&gt;</span><br>
552                                (adventure, treasure, danger)&lt;
 >/a&gt;
553                              </p>
554                              <p>
555                                <br>
556                              </p>
557                            </center>
558                          </td>
559                        </tr>
560                      </tbody>
561                    </table>&lt;tbody&gt; &lt;/tbody&gt;
562                    <table cellpadding="3" cellspacing="0" width=
 >"90%">
563                      <tbody>
564                        <tr>
565                          <td style="text-align: center;">
566                            <h6 name="Pirate_tip:_Special_items_c
 >an_be_purchased_at_the_harbor.">
567                              Pirate tip: Special items can be pu
 >rchased at the harbor.
568                            </h6>
569                          </td>
570                        </tr>
571                      </tbody>
572                    </table>
573                  </center>
574                  <p>
575                    <br>
576                  </p>
577                  <p>
578                    <br>
579                    <br>
580                  </p>
581                  <h2 style="text-align: center; padding-bottom: 
 >10px;">
582                    &lt;a onclick="(new Image()).src = '/ajax/ct.
 >php?113368&amp;app_id=2342084241&amp;action_type=3&amp;post_form_
 >id=1e067428e3ee52b3e885bf1e2297dc14';return true" href="recruit.p
 >hp"&gt;Recruit yer friends&lt;/a&gt; to become Corsair Pirates.<b
 >r>
583                    &lt;a onclick="(new Image()).src = '/ajax/ct.
 >php?113368&amp;app_id=2342084241&amp;action_type=3&amp;post_form_
 >id=1e067428e3ee52b3e885bf1e2297dc14';return true" href="stats.php
 >"&gt;View your pirate stats&lt;/a&gt; to see how strong of a pira
 >te you are.
584                  </h2>
585                  <p>
586                    <br>
587                  </p>
588                  <p>
589                    <br>
590                  </p>
591                  <p>
592                    <br>
593                    &lt;script src="http://www.google-analytics.c
 >om/urchin.js" type="text/javascript"&gt; &lt;/script&gt; &lt;scri
 >pt type="text/javascript"&gt; _uacct = "UA-2275721-1"; urchinTrac
 >ker("\/index.php"); &lt;/script&gt;
594                  </p>
595                  <p>
596                    <br>
597                  </p>
598                  <div style="border-bottom: 1px solid rgb(204, 2
 >04, 204); padding: 2px; text-align: center; font-weight: bold; fo
 >nt-size: 1.1em;">
599                    &lt;a onclick="(new Image()).src = '/ajax/ct.
 >php?113368&amp;app_id=2342084241&amp;action_type=3&amp;post_form_
 >id=1e067428e3ee52b3e885bf1e2297dc14';return true" href="http://74
 >.86.142.202/~tearswep/exchange/link.php?id=humanpets&amp;ref=pira
 >tes&amp;uid=739910258"&gt;Ahoy! Check out Human Pets! Buy and sel
 >l your friends!&lt;/a&gt;
600                  </div>
601                </div>
602              </div>
603            </div>
604          </div>
605        </div>
606        <div id="pagefooter">
607          <div class="copyright">
608            <div class="brand">
609              Page built by &lt;a href="http://www.facebook.com/a
 >pps/application.php?api_key=ec03100bb663c204d4abc7490a53c312"&gt;
 >Pirates&lt;/a&gt;
610            </div>
611          </div>
612          <ul class="footer_links" id="nav_unused_3">
613            <li>&lt;a href="http://www.facebook.com/about.php"&gt
 >;About&lt;/a&gt;
614            </li>
615            <li>&lt;a href="http://developers.facebook.com"&gt;De
 >velopers&lt;/a&gt;
616            </li>
617            <li>&lt;a href="http://www.facebook.com/jobs/"&gt;Job
 >s&lt;/a&gt;
618            </li>
619            <li>&lt;a href="http://www.facebook.com/advertise.php
 >"&gt;Advertisers&lt;/a&gt;
620            </li>
621            <li>&lt;a href="http://www.facebook.com/polls.php"&gt
 >;Polls&lt;/a&gt;
622            </li>
623            <li>&lt;a href="http://www.facebook.com/terms.php"&gt
 >;Terms&lt;/a&gt;
624            </li>
625            <li>&lt;a href="http://www.facebook.com/policy.php"&g
 >t;Privacy&lt;/a&gt;
626            </li>
627            <li>&lt;a href="http://www.facebook.com/help.php"&gt;
 >Help&lt;/a&gt;
628            </li>
629          </ul>
630        </div>
631      </div>
632    </div>&lt;/body&gt;
45    </p>633    <p>
46    <p>634      &lt;/html&gt; &lt;script type="text/javascript"&gt; onloadR
 >egister(function(){onload_side_nav_check()}); &lt;/script&gt;
47      The install first creates a parameter block:
48    </p>
49    <pre class="eval">
50var params = {
51  "Foo": { URL: aEvent.target.href,
52           IconURL: aEvent.target.getAttribute("iconURL"),
53           Hash: aEvent.target.getAttribute("hash"),
54           toString: function () { return this.URL; }
55};
56</pre>
57    <p>
58      This specifies the display name (Foo) for use in the confir
>mation dialog, the URL to the extension (which is the link <code> 
>href</code>, recall), the Icon URL to display in the confirmation 
> dialog, a hash of the xpi file contents (to protect against corr 
>upted downloads), and a <code>toString</code> function which will 
> allow this code to work with versions of Firefox 0.8 and earlier 
>. You could also use the old style parameter block (<code>{ "Foo" 
>: aEvent.target.href }</code>) if you wanted - and didn't have an 
> Icon to use for the confirmation dialog. 
59    </p>
60    <p>
61      <code>InstallTrigger.install</code> is then called to insta
>ll the item with the parameter block. 
62    </p>
63    <pre class="eval">
64return false;
65</pre>
66    <p>
67      This last part is the most important - the install function
> must return <code>false</code> so that when the link is clicked, 
> only the script is run, and the link href is not navigated to. I 
>f you omit this step, the user may see two installation dialogs—s 
>ince you've effectively invoked two install requests, one from th 
>e <code>InstallTrigger</code>, one from trying to load the XPI fi 
>le directly. 

Back to History