SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru tombempty's Avatar
    Join Date
    Oct 2001
    Location
    New York
    Posts
    688
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Javascript Question

    Hi all,
    At this site : http://www.longislandprays.com/index2.htm

    I have some javascript for the bottom right table called "Prayer Articles". THis is supposed to link to a sever and change every so often on it's own.

    However........ I get a message that I need to enable Javasxript on my browser. Does anyone know what the heck this means. I know what it means in general but I never heard of this before.

    Here is the code that I inserted there :

    <table width="200" cellpadding=0 cellspacing=0>

    <!-- begin syndicated content -->
    <script language="Javascript1.1"><!--

    var syndicate = new Object;

    syndicate.title_fontbold = true;
    syndicate.title_fontital = false;
    syndicate.title_fontface = 'Tahoma, Arial, Helvetica, sans-serif';
    syndicate.title_fontsize = '3';
    syndicate.title_fontcolor = '#000099';

    syndicate.date_fontbold = false;
    syndicate.date_fontital = true;
    syndicate.date_fontunder = false;
    syndicate.date_fontface = 'Tahoma, Arial, Helvetica, sans-serif';
    syndicate.date_fontsize = '1';
    syndicate.date_fontcolor = '#666666';

    syndicate.summary_fontbold = false;
    syndicate.summary_fontital = false;
    syndicate.summary_fontunder = false;
    syndicate.summary_fontface = 'arial,helvetica,sans-serif';
    syndicate.summary_fontsize = '2';
    syndicate.summary_fontcolor = '#000000';

    syndicate.bgcolor = '#FFFFFF';
    syndicate.max_articles = '5';
    syndicate.display_date = false;
    syndicate.display_summaries = false;
    syndicate.not_found_message = '<font face="arial,helvetica,sans-serif" size="2" color="#000000">Sorry, no articles were found.</font>';

    // -->
    </script>
    <script language="Javascript1.1" src="http://www.globalpastorsnetwork.org/cgi-bin/artman/publish/syndicate_21.js"></script>

    <noscript>
    <tr>
    <td bgcolor="#FFFFFF">
    <font color="#000000" face="arial,helvetica,sans-serif" size="2">
    <p>This webpage uses Javascript to display some content.
    <p>Please enable Javascript in your browser and reload this page.
    </font>
    </td>
    </tr>
    </noscript>
    <!-- end of syndicated content -->

    </table>


    If anyone has an Idea let me know. Thanks ......
    ********
    Regards,

    P

  2. #2
    SitePoint Member
    Join Date
    Jun 2002
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi

    A couple of things need to be done.

    In your page you have your table inside the javascript tag, if you copy and paste what you have posted into your page it will work.
    You should also tidy up your html.

  3. #3
    SitePoint Guru tombempty's Avatar
    Join Date
    Oct 2001
    Location
    New York
    Posts
    688
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Talking thanks

    MikeMC
    You are the man. Thanks for the help!

    A lot of people say to me my HTML is sloppy.


    What does this mean?

    What is non sloppy code look like?

    thanks

    Paul
    ********
    Regards,

    P

  4. #4
    SitePoint Member
    Join Date
    Jun 2002
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Paul

    Tidy code would always have opening and closing tags and the tags in the correct sequence.

    ie <p><b>something</b></p>

    Until you are sure you know what you are doing consider downloading a text editor, I would advise HTML-Kit get it at
    http://www.chami.com/html-kit/


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
  •