social bookmarking
<?php
$services = array (
"digg" => array (
"Target" => "http://digg.com/submit?phase=2&url=PERMALINK&title=TITLE",
"Image" => "digg-48x48.png",
"Title" => "Digg"
),
"facebook" => array (
"Target" => "http://www.facebook.com/share.php?u=PERMALINK",
"Image" => "facebook-48x48.png",
"Title" => "Facebook"
),
"google bookmarks" => array (
"Target" => "http://www.google.com/bookmarks/mark?op=edit&bkmk=PERMALINK&title=TITLE",
"Image" => "google-48x48.png",
"Title" => "Google"
),
"linkedin" => array (
"Target" => "http://www.linkedin.com/shareArticle?mini=true&url=PERMALINK&title=TITLE&ro=false",
"Image" => "linkedin-48x48.png",
"Title" => "Linkedin"
),
"mixx" => array (
"Target" => "http://www.mixx.com/submit?page_url=PERMALINK",
"Image" => "mixx-48x48.png",
"Title" => "Mixx"
),
"myspace" => array (
"Target" => "http://www.myspace.com/Modules/PostTo/Pages/?u=PERMALINK&t=TITLE",
"Image" => "myspace-48x48.png",
"Title" => "Myspace"
),
"newsvine" => array (
"Target" => "http://www.newsvine.com/_wine/save?u=PERMALINK&h=TITLE",
"Image" => "newsvine-48x48.png",
"Title" => "Newsvine"
),
"reddit" => array (
"Target" => "http://reddit.com/submit?url=PERMALINK&title=TITLE",
"Image" => "reddit-48x48.png",
"Title" => "Reddit"
),
"stumbleupon" => array (
"Target" => "http://www.stumbleupon.com/submit?url=PERMALINK&title=TITLE",
"Image" => "stumbleupon-48x48.png",
"Title" => "Stumbleupon"
),
"technorati" => array (
"Target" => "http://technorati.com/favorites/?sub=favthis&add=PERMALINK",
"Image" => "technorati-48x48.png",
"Title" => "Technorati"
),
"yahoo buzz" => array (
"Target" => "http://buzz.yahoo.com/submit/?url=PERMALINK",
"Image" => "yahoo-buzz-48x48.png",
"Title" => "Yahoo Buzz"
),
"yahoo search" => array (
"Target" => "http://myweb2.search.yahoo.com/myresults/bookmark?t=TITLE&u=PERMALINK",
"Image" => "yahoo-48x48.png",
"Title" => "Yahoo Search"
),
"delicious" => array (
"Target" => "http://del.icio.us/post?url1=PERMALINK&title=TITLE",
"Image" => "delicious-48x48.png",
"Title" => "Delicious"
),
"blinklist" => array (
"Target" => "http://blinklist.com/index.php?Action=Blink/addblink.php&Name=TITLE&Url=PERMALINK",
"Image" => "blinklist-48x48.png",
"Title" => "Blinklist"
),
"blogmarks" => array (
"Target" => "http://blogmarks.net/my/new.php?mini=1&simple=1&url=PERMALINK&title=TITLE",
"Image" => "blogmarks-48x48.png",
"Title" => "Blogmarks"
),
"connotea" => array (
"Target" => "http://www.connotea.org/add?continue=return&uri=PERMALINK&title=TITLE",
"Image" => "connotea-48x48.png",
"Title" => "Connotea"
),
"citeulike" => array (
"Target" => "http://www.citeulike.org/posturl?url=PERMALINK&title=TITLE",
"Image" => "citeulike-48x48.png",
"Title" => "Citeulike"
),
"buddymarks" => array (
"Target" => "http://buddymarks.com/add_bookmark.php?bookmark_title=TITLE&bookmark_url=PERMALINK",
"Image" => "buddymarks-48x48.png",
"Title" => "Buddymarks"
),
"bonitrust" => array (
"Target" => "http://www.bonitrust.de/account/bookmark/?bookmark_url=PERMALINK",
"Image" => "bonitrust-48x48.png",
"Title" => "Bonitrust"
),
"Ma.gnolia" => Array(
"Image" => "magnolia-48x48.png",
"Target" => "http://ma.gnolia.com/bookmarklet/add?url=PERMALINK&title=TITLE",
"Title" => "Ma.gnolia"
),
"BarraPunto" => Array(
"Image" => "barrapunto-48x48.png",
"Target" => "http://barrapunto.com/submit.pl?subj=TITLE&story=PERMALINK",
"Title" => "BarraPunto"
),
"Bitacoras.com" => Array(
"Image" => "bitacoras-48x48.png",
"Target" => "http://bitacoras.com/anotaciones/PERMALINK",
"Title" => "Bitacoras.com"
),
"Furl" => Array(
"Image" => "furl-48x48.png",
"Target" => "http://www.furl.net/storeIt.jsp?u=PERMALINK&t=TITLE",
"Title" => "Furl"
),
"Tumblr" => Array(
"Image" => "tumblr-48x48.png",
"Target" => "http://www.tumblr.com/share?v=3&u=PERMALINK&t=TITLE&s=",
"Title" => "Tumblr"
),
"TwitThis" => Array(
"Image" => "twitter-48x48.png",
"Target" => "http://twitter.com/home?status=PERMALINK",
"Title" => "TwitThis"
),
"Spurl" => Array(
"Image" => "spurl-48x48.png",
"Target" => "http://www.spurl.net/spurl.php?url=PERMALINK&title=TITLE",
"Title" => "Spurl"
),
"Wykop" => Array(
"Image" => "wykop-48x48.png",
"Target" => "http://www.wykop.pl/dodaj?url=PERMALINK",
"Title" => "Wykop"
),
"Netvibes" => Array(
"Image" => "netvibes-48x48.png",
"Target" =>"http://www.netvibes.com/share?title=TITLE&url=PERMALINK",
"Title" => "Netvibes"
),
"co.mments" => Array(
"Image" => "co.mments-48x48.png",
"Target" => "http://co.mments.com/track?url=PERMALINK&title=TITLE",
"Title" => "comments"
),
"Pownce" => Array(
"Image" => "pownce-48x48.png",
"Target" => "http://pownce.com/send/link/?url=PERMALINK&note_body=TITLE&note_to=all",
"Title" => "Pownce"
),
"LinkArena" => Array(
"Image" => "linkarena-48x48.png",
"Target" => "http://linkarena.com/bookmarks/addlink/?url=PERMALINK&title=TITLE",
"Title" => "LinkArena"
),
"De.lirio.us" => Array(
"Image" => "delirious-48x48.png",
"Target" => "http://de.lirio.us/rubric/post?uri=PERMALINK;title=TITLE;when_done=go_back",
"Title" => "De.lirio.us"
),
"Orkut" => Array(
"Image" => "orkut-48x48.png",
"Target" => "http://orkut.com",
"Title" => "Orkut"
),
"Symbaloo" => Array(
"Image" => "symbaloo-48x48.png",
"Target" => "http://www.symbaloo.com/nl/add/url=PERMALINK&title=TITLE&",
"Title" => "symbaloo"
),
"Meneame" => Array(
"Image" => "meneame-48x48.png",
"Target" => "http://meneame.net/submit.php?url=PERMALINK",
"Title" => "Meneame"
),
"MisterWong" => Array(
"Image" => "misterwong-48x48.png",
"Target" => "http://www.mister-wong.com/addurl/?bm_url=PERMALINK&bm_description=TITLE&plugin=soc",
"Title" => "MisterWong"
),
"MisterWong.DE" => Array(
"Image" => "misterwong-48x48.png",
"Target" => "http://www.mister-wong.de/addurl/?bm_url=PERMALINK&bm_description=TITLE&plugin=soc",
"Title" => "MisterWong.DE"
),
"Wordpress" => Array(
"Image" => "Wordpress-48x48.png",
"Target" => "http://www.wordpress.org/",
"Title" => "Wordpress"
),
"eKudos" => Array(
"Image" => "ekudos-48x48.png",
"Target" => "http://www.ekudos.nl/artikel/nieuw?url=PERMALINK&title=TITLE",
"Title" => "eKudos"
),
"DZone" => Array(
"Image" => "dzone-48x48.png",
"Target" => "http://www.dzone.com/links/add.html?url=PERMALINK&title=TITLE",
"Title" => "DZone"
),
"Fark" => Array(
"Image" => "fark-48x48.png",
"Target" => "http://cgi.fark.com/cgi/fark/farkit.pl?h=TITLE&u=PERMALINK",
"Title" => "Fark"
),
"flickr" => Array(
"Image" => "flickr-48x48.png",
"Target" => "http://www.flickr.com",
"Title" => "Flickr"
),
"friendfeed" => Array(
"Image" => "friendfeed-48x48.png",
"Target" => "http://www.friendfeed.com/",
"Title" => "Friendfeed"
),
"dailymotion" => Array(
"Image" => "dailymotion-48x48.png",
"Target" => "http://www.dailymotion.com/",
"Title" => "Dailymotion"
),
"friendster" => Array(
"Image" => "friendster-48x48.png",
"Target" => "http://www.friendster.com/",
"Title" => "Friendster"
),
"foursquare" => Array(
"Image" => "foursquare-48x48.png",
"Target" => "http://foursquare.com/",
"Title" => "Foursquare"
),
"gowalla" => Array(
"Image" => "gowalla-48x48.png",
"Target" => "http://gowalla.com/",
"Title" => "Gowalla"
),
"googlebuzz" => Array(
"Image" => "google_buzz-48x48.png",
"Target" => "http://www.google.com/buzz/",
"Title" => "GoogleBuzz"
),
"Propeller" => Array(
"Image" => "propeller-48x48.png",
"Target" => "http://www.propeller.com/submit/?url=PERMALINK",
"Title" => "Propeller"
),
"picasaweb" => Array(
"Image" => "picasa-48x48.png",
"Target" => "http://picasaweb.google.com/",
"Title" => "PicasaWeb"
),
"youtube" => Array(
"Image" => "youtube-48x48.png",
"Target" => "http://www.youtube.com",
"Title" => "Youtube"
),
"Identi.ca" => Array(
"Image" => "identica-48x48.png",
"Target" => "http://identi.ca/notice/new?status_textarea=PERMALINK",
"Title" => "Identi.ca"
),
"Netvouz" => Array(
"Image" => "netvouz-48x48.png",
"Target" => "http://www.netvouz.com/action/submitBookmark?url=PERMALINK&title=TITLE&popup=no",
"Title" => "Netvouz"
),
"webshots" => Array(
"Image" => "webshots-48x48.png",
"Target" => "http://www.webshots.com",
"Title" => "Webshots"
),
"xfire" => Array(
"Image" => "xfire-48x48.png",
"Target" => "http://www.xfire.com/",
"Title" => "xfire"
),
"Scoopeo" => Array(
"Image" => "scoopeo-48x48.png",
"Target" => "http://www.scoopeo.com/scoop/new?newurl=PERMALINK&title=TITLE",
"Title" => "Scoopeo"
),
"xing" => Array(
"Image" => "xing-48x48.png",
"Target" => "https://www.xing.com",
"Title" => "xing"
),
"scuttle" => Array(
"Image" => "scuttle-48x48.png",
"Target" => "http://www.scuttle.org/bookmarks.php/maxpower?action=add&address=PERMALINK&title=TITLE",
"Title" => "Scuttle"
),
"livejournal" => Array(
"Image" => "livejournal-48x48.png",
"Target" => "http://www.livejournal.com/",
"Title" => "Livejournal"
),
"Segnalo" => Array(
"Image" => "segnalo-48x48.png",
"Target" => "http://segnalo.alice.it/post.html.php?url=PERMALINK&title=TITLE",
"Title" => "Segnalo"
),
"plaxo" => Array(
"Image" => "plaxo-48x48.png",
"Target" => "http://www.plaxo.com/",
"Title" => "Plaxo"
),
"Kirtsy" => Array(
"Image" => "kirtsy-48x48.png",
"Target" => "http://www.kirtsy.com/submit.php?url=PERMALINK&title=TITLE",
"Title" => "Kirtsy"
),
"last.fm" => Array(
"Image" => "lastfm-48x48.png",
"Target" => "http://www.last.fm/",
"Title" => "last.fm"
),
"vimeo" => Array(
"Image" => "vimeo-48x48.png",
"Target" => "http://www.vimeo.com/",
"Title" => "Vimeo"
),
"vkontakte" => Array(
"Image" => "vkontakte-48x48.png",
"Target" => "http://vkontakte.ru/",
"Title" => "Vkontakte"
),
"yelp" => Array(
"Image" => "yelp-48x48.png",
"Target" => "http://www.yelp.com/",
"Title" => "Yelp"
),
"hyves" => Array(
"Image" => "hyves-48x48.png",
"Target" => "http://www.hyves.nl/",
"Title" => "Hyves"
),
"Design Float" => Array(
"Image" => "designfloat-48x48.png",
"Target" => "http://www.designfloat.com/submit.php?url=PERMALINK&title=TITLE",
"Title" => "DesignFloat"
),
"coconex" => Array(
"Image" => "coconex-48x48.png",
"Target" => "http://www.coconex.com/",
"Title" => "Coconex"
),
"blogger" => Array(
"Image" => "blogger-48x48.png",
"Target" => "http://www.blogger.com/",
"Title" => "Blogger"
),
"feedmelinks" => Array(
"Image" => "feedmelinks-48x48.png",
"Target" => "http://feedmelinks.com/categorize?from=toolbar&op=submit&url=PERMALINK&name=TITLE",
"Title" => "feedmelinks"
),
"soundcloud" => Array(
"Image" => "soundcloud-48x48.png",
"Target" => "http://soundcloud.com/",
"Title" => "Soundcloud"
),
"Rec6" => Array(
"Image" => "rec6-48x48.png",
"Target" => "http://www.syxt.com.br/rec6/link.php?url=PERMALINK&=TITLE",
"Title" => "Rec6"
),
"BlogMemes" => Array(
"Image" => "blogmemes-48x48.png",
"Target" => "http://www.blogmemes.net/post.php?url=PERMALINK&title=TITLE",
"Title" => "BlogMemes"
),
"BlogMemes Fr" => Array(
"Image" => "blogmemes-48x48.png",
"Target" => "http://www.blogmemes.fr/post.php?url=PERMALINK&title=TITLE",
"Title" => "BlogMemes Fr"
),
"BlogMemes Sp" => Array(
"Image" => "blogmemes-48x48.png",
"Target" => "http://www.blogmemes.com/post.php?url=PERMALINK&title=TITLE",
"Title" => "BlogMemes Sp"
),
"BlogMemes Cn" => Array(
"Image" => "blogmemes-48x48.png",
"Target" => "http://www.blogmemes.cn/post.php?url=PERMALINK&title=TITLE",
"Title" => "BlogMemes Cn"
),
"BlogMemes Jp" => Array(
"Image" => "blogmemes-48x48.png",
"Target" => "http://www.blogmemes.jp/post.php?url=PERMALINK&title=TITLE",
"Title" => "BlogMemes Jp"
),
"Slashdot" => Array(
"Image" => "slashdot-48x48.png",
"Target" => "http://slashdot.org/bookmark.pl?title=TITLE&url=PERMALINK",
"Title" => "Slashdot"
),
"Wists" => Array(
"Image" => "wists-48x48.png",
"Target" => "http://wists.com/s.php?c=&r=PERMALINK&title=TITLE",
"Title" => "Wists"
),
"Wikio" => Array(
"Image" => "wikio-48x48.png",
"Target" => "http://www.wikio.com/vote?url=PERMALINK",
"Title" => "Wikio"
),
"Wikio FR" => Array(
"Image" => "wikio-48x48.png",
"Target" => "http://www.wikio.fr/vote?url=PERMALINK",
"Title" => "Wikio FR"
),
"Wikio IT" => Array(
"Image" => "wikio-48x48.png",
"Target" => "http://www.wikio.it/vote?url=PERMALINK",
"Title" => "Wikio IT"
),
"NuJIJ" => Array(
"Image" => "nujij-48x48.png",
"Target" => "http://nujij.nl/jij.lynkx?t=TITLE&u=PERMALINK",
"Title" => "NuJIJ"
),
"Fleck" => Array(
"Image" => "fleck-48x48.png",
"Target" => "http://extension.fleck.com/?v=b.0.804&url=PERMALINK",
"Title" => "Fleck"
),
"Yigg" => Array(
"Image" => "yiggit-48x48.png",
"Target" => "http://yigg.de/neu?exturl=PERMALINK&exttitle=TITLE",
"Title" => "Yigg"
),
"Sphinn" => Array(
"Image" => "sphinn-48x48.png",
"Target" => "http://sphinn.com/submit.php?url=PERMALINK&title=TITLE",
"Title" => "Sphinn"
),
"Blogosphere News" => Array(
"Image" => 'blogospherenews-48x48.gif',
"Target" => 'http://www.blogospherenews.com/submit.php?url=PERMALINK&title=TITLE',
"Title" => "Blogosphere News"
),
'Blogsvine' => Array(
"Image" => 'blogsvine-48x48.png',
"Target" => 'http://blogsvine.com/submit.php?url=PERMALINK',
"Title" => "Blogsvine"
),
'blinkbits' => Array(
"Image" => 'blinkbits-48x48.png',
"Target" => 'http://www.blinkbits.com/bookmarklets/save.php?v=1&source_url=PERMALINK&title=TITLE&body=TITLE',
"Title" => "blinkbits"
),
'blogtercimlap' => Array(
"Image" => 'blogter-48x48.png',
"Target" => 'http://cimlap.blogter.hu/index.php?action=suggest_link&title=TITLE&url=PERMALINK',
"Title" => "Blogtercimlap"
),
'Faves' => Array(
"Image" => 'bluedot-48x48.png',
"Target" => 'http://faves.com/Authoring.aspx?u=PERMALINK&title=TITLE',
"Title" => "Faves"
),
'Book.mark.hu' => Array(
"Image" => 'bookmarkhu-48x48.png',
"Target" => 'http://book.mark.hu/bookmarks.php/?action=add&address=PERMALINK%2F&title=TITLE',
"Title" => "Book.mark.hu"
),
'Bumpzee' => Array(
"Image" => 'bumpzee-48x48.png',
"Target" => 'http://www.bumpzee.com/bump.php?u=PERMALINK',
"Title" => "Bumpzee"
),
'DotNetKicks' => Array(
"Image" => 'dotnetkicks-48x48.png',
"Target" => 'http://www.dotnetkicks.com/kick/?url=PERMALINK&title=TITLE',
"Title" => "DotNetKicks"
),
'GeenRedactie' => array(
"Image" => 'geenredactie-48x48.png',
"Target" => 'http://www.geenredactie.nl/submit?url=PERMALINK&title=TITLE',
"Title" => "GeenRedactie"
),
'Global Grind' => Array (
"Image" => 'globalgrind-48x48.gif',
"Target" => 'http://globalgrind.com/submission/submit.aspx?url=PERMALINK&type=Article&title=TITLE',
"Title" => "Global Grind"
),
'Gwar' => Array(
"Image" => 'gwar-48x48.gif',
"Target" => 'http://www.gwar.pl/DodajGwar.html?u=PERMALINK',
"Title" => "Gwar"
),
'Haohao' => Array(
"Image" => 'haohao-48x48.png',
"Target" => 'http://www.haohaoreport.com/submit.php?url=PERMALINK&title=TITLE',
"Title" => "Haohao"
),
'HealthRanker' => Array(
"Image" => 'healthranker-48x48.gif',
"Target" => 'http://healthranker.com/submit.php?url=PERMALINK&title=TITLE',
"Title" => "HealthRanker"
),
'Hemidemi' => Array(
"Image" => 'hemidemi-48x48.png',
"Target" => 'http://www.hemidemi.com/user_bookmark/new?title=TITLE&url=PERMALINK',
"Title" => "Hemidemi"
),
'IndianPad' => Array(
"Image" => 'indianpad-48x48.png',
"Target" => 'http://www.indianpad.com/submit.php?url=PERMALINK',
"Title" => "IndianPad"
),
'Internetmedia' => Array(
"Image" => 'im-48x48.png',
"Target" => 'http://internetmedia.hu/submit.php?url=PERMALINK',
"Title" => "Internetmedia"
),
'kick.ie' => Array(
"Image" => 'kickit-48x48.png',
"Target" => 'http://kick.ie/submit/?url=PERMALINK&title=TITLE',
"Title" => "kick.ie"
),
'laaik.it' => Array(
"Image" => 'laaikit-48x48.png',
"Target" => 'http://laaik.it/NewStoryCompact.aspx?uri=PERMALINK&headline=TITLE&cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12',
"Title" => "laaik.it"
),
'Leonaut' => Array(
"Image" => 'leonaut-48x48.gif',
"Target" => 'http://www.leonaut.com/submit.php?url=PERMALINK&title=TITLE',
"Title" => "Leonaut"
),
'LinkaGoGo' => Array(
"Image" => 'linkagogo-48x48.png',
"Target" => 'http://www.linkagogo.com/go/AddNoPopup?url=PERMALINK&title=TITLE',
"Title" => "LinkaGoGo"
),
'muti' => Array(
"Image" => 'muti-48x48.png',
"Target" => 'http://www.muti.co.za/submit?url=PERMALINK&title=TITLE',
"Title" => "muti"
),
'MyShare' => Array(
"Image" => 'myshare-48x48.png',
"Target" => 'http://myshare.url.com.tw/index.php?func=newurl&url=PERMALINK&desc=TITLE',
"Title" => "MyShare"
),
'N4G' => Array(
"Image" => 'n4g-48x48.gif',
"Target" => 'http://www.n4g.com/tips.aspx?url=PERMALINK&title=TITLE',
"Title" => "N4G"
),
'Ping.fm' => Array(
"Image" => 'ping-48x48.gif',
"Target" => 'http://ping.fm/ref/?link=PERMALINK&title=TITLE',
"Title" => "Ping.fm"
),
'PlugIM' => Array(
"Image" => 'plugim-48x48.png',
"Target" => 'http://www.plugim.com/submit?url=PERMALINK&title=TITLE',
"Title" => "PlugIM"
),
'ppnow' => Array(
"Image" => 'ppnow-48x48.png',
"Target" => 'http://www.ppnow.net/submit.php?url=PERMALINK',
"Title" => "ppnow"
),
'Ratimarks' => Array(
"Image" => 'ratimarks-48x48.png',
"Target" => 'http://ratimarks.org/bookmarks.php/?action=add&address=PERMALINK&title=TITLE',
"Title" => "Ratimarks"
),
'SalesMarks' => Array(
"Image" => 'salesmarks-48x48.gif',
"Target" => 'http://salesmarks.com/submit?edit[url]=PERMALINK&edit[title]=TITLE',
"Title" => "SalesMarks"
),
'Shadows' => Array(
"Image" => 'shadows-48x48.png',
"Target" => 'http://www.shadows.com/features/tcr.htm?url=PERMALINK&title=TITLE',
"Title" => "Shadows"
),
'Simpy' => Array(
"Image" => 'simpy-48x48.png',
"Target" => 'http://www.simpy.com/simpy/LinkAdd.do?href=PERMALINK&title=TITLE',
"Title" => "Simpy"
),
'Smarking' => Array(
"Image" => 'smarking-48x48.png',
"Target" => 'http://smarking.com/editbookmark/?url=PERMALINK&title=TITLE',
"Title" => "Smarking"
),
'Socialogs' => Array(
"Image" => 'socialogs-48x48.gif',
"Target" => 'http://socialogs.com/add_story.php?story_url=PERMALINK&story_title=TITLE',
"Title" => "Socialogs"
),
'SphereIt' => Array(
"Image" => 'sphere-48x48.png',
"Target" => 'http://www.sphere.com/search?q=sphereit:PERMALINK&title=TITLE',
"Title" => "SphereIt"
),
'Taggly' => Array(
"Image" => 'taggly-48x48.png',
"Target" => 'http://taggly.com/bookmarks.php/pass?action=add&address=',
"Title" => "Taggly"
),
'TailRank' => Array(
"Image" => 'tailrank-48x48.png',
"Target" => 'http://tailrank.com/share/?text=&link_href=PERMALINK&title=TITLE',
"Title" => "TailRank"
),
'Tipd' => Array(
"Image" => 'tipd-48x48.png',
"Target" => 'http://tipd.com/submit.php?url=PERMALINK',
"Title" => "Tipd"
),
'Webnews.de' => Array(
"Image" => 'webnews-48x48.gif',
"Target" => 'http://www.webnews.de/einstellen?url=PERMALINK&title=TITLE',
"Title" => "Webnews.de"
),
'Webride' => Array(
"Image" => 'webride-48x48.png',
"Target" => 'http://webride.org/discuss/split.php?uri=PERMALINK&title=TITLE',
"Title" => "Webride"
),
'Xerpi' => Array(
"Image" => 'xerpi-48x48.gif',
"Target" => 'http://www.xerpi.com/block/add_link_from_extension?url=PERMALINK&title=TITLE',
"Title" => "Xerpi"
),
'YahooMyWeb' => Array(
"Image" => 'yahoomyweb-48x48.png',
"Target" => 'http://myweb2.search.yahoo.com/myresults/bookmarklet?u=PERMALINK&=TITLE',
"Title" => "YahooMyWeb"
),
);
$services = array_map("setupArray", $services);
function setupArray($arrayItem) {
$permalink = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : 'http://www.blogolb.net';
$title = "testing";
$arrayItem["Target"] = str_replace("PERMALINK", $permalink, $arrayItem["Target"]);
$arrayItem["Target"] = str_replace("TITLE", $title, $arrayItem["Target"]);
return $arrayItem;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
body { font-family:arial; font-size:12px; text-align:center; }
div#wrapper { max-width: 860px; margin: auto; }
div#header { margin: 10px 0 5px; }
div#header a { color:#CC6600; font-family:Comic Sans MS,cursive; font-size:60px; font-weight:bold; letter-spacing:2px; text-decoration:none }
img { border: none; }
a { text-decoration: none; color:#393939; }
span { font-weight: bold; display:block; }
div.item { float: left; width: 80px; height: 70px; padding: 15px 10px 10px 10px; radius 10px; -moz-border-radius: 10px; }
div.item:hover { background: #dddddd; }
#content #search input { text-align: center; padding: 6px 15px; margin: 15px 0px; width: 50%; font-size: large; color: #000000; border: 1px solid #CC6600; -moz-border-radius: 12px 0 12px 0; -webkit-border-top-left-radius: 12px; -webkit-border-bottom-right-radius: 12px; border-radius: 12px; -khtml-border-radius: 12px 0 12px 0; box-shadow: 2px 2px 8px #CC6600; -moz-box-shadow: 2px 2px 8px #CC6600; -webkit-box-shadow: 2px 2px 8px #CC6600; }
</style>
<script type="text/javascript">
function search() {
try {
searchTerm = document.getElementById("s").value.toLowerCase();
elements = document.getElementById("items").getElementsByTagName("div");
for (var i = 0; i < elements.length; i++) {
if(elements[i].id.indexOf(searchTerm) != -1) {
elements[i].style.display = "block";
} else {
elements[i].style.display = "none";
}
}
} catch(error) {
alert(error);
}
}
</script>
</head>
<body>
<div id="wrapper">
<div id="header">
<a href="http://blogolb.net">ßlogolß</a>
</div>
<div id="content">
<div id="search">
<input id="s" type="text" onkeyup="search()" autocomplete="off" />
</div>
<div id="items">
<?php
foreach($services as $service) : ?>
<div class="item" id="<?php echo strtolower($service["Title"]); ?>">
<a href="<?php echo $service["Target"]; ?>" title="Bookmark @ <?php echo $service["Title"]; ?>">
<img src="images/<?php echo $service["Image"]; ?>" width="48px" height="48px" />
<span><?php echo $service["Title"]; ?></span>
</a>
</div>
<?php
endforeach;
?>
<div style="clear: both;" id="clear"></div>
</div>
</div>
</div>
</body>
</html>
View Answers