Tải bản đầy đủ - 0 (trang)
Hack 36. Embed a Presentation in Your Web Page

Hack 36. Embed a Presentation in Your Web Page

Tải bản đầy đủ - 0trang

NOTE

Notethatatthetimeofthiswriting,youcannot

successfullychangethewidthandheightattributesof

theHTMLsnippet—yourminipresentationwillalways

remainfixedat410x342resolution.

IfyoucareaboutHTMLaccessibility,includeaplainlink

tothepublishedpresentationbetweentheopeningand

closingiframetagslikethis:
href="...">Mypresentation.Thislink

letsyourreadersfindyourpresentationeveniftheyare

usingatoolthatdoesn'tsupportinlineframes—say,

certainRSSfeedreaders(toolsandbrowsersthatdo

supportiframeswilljusthideyouralternativelink).And

ifyoucareaboutHTMLvalidation,notethatyouneedto

makesureyourHTMLdocumentconformstothe

"transitional"documenttypefortheiframeelementto

bevalid.Totryvalidatingyoursite,pointyourbrowser

tohttp://validator.w3.organdenteryoursite'sURL.

(NoteveryerrorpointedoutbytheWorldWideWeb

Consortium'svalidatorwillcausetroublesinpopular

browsers,thoughsomeoftheerrorsmaydoso.)



Anykindofwidgetembeddedinyourwebsite

mayslowdowntheloadingtimeofyourpage;

thisincludesminipresentations.Don'tshyaway

fromusingwidgets,butdotestyoursiteevery

nowandthen,andtrynottoincludetoomanyof

them.





TheresultisanembeddedGooglepresentation,withall

imagesandtextscaleddownforminiaturereading



Hack37.DragandDropImagesfrom

OtherWebSites

Includeanothersite'simageswithoutsavingthemlocallyfirst.

ThisfeatureofGooglePresentationsisabitofararityamong

webapplications,soitcouldeasilygetlost,althoughit'sreally

useful:youcandraganddropimagesfromotherwebsitesinto

yourpresentation,asshowninFigure4-13.Justopentwo

browserwindowssidebyside,clickandholdtheleftmouse

buttononthepicture,anddragitintoablankspotwithinyour

presentationslide.(Notethatthiscreatesacopyoftheoriginal

imageonGoogle'sservers,sotheoriginalserverwillnotneed

tobearthebandwidthburdenwhenpeopleviewtheimagein

yourpresentation.)

DroppingtheFlickrimageintotheslide



Ifyouplantopublishyourpresentation,makesureyouare

withinyourrightstousetheimage:eitherensurethatyouare

workingwithintheprinciplesofFairUse(websitessuchas

http://copyright.gov/fls/fl102.htmland

http://fairuse.stanford.eduhaveextensiveinformationonFair

Use)orchooseanimagethathasalicensepermittingyouto



shareit[Hack#31].Forinstance,thephotoI'musinginthe

figureisbyHildoTrazo,whowasniceenoughtoreleaseit

underaCreativeCommonsAttributionlicense.Thelicense

requiresmetoaddthenecessarycreditswithinthe

presentationbeforepublishingit.



NOTE

Theimagefilesizewillremainthesameasthesource

file,evenifyouresizetheimagewithinyour

presentation,soyoumaybebetteroffsavingitlocally

firstandresizingit[Hack#32].



Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Hack 36. Embed a Presentation in Your Web Page

Tải bản đầy đủ ngay(0 tr)

×