WordPress.org

Ready to get started?Download WordPress

Forums

JAVA in sidebar (32 posts)

  1. stchatterbox
    Member
    Posted 9 years ago #

    i wanna add an analogue clock to my sidebar. since i donnu how to use the FEX progressive clock, i turned to java and inserted the following in my sidebar template in presentation
    <SCRIPT LANGUAGE="JavaScript">var clocksize=100;</SCRIPT>
    <SCRIPT SRC="http://gheos.net/js/clock.js"></SCRIPT>

    but it didn't work why?

  2. stchatterbox
    Member
    Posted 9 years ago #

    ah, and what about the progressive clock? i've installed it successfully now.

    anyone could tell me how to add an analogue clock to your wordpress blog! thanks

  3. stchatterbox
    Member
    Posted 9 years ago #

    hello? anyone knows? i just want an analogue clock on my weblog,......please help

  4. Lorelle
    Member
    Posted 9 years ago #

    This article covers what you need to know to use javascript (not java - that's different) in WordPress.

  5. stchatterbox
    Member
    Posted 9 years ago #

    read it already but my script is just

    <SCRIPT LANGUAGE="JavaScript">var clocksize=100;</SCRIPT>
    <SCRIPT SRC="http://gheos.net/js/clock.js"></SCRIPT>

    and i wanna add this analogue script to my sidebar.

    any tricks or tips to do it? i inserted it, but it's not working. thanks

  6. Lorelle
    Member
    Posted 9 years ago #

    If you had read the article, you would know that you have to "call" the script. So far, all you have done is just tell the script to load, but not initiate.

    Add the "var" to the clock.js and use the following, with whatever the "function" is (per the article) for the script:

    <script type="text/javascript" src="/js/clock.js"></script>
    <script type="text/javascript">
    <!--
    clock();
    //--></script>

    Make sure that it is all in lower case, not capital letters, too.

  7. stchatterbox
    Member
    Posted 9 years ago #

    but where in the world should i upload the script?
    wp-admin
    wp-content
    wp-image
    wp-include

  8. stchatterbox
    Member
    Posted 9 years ago #


  9. stchatterbox
    Member
    Posted 9 years ago #

    can anyone help me?................i'm dying.....of that clock!please...have some pity on me...............:(

  10. Joshua Sigar
    Member
    Posted 9 years ago #

    I pasted your very original code, and BAM, I got the clock!

    Can you apply the code right now? We could probably, then, go to your site and see if it generates any script error.

  11. stchatterbox
    Member
    Posted 9 years ago #

    I got it work finally....it only works IE, but not FF....what about you? Alphaoide?

    just wonder if there's kind of analogue clock that works both in FF and IE.....:)

  12. Joshua Sigar
    Member
    Posted 9 years ago #

    Works in ie and ff to me

  13. stchatterbox
    Member
    Posted 9 years ago #

    ops? really? why can't for me?
    take a look at my site http://sv.formulx.com/blog
    it does not work in FF

  14. Joshua Sigar
    Member
    Posted 9 years ago #

    Get some sleep and check again the next day ;)

  15. stchatterbox
    Member
    Posted 9 years ago #

    ok, that's very kind of you. thanks so much/ remember to tell me what you see with FF :)

  16. Ryan Duff
    Member
    Posted 9 years ago #

    StChatterbox: this is for you... how to ask a question and get a respectful response

    Oh yeah, and stop spamming my blog.

  17. stchatterbox
    Member
    Posted 9 years ago #

    ryanduff, i didn't! i think you're too impolite after all!
    if i know everything, i should have do it myself without asking. :(

  18. Ryan Duff
    Member
    Posted 9 years ago #

    stchatterbox:

    I didn't say do everything without asking, I'm saying SEARCH first, most of the questions have already been answered or in the codex. Relle and the rest of the team spends a large ammount of time documenting how to do things so people don't have to ask every day. It gets annoying for the people who spend their time volunteering and have to answer the same questions over and over.

    If you have a legitimate question, ask it, but do so in a polite, readable format, not "OMG!!! HELP!"

    Of course people will look down on you when you ask questions like that because you don't have a lick of common sense and then repost if nobody has responded within the hour.

    I'm not saying don't come here for help. I'm saying search the forums, use google, search the codex, and if you can't find anything relevent, then explain your problem here and use a meaningful title so people will read the question and be able to help you.

  19. stchatterbox
    Member
    Posted 9 years ago #

    Ryan Duff,

    No point to argue here with you since this is a support forum. This message should actually posted to you personally, but I'm "frightened" that you'll attempt to spoil my image again by saying I spam you blog in this place.

    There are some points I wish to make it clear. I am not a professional like you, and sometimes CODEX is too complicated for me to get what it means...Sometimes I just wish if the problem could be solved with an explanation in a nutshell. Otherwise, I won't spend my time here signing up for an account and do posting. Not everyone can have so much spare time on the net everyday to spam! We all have our own occupations!

    I think i know exactly what I'm doing and am not being RUDE or whatever. But I should admit I was a bit nervous coz I got everything messed up in my server and need some help urgently. You might not understand how the feeling is since you're so good in computers! Perhaps I was too nervous at the time of posting that I've forgotten how to post neatly and well and I want to take this opportunity here to apologize to everybody, and thank you to those who answered my question at my hardest times.

    And finally, what do you mean by "Stop spamming my blog"? I think I just wrote you a message this morning. Well, I'm willing to admit my mistakes if I had done wrongly, like I have written an apology letter to Owen when I realized my post might annoyed him and I really feel very sorry about it. [Yeah, I admit I've done something silly and I regret very much]

    But what made me very crossed is that you have already given me an "earful" [as you claimed in owen's blog] in my blog and saying nasty words about me in Owen's blog; and now you're insulting me in this forum, plus blaming me to spam your blog. I think this is too much for newbie in online communities and as an expert in the online field, you have destroyed the image and reputation of your contemporaries and left me a very bad impression.

    But I have been lucky somehow, another expert in the wordpres field, offered me a very good generator to create Kubrick header.
    Stchatterbox

  20. Lorelle
    Member
    Posted 9 years ago #

    Okay, out of control, folks.

    Answer to the question: but where in the world should i upload the script?

    The script is uploaded to your script directory, as you listed in your original post. ....com/js/scriptname.js

    Where do I "paste" the script?

    Wherever you want the clock to show. If it is in the sidebar, then put it in the sidebar.php template file. If it is in the footer, then in the footer.php.

    And if you are new to WordPress, there are very simple, easy-to-read instructions on most of these topics at http://codex.wordpress.org/WordPress_Lessons - written with the totally inexperienced user in mind.

  21. stchatterbox
    Member
    Posted 9 years ago #

    that's really kind of you lorelle, and your patience telling me the instructions. I've finally got the clock done, and take a look! http://sv.formulx.com/blog

    But it can only be viewed with IE but not FF.

    yeah, should not have posted the above letter here, but i've explained that clearly and hope the "DUDE" will understand me.

    again thanks so much.

  22. Joshua Sigar
    Member
    Posted 9 years ago #

    okay, here's what I got
    FF 1.0: no show
    FF 1.0.4: show

  23. tomhanna
    Member
    Posted 9 years ago #

    It's not showing up for me in FF1.0.4 either.

  24. Joshua Sigar
    Member
    Posted 9 years ago #

    Hmm, maybe the security setting of the browser?

  25. stchatterbox
    Member
    Posted 9 years ago #

    mine is something like 1.0.3, it's not the latest version.
    alphaoide might be right.....when I test the script on my PC, and when i opened it with my IE, a yellow thing came out attempting to block it. [hmm.....see how i could change the settings in 1.0.3, otherwise, i'll try to get the latest version of FF today.

  26. stchatterbox
    Member
    Posted 9 years ago #

    FEEDBACK after downloading 1.0.4
    The clock is still not shown; clicked into tools>options and changed the settings to allow java and javascript, but the page remained the same: No clock...

  27. Joshua Sigar
    Member
    Posted 9 years ago #

    Hmm, is the javascript in the source code when you access the page?

    when I test the script on my PC, and when i opened it with my IE, a yellow thing came out attempting to block it.
    What does it say exactly?

    In firefox, go to the page, open Tools -> "Javascript Console", click "clear" on the console, leave it open, refresh your page.
    Anything on the console?

  28. stchatterbox
    Member
    Posted 9 years ago #

    Thanks, Alphaoide, there's nothing on my console, but I've also followed your instruction:
    In firefox, go to the page, open Tools -> "Javascript Console", click "clear" on the console, leave it open, refresh your page.
    Anything on the console?

    But still, no clock coming out.
    And regarding the yellow banner that comes up in IE, it asked if I'd allow such scripts as it might be dangerous.

    So I think javascript might have something to do with the security and I think my problem might lie inside the security settings although I donnu how to change it. I've already upgraded my FF to the latest version.

  29. stchatterbox
    Member
    Posted 9 years ago #

    Still there was a problem after i reinstall Firefox for a few times.

    but see- http://www.macaupost.net , the clock at the right hand side works so well in my FF.......

    or, my only option is to use another clock, any recommendations and suggestions will be appreciated.

  30. Minna
    Member
    Posted 9 years ago #

    That clock there is not JavaScript, it's a Flash movie

Topic Closed

This topic has been closed to new replies.

About this Topic