Inserting Java Scripts

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • whiskermouse
    Corporal

    • Nov 2007
    • 12

    Inserting Java Scripts

    Hello all,
    Starting work on another project and have a couple of questions about inserting java scripts in blue voda.

    I have a script that rotates background music on a webpage. Have the .midi files uploaded to the server and the script configured, however my question is how to insert it..
    it belongs in the head of the document.. can I insert using the page properties or do I place a script on the page?

    the other java script deals with sorting html tables within a page. here again i have the script configured to insert into the table.. question will this work as part of the table html?
    Thanks in advance for any help
  • PlayItByBeer
    Lieutenant Colonel

    • Mar 2007
    • 653

    #2
    Re: Inserting Java Scripts

    Originally posted by whiskermouse View Post
    Hello all,
    Starting work on another project and have a couple of questions about inserting java scripts in blue voda.

    I have a script that rotates background music on a webpage. Have the .midi files uploaded to the server and the script configured, however my question is how to insert it..
    it belongs in the head of the document.. can I insert using the page properties or do I place a script on the page?

    the other java script deals with sorting html tables within a page. here again i have the script configured to insert into the table.. question will this work as part of the table html?
    Thanks in advance for any help
    Hi Mouse,
    You'll find "between head' tag where you need to insert the java script by:
    right click open area of your page>>Page HTML>>between head>>insert script.
    I'm not sure which one you have but some music related java script also requires a portion of the script on the page by: clicking on the HTML icon in BV (or insert>>advanced>>HTML)
    (This second part of the script is usual a music control panel/play/mute/volume etc)

    Cheers,
    Andrew

    sigpic

    Port Elizabeth Web Design Solutions
    Latest Release: Eastern Cape Hunting Safaris
    Work In Progress Cape Town Dietician
    BlueVoda Web Design Portfolio

    Comment

    • fadikaouk
      First Sergeant

      • Sep 2007
      • 70

      #3
      Re: Inserting Java Scripts

      If you want to run a Java Script in a box somewhere in your site, then you can use the HTML Button on the top left corner of BV.

      Click on it and drag to the location of your choice on the site. then make is as big as you need "look in the lower left side of BV for exact measurements width and heights".

      Double click on the box and insert your code, it should work just fine.

      Good luck...
      Fadi Kaouk

      http://www.kgcinternational.com - Recruitment Firm
      http://www.moneymachineguide.com - Make Money Online
      http://fadikaouk.blogspot.com - Make Money Blog
      http://www.pokerguideservice.com - Learn the game of Poker
      [B][COLOR=Lime][COLOR=Black]

      Comment

      • whiskermouse
        Corporal

        • Nov 2007
        • 12

        #4
        Re: Inserting Java Scripts

        OK, what's wrong?

        Here's the java script I am using to rotate music (midi files) on my webpages..

        I have inserted it into the "head"... and nothing... zip... zero.
        The midi files are uploaded to the server..
        Could someone take a look at see what I'm missing???
        Thanks
        <script>
        <!--
        //-->
        var sound1="circleoflife.mid"
        var sound2="sunshinehoulder.mid"
        var sound3="youarethesunshine.mid"
        var x=Math.random()*10
        if (x<=3) x=sound1
        else if (x<=6) x=sound2
        else
        x=sound3
        if (navigator.appName=="Microsoft Internet Explorer")
        document.write('<bgsound src='+'"'+x+'"'+' loop="infinite">')
        else
        document.write('<embed src='+'"'+x+'"'+'hidden="true" border="0" width="20" height="20" autostart="true" loop="true">')
        //-->
        </script>

        Comment

        • Watdaflip
          Major General

          • Sep 2005
          • 2116

          #5
          Re: Inserting Java Scripts

          There should be instructions wherever you got the javascript code at. Depending on code it may need to go between the head tags, or it may needs to go in the body of the html (possibly after other code).

          Try putting it in the body of your page.

          Register/Login Script
          Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

          Comment

          • whiskermouse
            Corporal

            • Nov 2007
            • 12

            #6
            Re: Inserting Java Scripts

            Thanks,
            Missed a line of code when I copied and pasted.. it is working fine now.

            Comment

            • lovettime4uche
              Private

              • May 2008
              • 2

              #7
              Re: Inserting Java Scripts

              i dont understand these page

              Comment

              • lovettime4uche
                Private

                • May 2008
                • 2

                #8
                Re: Inserting Java Scripts

                is thr no one to reply me

                Comment

                • nintendo_nerd123
                  Private

                  • Jun 2008
                  • 4

                  #9
                  Re: Inserting Java Scripts

                  i have like 45 questions so you can tell im not a computer god.

                  Comment

                  • nintendo_nerd123
                    Private

                    • Jun 2008
                    • 4

                    #10
                    Re: Inserting Java Scripts

                    I Have A Question!!!!!

                    Comment

                    • nintendo_nerd123
                      Private

                      • Jun 2008
                      • 4

                      #11
                      Re: Inserting Java Scripts

                      Yea, i get it. you never reply to halp vampire half werewolf and half dragon that you think its gonna bite your head off! :(

                      Comment

                      • PlayItByBeer
                        Lieutenant Colonel

                        • Mar 2007
                        • 653

                        #12
                        Re: Inserting Java Scripts

                        Nerd,

                        Start your own topic and post your question (s) it's difficult to guess what they are...

                        Cheers,
                        Andrew

                        sigpic

                        Port Elizabeth Web Design Solutions
                        Latest Release: Eastern Cape Hunting Safaris
                        Work In Progress Cape Town Dietician
                        BlueVoda Web Design Portfolio

                        Comment

                        Working...
                        X