2010-12-11 15 views

risposta

5

uso Fancybox iframe

<a href="sample.php">This goes to iframe</a> 

e in uso sample.php Google Document Viewer

<iframe src="http://docs.google.com/gview? url=http://smrtbrand.com/pdfs/SMRT.newbaby.chcklst.pdf&embedded=true" 
style="width:600px; height:500px;" frameborder="0"></iframe> 
+0

Sarà questo richiede loro di avere account Google? – Tom

+0

aspetta ... ho capito. Sembra che parte del codice sopra sia stato ritagliato – Tom

+0

Questo è quello che ho finito, sono andato qui http://docs.google.com/viewer Ha generato il documento, copiato il codice iframe. Poi gettò che su una pagina separata e ha chiamato la casella di fantasia utilizzando il jQuery \t \t \t $ ("fancyFrame.") Fancybox ({ 'frameWidth':. 700, 'frameHeight': 600, 'overlayShow': vero, ' hideOnContentClick ': false}); – Tom