+ Reply to Thread
Results 1 to 12 of 12

Thread: Inserting Java Scripts
      
   

  1. #1
    whiskermouse's Avatar
    whiskermouse is offline Corporal
    Join Date
    Nov 2007
    Posts
    12

    Red face 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

  2. #2
    PlayItByBeer's Avatar
    PlayItByBeer is offline Lieutenant Colonel
    Join Date
    Mar 2007
    Location
    Port Elizabeth, South Africa
    Posts
    653

    Default Re: Inserting Java Scripts

    Quote 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,

  3. #3
    fadikaouk is offline First Sergeant
    Join Date
    Sep 2007
    Location
    Montreal, Quebec
    Posts
    70

    Default 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]

  4. #4
    whiskermouse's Avatar
    whiskermouse is offline Corporal
    Join Date
    Nov 2007
    Posts
    12

    Red face 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>

  5. #5
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default 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

  6. #6
    whiskermouse's Avatar
    whiskermouse is offline Corporal
    Join Date
    Nov 2007
    Posts
    12

    Default Re: Inserting Java Scripts

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

  7. #7
    lovettime4uche is offline Private
    Join Date
    May 2008
    Posts
    2

    Default Re: Inserting Java Scripts

    i dont understand these page

  8. #8
    lovettime4uche is offline Private
    Join Date
    May 2008
    Posts
    2

    Thumbs up Re: Inserting Java Scripts

    is thr no one to reply me

  9. #9
    Join Date
    Jun 2008
    Posts
    4

    Default Re: Inserting Java Scripts

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

  10. #10
    Join Date
    Jun 2008
    Posts
    4

    Default Re: Inserting Java Scripts

    I Have A Question!!!!!

  11. #11
    Join Date
    Jun 2008
    Posts
    4

    Default 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! :(

  12. #12
    PlayItByBeer's Avatar
    PlayItByBeer is offline Lieutenant Colonel
    Join Date
    Mar 2007
    Location
    Port Elizabeth, South Africa
    Posts
    653

    Default Re: Inserting Java Scripts

    Nerd,

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

    Cheers,

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49