Star Trek: The Next Generation 20th Anniversary
STARTREK.COM

Star Trek
Star Trek: The Next Generation
Star Trek: Deep Space Nine
Star Trek: Voyager
Star Trek: Enterprise
Star Trek Movies

This page requires Macromedia Flash 6 plugin or higher. CLICK HERE TO DOWNLOAD >>
Instructions

Home :: Help / FAQ :: Headlines :: Instructions



STARTREK.COM Headlines For Your Web Site




To place STARTREK.COM headlines on your Web site, just follow these instructions.

Simple Method:
To simply place headlines on your page, add these two lines of HTML code to your page:

<script language="javascript" src="http://www.startrek.com/custom/headlines/links.js">
</script>

By including this line of code, your page will feature headlines that look like this:

Customized Method:
You can customize the appearance of the STARTREK.COM headlines on your Web site: you can choose how many headlines you want to see, pick the color of the link text, specify if you want a "bullet" and the publication date to appear with each headline, and more. You do this by declaring parameters that define your desired format.

To customize the headline feed, place this block of code in your page:

<script language="JavaScript">
<!--
var startrekcom_header = "none";
var startrekcom_linkcolor = "green";
var startrekcom_bullet = true;
var startrekcom_date = true;
var startrekcom_numheadlines = 4;
var startrekcom_table = false;
var startrekcom_newwindow = false;
// -->
</script>


Where you want the headlines to appear on your page, add these two lines of HTML code:
<script language="JavaScript" src="http://www.startrek.com/custom/headlines/links.js">
</script>

By including the additional code, your page will feature headlines that look like this:
The parameters you can set, and the values you can choose, are described here:
parameter setting effect
startrekcom_header = "none"; no header
startrekcom_header = "text"; text header
startrekcom_header = "image"; graphic header
startrekcom_linkcolor = "green"; green text links
startrekcom_linkcolor = "#FF0000"; red text links
(color name or number)
startrekcom_bullet = true; displays bullet before headline
startrekcom_bullet = false; no bullet
startrekcom_date = true; displays article date and
site section link
startrekcom_date = false; no date
startrekcom_numheadlines = "4"; displays four headlines
(1-10 headlines can be displayed)
startrekcom_table = true; displays as it would appear
on the STARTREK.COM site
startrekcom_table = false; no background color
startrekcom_newwindow = true; opens linked pages
in a new window
startrekcom_newwindow = false; opens linked pages
in the same window





Search
CBS/Paramount Television

This site and its contents TM & © 2007 CBS Studios Inc. All Rights Reserved.
STAR TREK and related marks are trademarks of CBS Studios Inc.
Privacy Policy | Terms of Use | Site Map | Help / FAQ | Contact Us | Advertise With Us