Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: need a script for a non profit org

  1. #1
    Join Date
    Sep 2007
    Posts
    17
    Thanks
    4
    Thanked 1 Time in 1 Post

    Question need a script for a non profit org

    I am put in charge of building a web page for my schools Student Education Association (SEA). Well what I need is a javascript of some sort that will display Text and Links. I am using this for a news frame and i don't want to use an IFrame. I want to be able to update one file (new.js) or what ever and it display on all my pages. make since? I am open to ideas of easyer was of doing this also... Im not the best with codeing but my teacher sees me as the school geek and i was roped into doing it. Thank you for your help

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Can you use PHP? If yes, then you could use include() or require(), take a look at these articles:
    http://www.w3schools.com/PHP/php_includes.asp
    http://se2.php.net/include/

    Good luck!

  3. The Following User Says Thank You to Snookerman For This Useful Post:

    FyshY25 (01-11-2009)

  4. #3
    Join Date
    Sep 2007
    Posts
    17
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    I don't know what there server will allow or will not. That is why i want to keep it simple. I just want to know how to display Links and Text in a simple java array. I have my array defined
    var news=new Array()

    news[1]=' news one'

    news[2]=' two '

    news[3]=' what ever'

    var whichquote=Math.floor(Math.random()*(quotes.length))
    document.write(quotes[whichquote])
    i have stolen this java from a random quote gen. and i want to make it display array 1 through what ever number i need. And can i add
    <a href="whatever.html">link</a>
    in this array or would it need to look something like this
    <a href=\''whatever.html\''>link</a>

  5. #4
    Join Date
    Sep 2007
    Posts
    17
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    I don't know what there server will allow or will not. That is why i want to keep it simple. I just want to know how to display Links and Text in a simple java array. I have my array defined
    var news=new Array()

    news[1]=' news one'

    news[2]=' two '

    news[3]=' what ever'

    var whichquote=Math.floor(Math.random()*(quotes.length))
    document.write(quotes[whichquote])
    i have stolen this java from a random quote gen. and i want to make it display array 1 through what ever number i need and not a random. And can i add
    <a href="whatever.html">link</a>
    in this array or would it need to look something like this
    <a href=\''whatever.html\''>link</a>
    BTW im not getting payed for this or anything ... just a thanks so I don't want to learn any thing new just for this. But if someone could set it all up for me i would give them a big fat thanks too . =)

  6. #5
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Try this to see if you have php. Open any editor and type this in (paste).
    PHP Code:
    <?php
    echo "You have php!";
    ?>
    Then save it as php.php and put it on your server then open that page if you get the message You have php! then you have php.

  7. #6
    Join Date
    Sep 2007
    Posts
    17
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    Last edited by FyshY25; 01-11-2009 at 09:27 PM. Reason: add in

  8. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Yes, some form of server-side scripting is the way to go. You can do it with Javascript, but it is complex and/or non-standard, and will present a problem for users without Javascript enabled. It would be better to maintain it on each page yourself than to alienate a portion of your users. You could also generate the pages yourself on your development machine, using server-side scripting or a tool like GTML or the page template model found in tools like Dreamweaver.

    The URL you showed above suggests that you do not have PHP, but your server does appear to have FrontPage extensions enabled. These will allow a very basic form of server-side scripting. You could also check for SSI with a test.shtml page:
    Code:
    <!--#echo var="REMOTE_ADDR" -->
    This should display your IP address. If it doesn't display anything, you don't have SSI.
    Last edited by Twey; 01-11-2009 at 09:36 PM.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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

    FyshY25 (01-11-2009)

  10. #8
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    That means you don't have php.. =(

  11. #9
    Join Date
    Sep 2007
    Posts
    17
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    so how can i do this ? currently i am using the IFRAME Scroller script but i keep getting a warning when i open it with IE and i don't want ppl to miss the content because it was not allowed. see for yourself http://bob.ivytech.edu/~fysh/

  12. #10
    Join Date
    Sep 2007
    Posts
    17
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    okay the shtml did work .... now what ?? lol Thank you all for being so helpful

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
  •