William A. Rhoton, MD

Untitled Document


Clinical Case Conferences
Send email Webmail Groupwise Mail at Montefiore 3D Models Tutoriales: Flash, HTML, Java, Lingo, Actionscript, PHP, Perl HT password generator Official PayPal Seal Dreamweaver Made Simple

 


PROGRAMMING TUTORIALS

JAVA


No right click.
Insert in the "head" tag. This function disables the right mouse button under Windows browsers. The variable sets the displayed message after the attempted right mouse click.

<script language="JavaScript">
<!--

var message="Sorry, that function is disabled.\nThis Page Copyrighted";

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->

</script>

 

Alert Popup Window
The user will need to click "OK" to proceed. Typical use is when you want to make sure information comes through to the user.

<script language="JavaScript">
alert("yourtext");
</script>

 

Confirm Popup Window
The user needs to click either "OK" or "Cancel" to proceed. Typical use is when you want the user to verify or accept something.

confirm("yourtext");

- If the user clicks "OK", the box returns the value true.
- If the user clicks "Cancel", the box returns the value false.

<script language="JavaScript">
if (confirm("Do you agree")) {alert("OK, you agree")}
else{alert ("You do not agree")};

</script>

 

Prompt Popup Window
The user must click either "OK" or "Cancel" to proceed after entering the text. Examples could be entering user's name to be stored in a cookie or entering a password or code of some kind.

prompt("yourtext","defaultvalue");

- If the user clicks "OK" the prompt box returns the entry.
- If the user clicks "Cancel" the prompt box returns null.

Normally the input would be stored in a variable.

<script language="JavaScript">
username=prompt("Please enter your name","Enter your name here");
</script>

 

ACTIONSCRIPT


Path to object
When having problems with Flash locating your object, this may be the solution.

_root.clip1.clip2

_level1.clip1.clip2

 

Path to variable
The same principle applies to stating location to nested variables.

_root.clip1.clip2.myname = “William”;

_level1.clip1.clip2.myname = "William";

Get Property infix notation
When using infix notation you simply enter the path to the object followed by a dot and then the property you wish to examine, this is easier to type than the traditional way.

myVariable = getProperty ( "_root.Box", _width );     OLD WAY
or
myVariable = _root.Box._width                               NEW WAY


PERL


 

PHP


 

HTML


Autoclose window.
Insert in the "head" tag. The first variable sets the time to close in miliseconds.

<script>
var howLong = 5000;
t = null;
function closeMe(){
t = setTimeout("self.close()",howLong);
}

</script>

 

Autoredirect-autorefresh window.
Insert in the "head" tag. The first variable sets the time to autorefresh in miliseconds. The second variable sets the new url to display.

<meta http-equiv="REFRESH" content="1; URL=http://www.rhotonwa.com">

 

Untitled Document

Users online:
Warning: fopen(/online/log.txt): failed to open stream: No such file or directory in /home/rhotonwa/www/www/online/online.php on line 9

Warning: fputs() expects parameter 1 to be resource, boolean given in /home/rhotonwa/www/www/online/online.php on line 10

Warning: fclose() expects parameter 1 to be resource, boolean given in /home/rhotonwa/www/www/online/online.php on line 11

Warning: file(/online/log.txt): failed to open stream: No such file or directory in /home/rhotonwa/www/www/online/online.php on line 17
1
Warning: fopen(/online/log.txt): failed to open stream: No such file or directory in /home/rhotonwa/www/www/online/online.php on line 48

Warning: fputs() expects parameter 1 to be resource, boolean given in /home/rhotonwa/www/www/online/online.php on line 49

Warning: fclose() expects parameter 1 to be resource, boolean given in /home/rhotonwa/www/www/online/online.php on line 50
Montefiore Pulmonary FellowsWebsite Gallery Online EKG simulator Bigfoot's Personal Vault
Mailing List

Subscribe
Un-Subscribe

Enter your
email address
to recieve updates.
Global Tennis Association

SPECIAL Snippets HOME E-KEEP E-VALUATION E-GALLERY