SitePoint Sponsor |
|
User Tag List
Results 1 to 7 of 7
-
Feb 17, 2000, 06:39 #1
- Join Date
- Aug 1999
- Posts
- 29
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
The Webmaster-Tribune runs an ad for moreover.com, which offers code to run news headlines on your site. I downloaded the code, but don't know how to implement it. They say just add code to page where you want headlines to appear, but obviously there's more to it because if I just "select all" on the code and copy to my page, I just get the code itself on the page, not the headlines. So I must have to select the part that gets pasted on the page, but what part? Has anyone used this who can help?
------------------
Parenting Adolescents
---Where parents & teens get expert answers for free.---
-
Feb 17, 2000, 09:16 #2
- Join Date
- Feb 2000
- Location
- NE FL, USA
- Posts
- 301
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Usually, just put the code into your text editor, where you want to headlines to go. I've used ISyndicate before, but never Moreover.com. If you're using a WYSIWYG editor, you will want to open the HTML inspector, or open the page's code in TextPad, or WordPad.
------------------
Street Bikers United
C&M Web Design
-
Feb 18, 2000, 07:50 #3
- Join Date
- Aug 1999
- Posts
- 29
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks to DynaMike for response. I understand how to paste the code into my HTML source code for the desired page. But it must be that you are to paste only a PART of the code, because when I paste everything moreover.com gives me, again, I just get the code itself displayed in the WYYSIWYG view of the page. Has anybody else used the moreover.com code who can help? Thanks a ton.
------------------
Parenting Adolescents
---Where parents & teens get expert answers for free.---
-
Feb 18, 2000, 09:05 #4
- Join Date
- Feb 2000
- Location
- NE FL, USA
- Posts
- 301
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Why don't you put the code here to let me see it? That would help. I've never had this problem with ISyndicate. I'm sure it's something really simple that you're just overlooking. A fresh set of eyes should help out.
Mike
-
Feb 18, 2000, 13:25 #5
- Join Date
- Aug 1999
- Posts
- 29
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Mike,
Thanks a lot. Here's the code:
<FORM>
<P>--------------------------------------------------------------------------------
<MOREOVER_CLONE_JAVASCRIPT_START_DO_NOT_DELETE> <SCRIPT LANGUAGE="Javascript">//
the array global_article is used to allow multiple categories
var global_article = new Array() var global_article_counter =
0 var article = null var early_exit = 0 // do not remove this
function clone() function clone() { var newwin = window.open("","clone","resizable,scrollbars,width=500"
return true } // end of do not remove this function clone() </SCRIPT><SCRIPT LANGUAGE="Javascript"
SRC="http://www.moreover.com/cgi-local/page?index_useducation+js"></SCRIPT><SCRIPT LANGUAGE="Javascript">//
load global_article array with articles from cluster if (article
!= null) { for (var article_counter = 0; article_counter <
3; article_counter++) { global_article[global_article_counter]
= article[article_counter] global_article_counter++ } } else {
if (early_exit == 0) { document.writeln("</P>
<P><CENTER>Please reload this page to view the headlines</CENTER></P>
<P>"early_exit = 1 } } </SCRIPT><SCRIPT LANGUAGE="Javascript">if
(early_exit == 0) { var width = "400" var category =
"" var numberofarticles = global_article.length var
item_spacing = "5" var cluster_bgcolor = "feffdc"
var cluster_border = "0" var heading_display = "Yes"
var time_display = "No" var cell_spacing = "0"
var cell_padding = "1" var heading_bgcolor var heading_font
var heading_font_size var heading_fgcolor var headline_bgcolor
var headline_font var headline_font_size var headline_fgcolor
var source_font var source_font_size var source_fgcolor var access_font
var access_font_size var access_fgcolor var time_font var time_font_size
var time_fgcolor var time = new Array(global_article.length) //
Print out the table containing the headlines document.writeln("</P>
<P><CENTER><TABLE BORDER="1" BGCOLOR="#"+cluster_bgcolor+""
WIDTH="1" CELLPADDING="2" CELLSPACING="0">
") // branding image document.writeln("
<TR>
<TD>
<P><CENTER>&
</FORM>
<FORM>
<TABLE BGCOLOR="#"+cluster_bgcolor+"" CELLPADDING="0"
CELLSPACING="0" WIDTH="100%" BORDER="0">
") // Start loop for articles for (var counter=0; counter < numberofarticles; counter++) { // Reset formatting settings to original values heading_bgcolor = "feffdc" heading_font = "Verdana, Arial,Helvetica, sans-serif" heading_font_size = "-1" heading_fgcolor = "333333" headline_bgcolor = "feffdc" headline_font = "Verdana, Arial,Helvetica, sans-serif" headline_font_size = "-1" headline_fgcolor = "333333" source_font = "Verdana, Arial,Helvetica, sans-serif" source_font_size = "-2" source_fgcolor = "800000" access_font = "Verdana, Arial,Helvetica, sans-serif" access_font_size = "-2" access_fgcolor = "800000" time_font = "Verdana, Arial,Helvetica, sans-serif" time_font_size = "-2" time_fgcolor = "800000" // Put any conditional format settings here (see 'Instructions for use') // Check for new category if ((category != global_article[counter].cluster) &(heading_display == "Yes")) { // Set current category to new category category = global_article[counter].cluster // Print a new category heading document.writeln("
<TR BGCOLOR="#"+heading_bgcolor+"">
<TD>
"document.writeln("<FONT SIZE="+heading_font_size+"
FACE="+heading_font+" COLOR='#"+heading_fgcolor+"'>"document.writeln("<B>"+global_article[counter].cluster+"</B></FONT></TD>
</TR>") } // Print out the headline document.writeln("
<TR BGCOLOR="#"+headline_bgcolor+"">
<TD>
<A HREF="+global_article%5Bcounter%5D.url+" TARGET="_blank">"
document.writeln("<FONT SIZE="+headline_font_size+"
FACE="+headline_font+" COLOR='#"+headline_fgcolor+"'")
document.writeln(">"+global_article[counter].headline_text+"...</FONT></A>"
// Print out the source document.writeln("<A HREF="+global_article%5Bcounter%5D.document_url+"
TARGET="_blank">"document.writeln("<FONT FACE="+source_font+"
SIZE="+source_font_size+" COLOR='#"+source_fgcolor+"'>"
document.writeln(""+global_article[counter].source+"</FONT></A>"
// Print out reg/sub if appropriate if (global_article[counter].access_status
== "sub" | | global_article[counter].access_status ==
"reg"{ document.writeln(" <A HREF="%22+global_article%5Bcounter%5D.access_registration+%22">"
document.writeln("<FONT FACE="+access_font+"
SIZE="+access_font_size)
document.writeln("
COLOR='#"+access_fgcolor+"'>"+global_article[counter].access_status+"</FONT></A>"
} // Print out the harvest time if (time_display == "Yes"
{ // Make a new date object time[counter] = new Date(global_article[counter].harvest_time)
time[counter].setHours(time[counter].getHours() - (time[counter].getTimezoneOffset()
/ 60 )) // adjust the time to local document.writeln("<FONT FACE="+time_font+"
SIZE="+time_font_size+" COLOR='#"+time_fgcolor+"'>"document.writeln(" "+time[counter].toString()+"</FONT>"
} document.writeln("</TD>
</TR>
<TR BGCOLOR="#"+headline_bgcolor+"">
<TD BGCOLOR="#000000" HEIGHT="1"></TD>
</TR>") } // End of article loop // Start of cloning button code // // Note: Do not remove any of the code in this section // document.writeln("
<TR>
<TD>
<P><CENTER>"document.writeln("<INPUT TYPE="hidden"
NAME="heading_font_size" VALUE="-1"><INPUT TYPE="hidden" NAME="source_font_size"
VALUE="-2">"document.writeln("<INPUT TYPE="hidden"
NAME="cluster_width" VALUE="400"><INPUT TYPE="hidden" NAME="time_display"
VALUE="No">"document.writeln("<INPUT TYPE="hidden"
NAME="time_font" VALUE="Verdana, Arial,Helvetica, sans-serif"><INPUT
TYPE="hidden" NAME="cluster_cellspacing" VALUE="0">"document.writeln("<INPUT
TYPE="hidden" NAME="heading_font" VALUE="Verdana, Arial,Helvetica, sans-serif"><INPUT
TYPE="hidden" NAME="number_of_headlines" VALUE="3">"document.writeln("<INPUT
TYPE="hidden" NAME="cluster_bgcolor" VALUE="feffdc"><INPUT TYPE="hidden"
NAME="time_fgcolor" VALUE="800000">"document.writeln("<INPUT
TYPE="hidden" NAME="access_fgcolor" VALUE="800000"><INPUT TYPE="hidden"
NAME="time_font_size" VALUE="-2">"document.writeln("<INPUT
TYPE="hidden" NAME="headline_bgcolor" VALUE="feffdc"><INPUT
TYPE="hidden" NAME="cluster_name" VALUE="index_useducation">"
document.writeln("<INPUT TYPE="hidden" NAME="access_font_size"
VALUE="-2"><INPUT TYPE="hidden" NAME="heading_display" VALUE="Yes">"
document.writeln("<INPUT TYPE="hidden" NAME="headline_fgcolor"
VALUE="333333"><INPUT TYPE="hidden" NAME="source_font" VALUE="Verdana,
Arial,Helvetica, sans-serif">"document.writeln("<INPUT
TYPE="hidden" NAME="access_font" VALUE="Verdana, Arial,Helvetica, sans-serif"><INPUT
TYPE="hidden" NAME="headline_font_size" VALUE="-1">"document.writeln("<INPUT
TYPE="hidden" NAME="headline_font" VALUE="Verdana, Arial,Helvetica, sans-serif"><INPUT
TYPE="hidden" NAME="heading_bold" VALUE="Yes">"document.writeln("<INPUT
TYPE="hidden" NAME="item_spacing" VALUE="5"><INPUT TYPE="hidden"
NAME="wizard_brand" VALUE="moreover">"document.writeln("<INPUT
TYPE="hidden" NAME="heading_bgcolor" VALUE="feffdc"><INPUT TYPE="hidden"
NAME="cluster_cellpadding" VALUE="1">"document.writeln("<INPUT
TYPE="hidden" NAME="heading_fgcolor" VALUE="333333"><INPUT TYPE="hidden"
NAME="source_fgcolor" VALUE="800000">"document.writeln("<INPUT
TYPE="hidden" NAME="cluster_border" VALUE="0"><INPUT TYPE="hidden"
NAME="cluster_layout" VALUE="">"document.writeln("<INPUT
SRC="http://i.moreover.com/pics/clone_button.gif" TYPE="image"
BORDER="0" ALT="powered by moreover.com" ALIGN="BOTTOM">"
document.writeln("</CENTER></TD>
</TR>") // End of cloning button code // document.writeln("
</TABLE></CENTER></TD>
</TR>
</TABLE></CENTER></P>
<P>"// ************************************************************************************
// You may copy and distribute verbatim or modified copies of
the Program's source code // as you receive it, in any medium,
provided that you conspicuously and appropriately // publish on
each copy this copyright notice and disclaimer of warranty shown
below; // do not delete the Start and End tags clearly marked
DO NOT DELETE; any modifications // you make and their dependent
functions are within the Start and End tags; do not // remove
the cloning button or it's code clearly marked DO NOT REMOVE;
and give any // other recipients of the Program a copy of this
License along with the Program. // // You are not required to
accept this License, since you have not signed it. However, //
nothing else grants you permission to modify or distribute the
Program or its derivative // works. These actions are prohibited
by law if you do not accept this License. Therefore, // by modifying
or distributing the Program (or any work based on the Program),
you indicate // your acceptance of this License to do so, and
all its terms and conditions for copying, // distributing or modifying
the Program or works based on it. // // BECAUSE THE PROGRAM IS
LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM,
// TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE
STATED IN WRITING THE // COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY // OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE. THE ENTIRE RISK AS // TO THE QUALITY AND
PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
// DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION. // // Copyright 1999 Moreover.com Inc. All
rights reserved. // *************************************************************************************
} </SCRIPT><MOREOVER_CLONE_JAVASCRIPT_END_DO_NOT_DELETE></FORM>
Jean.
-
Feb 18, 2000, 13:51 #6
- Join Date
- Aug 1999
- Location
- Lancaster, Ca. USA
- Posts
- 12,305
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
That is how it is pasted on your site??? If that is the case it may be part of the problem as your spacing it very off with improper line returns. I know you can use javascript without line returns but you need to separate each statement with a semi-colon.
Also you have double qoutes within double quote strings. I.E. "<table border="1">" which should be "<table border='1'>"
I would try copying the code again and retaining the formatting that MoreOver provides for it to work properly. If it still doesn't work send an email to their customer support and ask that they help you.
------------------
Wayne Luke
Internet Media Provider
-
Feb 18, 2000, 16:31 #7
- Join Date
- Jul 1999
- Location
- California USA
- Posts
- 1,071
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Try only using only the following on your page and not anything else:
<SCRIPT LANGUAGE="Javascript"
SRC="http://www.moreover.com/cgi-local/page?index_useducation+js"></SCRIPT>
This was all that I did when I imported the MoreOver snippet on our PPSV Headline News Page just recently.
I think that you just imported too much - Give this a try
------------------
WebKat's PawPrints
Professional Photographers of Sacramento Valley
Bookmarks