Sure, we can use them over at WebReference.com. Just contact Nathan Segal at: nsegal@jupitermedia.com. He'll give you the information you need. Thanks!
Just wanted to update those of you who offered suggestions (thanks, BTW). You might take a look at some of the recently published scripts over at JavaScript Source. The format you see will eventually be done to the entire site (there's over 2,000 scripts so it will take just a bit). I'll be removing some of the older, outdated scripts and updating (any volunteers?) the others. This new layout allows us to add more complex scripts with important notes i.e., see here.
Actually, your reference is to an opinion, not a standard. In choosing the current format, I did fail to catch that in the code (it's not mine - belongs to Patrick Fitzgerald). However, the javascript: pseudo-URL is commonly used. There are other, preferred methods but, in this case, I don't have a problem. It's only for the tabs. Now, if someone has a replacement for:
Code:
"javascript:void(null);"
I have no problem in changing it, if it works. The full code is here
I'm pretty sure that's about the same as "javascript:void(null);", in terms of acceptability. Actually, the JavaScript Core Reference approves the use of "javascript:void(null);".
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function Login(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();
if (username=="admin" && password=="admin69") { window.location="page1.html"; done=1; }
if (username=="member2" && password=="password2") { window.location="page2.html"; done=1; }
if (username=="member3" && password=="password3") { window.location="page3.html"; done=1; }
if (done==0) { alert("Invalid login!"); }
}
// End -->
</SCRIPT>
Bookmarks