Jump to content

Q695

Members
  • Posts

    783
  • Joined

  • Last visited

Everything posted by Q695

  1. I'm working with: http://www.softsynth.com/webaudio/tone.php As you can tell it returns an audio tone based upon the var "tone".
  2. I have this function call I want tied directly into a var: startTone( tone ); How would I tie it into a var similar to how I have this var created: audio = new Audio(); audio.src = "sound.mp3"; audio.loop = false; audio.play();
  3. Mine is tied to a slider, but it's the same principle for other things.
  4. Lets revert to the days of flash for an explanation: Remember how in flash you were able to go from frame 0 to frame 60 when you clicked on something, then it would stop. then you could go from frame 60 to frame 120 (a copy of frame 0) on another click, then you could click it again to go back to frame 60 another time? I'm having trouble mimicking something like that in JavaScript. The short problem is I'm trying to make a JavaScript flash tweener tied to an onClick button.
  5. It looks like they're taking the data from the text field/font field, and putting it over the image in the specific position with Javascript. This is an example of what they're doing: document.getElementById('test').innerHTML = volumeslider.value;
  6. When you click the element once, it opens, when you click the element again it closes, also there is color shifting, and invisible to visible (tool tip styleing). What I'm having trouble with is simply clicking the 2nd function to close the slide out.
  7. I'll be having it slide open, not pop open, and slide close, not pop close.
  8. It doesn't seem to be working in fiddle, but it works in WAMP. Example: http://jsfiddle.net/WH7Kf/60/
  9. Basically it's a way they to do on here the click on your id, and the window opens up.
  10. What do you expect the code to do? What is the desired result? The code is to tack a show/hide screen onto either a web page that can show/hide the content of that tab (finished product). you could also adapt it to a smart phone. I just can't get the function calling to work for some reason. What do you get instead? The first function triggers, but not the 2nd one.
  11. What's wrong with this testing script (psudocode): function flippage() { var up, max, min, ; min = 0; //closed state closed state value max = 60; //maximum able to open if (typeof up === 'undefined') { up = min; // foo does not exist } //buggy code start if (up < max) { lower.onclick = increase; } else { lower.onclick = reduce; } //buggy code end function increase() { alert ("up is increased"); up = max; } function reduce() { alert ("up is reduced"); up = min; } } window.addEventListener("load", upward()); I want it with the GT/LT operator.
  12. You can refactor anything on the fly with these targeting techniques: document.getElementById('your_div').style.position = "absolute";
  13. could this be killing the super function: clearInterval(interval);
  14. Not sure the var checkers are: min_function: up < max max_function: up > min When I run the functions separately I get: min_function: max max_function: min
  15. What's wrong with this simple script to call 2 functions: if (up < max){ lower.onclick=min_function; } else if (up > min) { lower.onclick=max_function; }
  16. Actually it works best if you turn the table, then turn back the words in a div: http://jsfiddle.net/WH7Kf/14/
  17. I've tried asking the stack overflow people this question, but no one seems to know how to fix it. The fiddle: http://jsfiddle.net/WH7Kf/13/ Your mission should you accept it: How do I make the HTML slider with CSS stay in the sound box?
  18. Interesting, but they're .net, not php competitions.
  19. Does anyone know where to find programming competitions at on the web?
  20. The JS for this would be something like: //http://www.tizag.com/javascriptT/javascript-innerHTML.php function whitespace() { var new_html=('#bubble').load('new_html'); // var new_html = document.getElementById('new_html').value; document.getElementById('bubble').innerHTML = new_html; } the menu would be like this: echo"<div align='left'> <ul> <li>menu tester<ul> <li><a href='?'>Home</a></li> <li><a href='?'>Tools</a> <ul>"; switch(isset($_SESSION['id'])){ case TRUE: echo"<li><a href id='new_html' onclick='whitespace()' value='?action=logout'>log out</a></li>"; break; case FALSE: echo"<li><a href id='new_html' onclick='whitespace()' value='?action=login'>log in</a></li>"; break; } echo" <li><a href id='new_html' onclick='whitespace()' value='?page=calendar'>calender</a></li> <li><a href id='new_html' onclick='whitespace()' value='?page=batch_mailer'>batch mailer</a></li> <li><a href id='new_html' onclick='whitespace()' value='?page=directory'>directory</a></li> </ul> </li> </ul></li> </ul> </div> ";
  21. I figured out this code is compliant, but it shows nothing on the browser window: <script type='text/plain' src='applets/b.php'></script>
  22. I was at a node.js (MNjs) meet up tonight, and the keynote speaker recommended doing a PJAX function to load the page, because I'm thinking a 1 page architecture with different pages that can be ran in, and out on an onclick.. The above won't load the whole page at once? I'll have to try the code.
  23. Think similar to iframe for this example: viewing: a.php click to load: b.php loads: b.php text chancges: a.php goes away, then b.php is the only one visible
  24. Now I need to get it to load various HTML into the javascript to produce in the "bubble".
  25. Stripping the <script> from the js solved it .
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.