Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SEO friendly alternative for an iframe?

I have some content I would like to share with other websites.

Currently I do this via an iframe:

<iframe width=“540”; height=“700” frameborder=“0” src=“http://www.energiekostencalculator.nl/forms/frame_tabs.php?first=yes&product=1&links=1&css=http://www.energiekostencalculator.nl/forms/susteen.css”></iframe>

This has two problems.

  • It is not SEO friendly. The links on the content of the iframes do not count as inbound links since they page is hosted on my server.
  • It is (on my server anyway) not possible to link outside css stylesheets to the content of the iframe. The objective is to allow other websites to easily link their stylesheet to my content.

Who has the solution to these issues? Perhaps using jquery (see below), however I'm not sure Google would parse it and "see" the links...

<html>
<head>
<script src="/js/jquery.js" type="text/javascript">
</head>
<body>
<div id='include-from-outside'></div>
<script type='text/javascript'>
$('#include-from-outside').load('http://example.com/included.html');
</script>
</body>
</html>
like image 424
san an to anto nou Avatar asked Oct 26 '25 09:10

san an to anto nou


1 Answers

Have a look at how TripAdvisor does it - a static link and then javascript to replace it once the page has loaded.

<div id="TA_rated459" class="TA_rated">
<ul id="JRrkXsd6H" class="TA_links GYO6Zcd">
            <li id="IN1Gc4AMw8T" class="zQkgIs4xdv"><a href=http://www.tripadvisor.com/Hotel_Review-g294207-d501440-Reviews-Ngong_House-Nairobi.html>Ngong House</a></li>
      </ul>
  </div>
<script src="http://www.jscache.com/wejs?wtype=rated&amp;uniq=459&amp;locationId=501440&amp;lang=en_US"></script>
like image 156
sunn0 Avatar answered Oct 28 '25 21:10

sunn0



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!