Results 1 to 8 of 8

Thread: Need to remove feed link in jscheuer1's modified cross browser marque II

  1. #1
    Join Date
    May 2008
    Posts
    91
    Thanks
    35
    Thanked 0 Times in 0 Posts

    Default Need to remove feed link in jscheuer1's modified cross browser marque II

    1) Script Title: Cross Browser marquee II

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/cmarquee2.htm

    3) Describe problem: John modified the script on the linked page to accommodate the news feed link. Now it appears the source of the news feed is no longer a live site. Consequently, the page takes forever to load. I tried removing various lines of code with no luck. Would you please take a look.
    http://www./index-marquee-2014.htm
    Many thanks.
    Last edited by printman55; 01-17-2014 at 08:32 PM. Reason: URL security

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    It looks like the feed is still there, just takes a long time to load. Ways to avoid that is to get the feed on a faster server, or get a different feed, or use hard coded content for the marquee, or get rid of the marquee altogether. There could be others.

    Simple answer - add the red comment tokens as shown:

    Code:
    </table>
    <div style="display:none;"><div id="tempfeed"><!-- <script type="text/javascript"src="http://www.freshcontent.net/financial_news_feed.php"></script> --></div></div>
    
    </body>
    </html>
    Last edited by jscheuer1; 01-17-2014 at 05:33 AM. Reason: add simple solution
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    May 2008
    Posts
    91
    Thanks
    35
    Thanked 0 Times in 0 Posts

    Default

    I took the simple answer. Thanks. This will work great until I can find another news source. I also deleted the link to Freshcontent.net, but found that I needed to keep the <code> <div class="feeddest"></div> </code>for the scroll to work. Not sure why that is. Not seeing reference to that div. Also noticed the scrolling text sometimes goes outside the red border at the bottom?

  4. #4
    Join Date
    May 2008
    Posts
    91
    Thanks
    35
    Thanked 0 Times in 0 Posts

    Default

    The scrolling text going outside the bottom border occurs in Firefox, but not in IE or Chrome.

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    About getting a new feed. If your server has PHP 5.3 or better, and permission to read/write files and to fetch other domain files, and the feed is a true xml feed, I have a fairly simple feed fetching code you can use. I don't see any problem in Firefox.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. The Following User Says Thank You to jscheuer1 For This Useful Post:

    printman55 (01-17-2014)

  7. #6
    Join Date
    May 2008
    Posts
    91
    Thanks
    35
    Thanked 0 Times in 0 Posts

    Default

    What is the code
    Code:
    <div class="feeddest"></div>
    in the var marqueecontent section doing?
    Last edited by jscheuer1; 01-17-2014 at 07:57 PM. Reason: Format

  8. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    It's the target for these two lines:

    Code:
    cross_marquee.getElementsByTagName('div')[0].innerHTML = document.getElementById('tempfeed').innerHTML;
    cross_marquee2.getElementsByTagName('div')[0].innerHTML = document.getElementById('tempfeed').innerHTML;
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  9. The Following User Says Thank You to jscheuer1 For This Useful Post:

    printman55 (01-17-2014)

  10. #8
    Join Date
    May 2008
    Posts
    91
    Thanks
    35
    Thanked 0 Times in 0 Posts

    Default

    John, Thanks for all your help. Not sure if I am going to add another feed, but I will definitely keep the feed code offer in mind.

Similar Threads

  1. Crossbrowser Marque
    By annasue in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 12-20-2012, 08:37 AM
  2. background colour on marquee II scroller (Modified by jscheuer1) disappears
    By mannkumar in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 05-18-2010, 09:30 PM
  3. Modified Cross Browser Marquee II - Only works in IE!
    By mddubs in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 07-30-2008, 06:07 PM
  4. How do you change the LINK color in the Cross Browser marquee script? HELP!
    By sweetbajan in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 10-29-2006, 07:15 AM
  5. Replies: 3
    Last Post: 07-14-2005, 07:01 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •