HTML Help
HTML Help Central . com

» Online Users: 38

0 members and 38 guests
No Members online
Most users ever online was 695, 02-16-2011 at 07:01 AM.

» Site Navigation

 > FAQ

» Domains For Sale

Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2014
    Posts
    3

    coothead sir please help -NEWS website?

    Hello coothead sir!!
    I am a huge fan of yours sir. The way you're helping people in coding is simply magnificent.
    Can you please do a favor to me? Actually I am planning to make a NEWS website. A website that can fetch news from google and yahoo. Can you please guide me and help me out with the coding in this entire project?

  2. #2
    Join Date
    Sep 2007
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    369
    Hi there dellerictwen,

    and a warm welcome to these forums.

    The following example has an rss news feed that can include any number of sites
    in rotation and also an iframe that displays Google news with thumbnail images.
    Code:
    
    <!DOCTYPE html>
    <html lang="en">
    <head>
    
    <meta charset="utf-8">
    
    <title>rss feed and Iframe</title>
    
    <style>
        @import url('http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.css');
    
    body {
        background-color:rgb(247,247,247);
     }
    #feed-control{
        width:724px; 
        padding:20px;
        margin:10px auto 20px;
        border-radius:12px;
        background-color:rgb(255,255,255);
        box-shadow:10px 10px 10px rgba(0,0,0,0.4),inset 0 0 15px rgba(0,0,0,0.4);;
     }
    .gfg-root{
        border-radius:6px;
        box-shadow:0 0 10px rgba(0,0,0,0.4);
     }
    .gfg-title {
        padding:5px 10px;
        border-bottom:1px solid rgba(0,0,64,0.6);
        color:rgba(0,0,64,0.6);text-align:center;
     }
    .gfg-root a { 
        color:rgba(0,0,64,0.6);
     }
    #loading {
        padding:4px;
        margin:10px;
        font-size:11px;
        color:rgba(0,0,0,0.8)
     }
    #ifr {
        display:block;
        width:742px;
        padding:11px;
        height:108px;
        border:0;
        margin:auto;
        border-radius:12px;
        background-color:rgb(255,255,255);
        box-shadow:10px 10px 10px rgba(0,0,0,0.4),inset 0 0 15px rgba(0,0,0,0.4);;
     }
    </style>
    
    <script src="http://www.google.com/jsapi?key=notsupplied-wizard"></script>
    <script src="http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.js"></script>
    
    </head>
    <body>
    
    <div id="feed-control">
    <span id="loading">Loading...</span>
    <script>
    function LoadDynamicFeedControl() {
       var feeds=[
           {title:'Google News',
            url:'https://news.google.com/?output=rss'
           },
           {title:'Yahoo News',
    	url:'http://news.yahoo.com/rss/'
           },
           {title:'BBC News',
    	url:'http://feeds.bbci.co.uk/news/england/rss.xml?edition=uk'
           }];
    
       var options={
            stacked:false,
            horizontal:false,numResults :10
           };
    
       new GFdynamicFeedControl(feeds,'feed-control',options);
     }
       google.load('feeds','1');
       google.setOnLoadCallback(LoadDynamicFeedControl);
    </script>
    </div>
    
    <div>
     <iframe id="ifr" src="http://www.google.com/uds/modules/elements/newsshow/iframe.html?format=728x90"></iframe>
    </div>
    
    </body>
    </html>
    
    http://www.htmlhelpcentral.com/messageboard/image.php?type=sigpic&userid=8698&dateline=1189772  724

  3. #3
    Join Date
    Mar 2014
    Posts
    3
    Thanks a lot for the reply sir. But if I use these codes, it will appear like ads on the right or left column and I believe that when one clicks on any of the news it will redirect the user to another website (google or any website i.e to the source of the news) right?. Can't we have a program that fetches news from google and automatically paste the same to our website?
    Can we create a website that gets updated in every 2 or 5 mins, and copies the news from google and we are also able to show the entire news in our website.?

  4. #4
    Join Date
    Sep 2007
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    369
    Hi there dellerictwen,

    what you are requesting is not possible or even ethical.

    "Google" and "Yahoo" will not let you put their site pages in an iframe .

    Some newspapers, though, may may allow this.
    http://www.htmlhelpcentral.com/messageboard/image.php?type=sigpic&userid=8698&dateline=1189772  724

  5. #5
    Join Date
    Mar 2014
    Posts
    3
    This means I have to drop the project I also have been thinking about the website that helps one to compare price of the mobiles in US.
    So can you help me out with that?
    Can you please design me a program that automatically updates the price of the mobiles according to the present rate.
    Last edited by dellerictwen; 03-08-2014 at 06:40 AM.

  6. #6
    Join Date
    Sep 2007
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    369
    Hi there dellerictwen,

    this page will refresh every five minutes...
    Code:
    
    <!DOCTYPE html>
    <html lang="en">
    <head>
    
    <meta charset="utf-8">
    <meta http-equiv="refresh" content="300">
    
    <title>compare prices</title>
    
    <style>
    body {
        background-color:rgb(247,247,247);
     }
    #ifr1 {
        display:block;
        width:1000px;
        padding:11px;
        height:520px;
        border:0;
        margin:20px auto;
        border-radius:12px;
        background-color:rgb(255,255,255);
        box-shadow:10px 10px 10px rgba(0,0,0,0.4),inset 0 0 15px rgba(0,0,0,0.4);;
     }
    </style>
    
    </head>
    <body>
    
    <div>
     <iframe id="ifr1" src="http://www.whistleout.com/CellPhones"></iframe>
    </div>
    
    </body>
    </html>
    Last edited by coothead; 03-08-2014 at 08:05 AM. Reason: ypynig eorrr
    http://www.htmlhelpcentral.com/messageboard/image.php?type=sigpic&userid=8698&dateline=1189772  724

Similar Threads

  1. Good news pr has been updated
    By IntegratedS in forum Chat Central
    Replies: 1
    Last Post: 02-09-2011, 09:40 AM
  2. Updating news
    By Eagleevil in forum HTML / XHTML / XML
    Replies: 4
    Last Post: 09-18-2007, 12:41 AM
  3. Scrolling News
    By shadowblade in forum Other Languages ( ASP / Perl / Python / TCL / Ruby / ColdFusion / etc)
    Replies: 2
    Last Post: 05-13-2003, 02:46 AM
  4. News Feed Help
    By michnews in forum Javascript / AJAX / VBScript
    Replies: 2
    Last Post: 12-15-2002, 09:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBadvanced CMPS v4.1.1