bgsound is a really old way to do play audio in JavaScript; im surprised you can hear anything at all.
you can try changing the A's href from href="soundtest .html" ta href="#" and see if that helps, but i think bgsound is loaded upon pageload, and so it won't reload until the page does.
use the <audio> tag to play sound, falling back to <embed>.
User Profile
Collapse
-
the simple way is to run it on a webserver that uses javascript, like .net or v8. then you can simply curl the webserver from the command line to get the input and output you need.Leave a comment:
-
yes, run the export from the browser, not from the server. that way, all the values are in the right place as expected.
you can use activeX excel control, or generate a .csv file by iterating the table cells once the data loads. you can bounce the csv off of your server by .write()ing a post variable from the submit.
in newer browsers, ie8+ included, you can even serve the csv directly from javascript (without a server)...Leave a comment:
-
your function needs a few lines at the top and bottom:
now, if it fires again while the middle is already running, it returns without proceeding further....Code:function myChanger(){ if(arguments.callee.busy){return;} arguments.callee.busy=true; //... now do the slow stuff like normal arguments.callee.busy = false; }//end myChanger()Leave a comment:
-
-
use showModalDialog
see http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx
and https://developer.mozilla.org/en/DOM...howModalDialogLeave a comment:
-
you can also use javascript on the server if you have .net; might be one less thing to learn...Leave a comment:
-
Code:var i=new Image; i.src="cgi.php?sel=" + escape(document.getSelection());
Leave a comment:
-
just code your questions and answers in javascript.
you can then simply add more scripts to the page to reach the different tests.
something like:
the popQuestions function should be pre-defined...Code:questions=[ { text: "what is 5+5", offers: [3,10,43,75], answer: 1 } ]//end questions if(window.popQuestions){ popQuestions(); }Leave a comment:
-
if both are in the <head>, the rules are very explicit that script1 MUST complete or error before script2 is evaluated. It's been that way for a long time, and i hope that it doesn't change.
the defer attrib and dom-adders break the rule for the better.
if all else fails,
you can paste this into the very bottom of script1:
...Code:document.write("<script src='script2.js'><\/script>&quoLeave a comment:
-
ajax uses the same URLs that can be viewed in a browser by placing them in the address bar.
the only way you can hide is with ciphering. here's an app i made that can encode a whole webpage, javascript and all. But, your visitors would need to know the password to view it...
using something like dean edward's packer makes the code look like gibberish, but it's still easy for developers to "roll back" to the...Leave a comment:
-
firefox provides several ways to communicate between cross-domain frames.
look into postMessage and window.name specifically.Leave a comment:
-
yes and no.
.cur is basically a monochrome bitmap, so it may be viewable when loaded as a bmp, which many browsers handle.
Firefox allows .cur since 2.0
according to MDC, this is your best bet:
...Code:cursor: url(foo.cur), url([url]http://www.example.com/bar.gif[/url]), auto;
Leave a comment:
-
-
if you put the repetitive page wrapper and the div contents in separate files, you can edit them separately.
the files can be combined using php before serving, or with ajax if you don't have server scripting.
this way, you can make a change to all pages by altering a single file...Leave a comment:
-
a couple other tricks to try:
in head:
Code:<style type="text/css"> .green {color:green;} </style>
in table:
...Code:<tr> <td>Test</td> <td>Test</td> <td class="green">Test</td> <td style="color:blue">Test</td>Leave a comment:
-
it will work, as in stuff will show up, but it doesn't respond to CSS tag selectors, or have as many dom bindings like lang and name.
this should be fixed in the next version of IE....Leave a comment:
-
duck type it:
Code:if (this.body && this.getElementsByTagName ){ alert("this quacks like a document!"); }Leave a comment:
-
you could probably get this info in java, i know it can determine local IP addresses...Leave a comment:
-
مرحبا
اسمي ملكة جمال jesical ، رأيت بروفايلك اليوم ، وبعد ذلك تمر ، ط ملء المزيد من الاهتمام...
No activity results to display
Show More
Leave a comment: