Solved

Java NewsFeed to work with Vertical Scroller

Posted on 2003-11-21
4
516 Views
Last Modified: 2010-05-18
I am trying to get this Java NewsFeed from prweb.com to work with this Vertical Scroller. I don't have enough java experience to do this. Any Help would be appreciated.

The first part of the Java Script is the NewsFeed and the Scroller part is separted by ---.

You can download the scroller at http://www.pikeus.freeserve.co.uk/applets/scrollitup/scrollitup.html
and the NewsFeed Script is at http://www.prweb.com/rss.php

I am also looking for an alternate solution if this can't be done, but needs to work with this NewsFeed. I also would like to be able to control the up & down text. You can also use an XML link if it makes it easier http://www.prweb.com/xml/environment.xml


<script language="JavaScript1.1" src="HTTP://environment.news.prweb.com/js/index.php?expand=y&limit=10"></script><script language="JavaScript1.1">
<!--
var channel_begin = '';
var item_begin = '<li>';
var item_end = '</li>';  
var channel_end = '';
var list_begin = '<ul>';
var list_end = '</ul>';
var link_target = '_blank';
var show_title = true;

// Error message for unsupported browsers.

if(!(window.channels)) { document.write('Sorry! Your browser is unable to retrieve JavaScript channels.') }

// -->

</script>
<script language="JavaScript1.1" src="HTTP://www.prweb.com/js/channel_renderer.js"></script><noscript>Sorry! Your browser is unable to retrieve PRWEB.COM JavaScript news feed.</noscript>

---------------------------------------------------------------------------------------------------------

<HTML>
<HEAD>
<TITLE>Applets</TITLE>
<STYLE>
      A{text-decoration:none}  
      A:hover{color:3333ff; text-decoration:underline}  
      A{text-decoration:none; font-weight:bold}
      A.b{color:cceeff;text-decoration:none}
      A.b:link{color:aaccdd; text-decoration:none}
      A.b:hover{color:ffff33; text-decoration:none}
      A.b:active{color:ffff33; text-decoration:none}
</STYLE>
</HEAD>
<BODY LINK="000099" ALINK="000099" VLINK="000099" BACKGROUND="../../main/back.gif" TOPMARGIN="0" LEFTMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0">

<TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BGCOLOR="000000" BORDER="0">
      <TR>
            <TD WIDTH="100%" BGCOLOR="000000">
            <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="1" BORDER="0">
                  <TR>
                        <TD WIDTH="100%" BGCOLOR="4477aa">
                        <TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0">
                              <TR>
                                    <TD WIDTH="100%">
                                    <FONT FACE="Verdana, Arial" SIZE="1" COLOR="cceeff">
                                    <b>&nbsp;Applets&nbsp;</b>
                                    </FONT>
                                    </TD>
                              </TR>
                        </TABLE>
                        </TD>
                  </TR>
            </TABLE>
            </TD>
      </TR>
</TABLE>

<TABLE WIDTH="100%" CELLPADDING="25" CELLSPACING="0">
      <TR>
            <TD ALIGN="left">
            <TABLE WIDTH="510" CELLPADDING="0" CELLSPACING="0" BORDER="0">
                  <TR>
                        <TD WIDTH="510">
                        <FONT FACE="verdana,arial" SIZE="2" COLOR="115577">
                        <b>ScrollItUp</b><br>
                        </FONT>
                        <br>
                        </TD>
                  </TR>

                  <TR>
                        <TD ALIGN="center" WIDTH="510">
                        <br>
                        <APPLET CODE="ScrollItUp.class" ARCHIVE="ScrollItUp.jar" WIDTH="300" HEIGHT="153">
                        <PARAM NAME="bgcolor" VALUE="668899">
                        <PARAM NAME="outlinecolor" VALUE="000000">
                        <PARAM NAME="scrollbgcolor" VALUE="000000">
                        <PARAM NAME="fontcolor" VALUE="ffff00">
                        <PARAM NAME="hovercolor" VALUE="00ff00">
                        <PARAM NAME="linkcolor" VALUE="ff0000">
                        <PARAM NAME="fontface" VALUE="arial">
                        <PARAM NAME="fontstyle" VALUE="plain">
                        <PARAM NAME="fontbold" VALUE="off">
                        <PARAM NAME="fontsize" VALUE="14">
                        <PARAM NAME="textfile" VALUE="test.txt">
                        <PARAM NAME="brakes" VALUE="55">
                        <PARAM NAME="margin" VALUE="5">
                        </APPLET>
                        <br><br>
                        </TD>
                  </TR>

                  <TR>
                        <TD WIDTH="510">
                        <FONT FACE="Verdana, Arial" SIZE="2" COLOR="000000">
                        <b>Size...</b> 7.41K<br>
                        <br>
                        <b>Download size...</b> 50.3K<br>
                        <br>
                        <b>What does it do?</b><br>
                        <br>
                        The ScrollItUp applet scrolls text vertically.  Incorporates URL links, configurable text color (including link color, and hover color), font style and size, and target frame for links to go to. Text remains the same style throughout the scroll.  Includes stop, rewind and forwardwind buttons.  Applet sets the layout to fit whatever size you specify the applet to be.<br>
                        <br>
                        <b>The bits you need</b><br>
                        <A HREF="parameters.txt">HTML Code & Configuration Info</A> - cut and paste into an HTML document.<br>
                        <A HREF="ScrollItUp.exe"><IMG SRC="../downloadit.gif" BORDER="0" ALIGN="absbottom" HSPACE="5">DOWNLOAD</A> this page and linking info as a self-extracting zip file.<br>
                        </FONT>
                        </TD>
                  </TR>
            </TABLE>
            </TD>
      </TR>
</TABLE>

<TABLE WIDTH="100%" CELLPADDING="5" CELLSPACING="0" BORDER="0">
      <TR>
            <TD ALIGN="left" BGCOLOR="000000">
            <FONT SIZE="1" FACE="Verdana, Arial" COLOR="ffffff">
            &nbsp;Copyright © 2000 Pikeus - All Rights Reserved &nbsp;|&nbsp; <A CLASS="b" HREF="mailto:c@pikeus.freeserve.co.uk">&nbsp;c@pikeus.freeserve.co.uk&nbsp;</A> &nbsp;|&nbsp; <A CLASS="b" HREF="http://www.pikeus.co.uk" TARGET="_blank">www.pikeus.co.uk - home</A><br>
            </FONT>
            </TD>
      </TR>
</TABLE>

</BODY>
</HTML>
0
Comment
Question by:cadalist
4 Comments
 
LVL 11

Expert Comment

by:Zontar
ID: 9802153
I don't think you're going to be able to use the two of these together. The applet appears to require a separate text file, which the newfeed script doesn't provide.

The way I'd go about this for my own site would be to:

1. Write a serverside script to parse the RSS feed and output HTML.

2. Use a serverside include to include the generated HTML into the page.

3. Use DOM scripting (not a Java applet) to make the HTML scroll.

What I'd do if I were you is to find a DHTML/DOM scroller script that will act on content in the page, say on a DIV with a given id. Then you can call the channel renderer script to generate the headlines HTML inside a DIV with that id.
0
 

Author Comment

by:cadalist
ID: 9807054
Zontar thanks for your response but I am fairly new with Java Applets and I don't know how to do what you are suggesting.

I don't even know where the DHTML/DOM scroller is?
0
 
LVL 16

Expert Comment

by:jaysolomon
ID: 10383550
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

PAQ with points refunded

Please leave any comments here within the next four days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jAy
EE Cleanup Volunteer
0
 

Accepted Solution

by:
SpazMODic earned 0 total points
ID: 10420414
PAQed, with points refunded (250)

SpazMODic
EE Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now