i don't think it can damage your site rankings with those format, as long as you implement it right..
iFrame is not good for SEO anyways; google recommends not to use it. javascript is a better alternative.