Facebook 2008 FBML Betriebsanweisung Seite 66

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 159
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 65
facebook FBML Reference Guide Page 66 of 159
Fb:user-agent
Description
Displays the contents wrapped inside the tag to the specified user-agents. You can use fb:user-agent on the
canvas page and the profile box. It serves as a tool to deal with browser idiosyncrasies.
User-Agent Resources
http://www.user-agents.org/index.shtml - a list of common user agent strings
http://whatsmyuseragent.com/ - what is your user agent string?
Attributes
Required Name Type Description
required includes
string
A comma-delimited list of strings to test for inclusion against the HTTP
request's user-agent string. If a given include string matches the user-agent
string, the content inside the include tag appears; otherwise it does not.
optional excludes
string
A comma-delimited list of strings to test for exclusion against the HTTP
request's user-agent string. If a given include string matches the user-agent
string, the content inside the include tag does not appear; otherwise it does
appear.
Examples
<fb:user-agent includes="ie 6,ie 7">
Hi IE 6/7 users.
</fb:user-agent>
<fb:user-agent excludes="firefox">
Hi people not using Firefox.
</fb:user-agent>
<fb:user-agent includes="mozilla" excludes="firefox/2.0">
Hi Mozilla (but not Firefox 2.0) users.
</fb:user-agent>
<fb:user-agent includes="ie" excludes="ie 6">
Hi IE (but not IE 6) users.
</fb:user-agent>
www.yapish.com
Seitenansicht 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 158 159

Kommentare zu diesen Handbüchern

Keine Kommentare