Adding Links

At the bottom of each Gospel.com Topic page you'll find a Javascript snippet.

Screenshot of where to find javascript links.

Copy-and-paste this snippet into your own web page where you want the links to show up. You're done!

Customizing the links

We do offer a few customizations:

1. Customize the number of links

You can customize the number of links show -- between 1 and 10 -- by adding a count parameter to the end of the src attribute :

<script src="http://www.gospel.com/js/topic/bible?count=2" type="text/javascript"></script>

The default number of links is 5.

2. Customize how links work

You can change this behavior by adding the new_window parameter to the end of the src attribute :

<script src="http://www.gospel.com/js/topic/bible?new_window=no" type="text/javascript"></script>

By default links open up in a new window. Setting new_window to no will open in the existing window.

3. Customize how links look

You can customize how the links look by using Cascading Stylesheets, or CSS. Explaining how CSS works is beyond the scope of this tutorial, but trust us: it's really not that hard. Here's some good links to get you started :

Here is a sample of the HTML that the Javascript snippet places on your site :

<div class="gospeldotcomlinks" id="topic-[name]">
  <ul>
    <li>
      <span class="headline"><a href="[link]">[headline]</a></span>
      <div class="description">[description]</div>
    </li>
    <li>
      <span class="headline"><a href="[link]">[headline]</a></span>
      <div class="description">[description]</div>
      </li>
  </ul>
  <div class="creditfooter">
    <a href="_blank" href="http://www.gospel.com>Links provided by Gospel.com</a>
  </div>
</div>

“If I speak in the tongues of men or of angels, but do not have love, I am only a resounding gong or a clanging cymbal. If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but do not have love, I am nothing. If I give all I possess to the poor and give over my body to hardship that I may boast, but do not have love, I gain nothing.”
- 1 Corinthians 13:1-3
Today's passage is from the New International Version of the Bible
Powered by BibleGateway.com