开发者

how to set iframe src to local file

I have an iframe in my HTML, where i would like to play mpeg/mpg files from local folder, but i can't load the video into the iframe. when i set src="http://www.google.com", it is displayed in the iframe, but if i try src="file:///C:/Documents%20and%20Settings/jgabotero/Desktop/sample.jpg" it doesn't disp开发者_开发百科lay the image.

How can i set the src property of iframe to point to local files, specially the ones stored in IsolatedStorage?

Thank you in advance.

-- julie


i think you can't display files in iframe form your computer using file:// its a security issue.

I also think you can't display images in iframe, ue an html or ohp page, to do this, so put the image in a html file, and link the iframe to this html file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜