Mobile app version of vmapp.org
Login or Join
Nimeshi995

: IFrames from Skydrive: yes, no, how I have a two-pronged question. First: SEO Concerns aside, should I be concerned about using iFrames on my site as far as viruses etc go? I am using skydrive

@Nimeshi995

Posted in: #Html #Iframe #Images #Security #WebHosting

I have a two-pronged question.

First: SEO Concerns aside, should I be concerned about using iFrames on my site as far as viruses etc go? I am using skydrive to host my images and it provides an iFrame embed code that's almost exactly what I am looking for. Since it's just hosting images, I am not worried about SEO, but I am worried about any vulnerabilities this might open me or my users to. Have iFrames been completely abandoned by the web community due to safety concerns, or are they okay to use again? (*Using img src is simple enough, I just don't want to have to tap out all of the dimensions since skydrive provides me the code.)

Second: If I do use the iFrame code, how do I add a modifier to have the text wrap next to the image? I have two lines with two pics, then one line with one pic but the text begins at the base of the image instead of the top, thus leaving only one line of text instead 238px. To my knowledge, align = left | right | center wouldn't work.

Here's what I have from skydrive:


<iframe title ="Preview" scrolling="no" marginheight="0" marginwidth="0" frameborder="0" style="width:320px;height:238px;padding:0;background-color:#fcfcfc;" src="http://[blah-blah.com/img].jpg"></iframe>


(*Unfortunately I am unable to use the direct URL [blah-blah/img].jpg as it is popping broken images, likely a permissions for linking thing)

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Nimeshi995

1 Comments

Sorted by latest first Latest Oldest Best

 

@Pierce454

I think you mean you want to float the Iframe not align it.

<style>
iframe{float:left;}
</style>


As for using iFrames, it's discouraged and people using ad-blockers may not see your images. Most AD's use iframes to host their images and content so it's often ignored on websites when an adblocker is turned on.

Cool trick though just between you and me, you can place content inside the iFrame tag that will be displayed if the iFrame is rejected by an Ad-Blocker.

<iframe title ="Preview" scrolling="no" marginheight="0" marginwidth="0"
frameborder="0" style="width:320px;height:238px;padding:0;background-color:#fcfcfc;"
src="http://[blah-blah.com/].jpg">
Sorry but Ad Blocking software may have disabled your ability to see this content.
Please disable your Ad-Blocking software to see this content.</iframe>

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme