Selasa, 04 November 2025

HTML - JAVASCRIPT - TOGGLE BUTTON

 




KODE HTML di bawah ini diambil dari Microsoft.com tahun 2003

<HTML>

<HEAD>


<title>Code Corner Coolbar sample (Code Corner)</title>


<META NAME="robots" CONTENT="noindex">


<xml>

<MSHelp:Keyword Index="A" Term="corner9909_01"/>

</xml>

</HEAD>

<!--TOOLBAR_START-->

<!--TOOLBAR_EXEMPT-->

<!--TOOLBAR_END-->


<STYLE TYPE="text/css"><!--


BODY { font-family:verdana; font-size:80%; }


TABLE#tblCoolbar { 

background-color:threedface; padding:1px; color:menutext; 

border-width:1px; border-style:solid; 

border-color:threedhighlight threedshadow threedshadow threedhighlight;

}


TABLE#tblCoolbar TABLE { 

font-family:tahoma; font-size:70%; color:menutext; 

border:1px solid threedface; cursor:hand; padding:1px; 

}

--></STYLE>


<SCRIPT LANGUAGE="JScript"><!--


// SET SOME "CONSTANT" VALUES FOR THE SCRIPT

// MAKES PLAYING WITH LOOK AND FEEL A LOT EASIER


var sOffBackColor = "threedface";

var sOffTextColor = "menutext"

var sOffBorderColor = "threedface";

var sOffPadding = "1px 1px 1px 1px";


var sOverBackColor = "threedface";

var sOverTextColor = "menutext"

var sOverBorderColor = "threedhighlight threedshadow threedshadow threedhighlight";

var sOverPadding = "1px 1px 1px 1px";


var sDownBackColor = "window"

var sDownTextColor = "menutext"

var sDownBorderColor = "threedshadow threedhighlight threedhighlight threedshadow";

var sDownPadding = "2px 0px 0px 2px";


var sPaneName = "";

var eActiveButton = null;


// TWO HELPER FUNCTIONS

// ONE TO SET BUTTON PADDING AND ONE TO SET BUTTON IMAGE


function SetButtonPadding(eButton,sPaddingStyle)

{

eButton.rows[0].cells[0].style.padding = sPaddingStyle;

eButton.rows[0].cells[1].style.padding = sPaddingStyle;

}

function SetButtonImage(eButton,sState)

{

var eImg = eButton.rows[0].cells[0].children[0];

if (eImg) 

{

var sImgSrc = eImg.src;

if (sImgSrc.match(/_(\w+)\.gif/)) 

{

eImg.src = sImgSrc.replace(RegExp.$1,sState);

}

}

}

// FOUR EVENT-HANDLER FUNCTIONS


function button_over(eButton)

{


// IF WE'RE JUST MOUSING ABOUT WITHIN THE BUTTON, THEN BAIL


if (window.event && eButton.contains(window.event.fromElement)) return false;


// OTHERWISE CHANGE BUTTON STYLE


eButton.style.backgroundColor = sOverBackColor;

eButton.style.color = sOverTextColor;

if (eActiveButton != eButton)

{

eButton.style.borderColor = sOverBorderColor;

SetButtonImage(eButton,"over");

}

}



function button_out(eButton)

{

// IF WE'RE JUST MOUSING ABOUT WITHIN THE BUTTON, THEN BAIL

if (window.event && eButton.contains(window.event.toElement)) return false;


// OTHERWISE CHANGE BUTTON STYLE


if (eActiveButton != eButton)

{

eButton.style.backgroundColor = sOffBackColor;

eButton.style.borderColor = sOffBorderColor;

eButton.style.color = sOffTextColor;

SetButtonPadding(eButton,sOffPadding);

SetButtonImage(eButton,"off")

}

else

{

eButton.style.backgroundColor = sDownBackColor;

eButton.style.borderColor = sDownBorderColor;

eButton.style.color = sDownTextColor;

}

}


function button_down(eButton)

{

eButton.style.borderColor = sDownBorderColor;

SetButtonPadding(eButton,sDownPadding);

}


function button_up(eButton)

{


// IF ANOTHER BUTTON IS ACTIVE, RESET IT


if (null != eActiveButton && eButton != eActiveButton)

{

eActiveButton.style.backgroundColor = sOffBackColor;

eActiveButton.style.borderColor = sOffBorderColor;

eActiveButton.style.color = sOffTextColor;

SetButtonImage(eActiveButton,"off");

SetButtonPadding(eActiveButton,sOffPadding);

eActiveButton = null; 


// insert code here for button hiding 

window.status = window.defaultStatus;

}


// IF THE BUTTON WE CLICKED IS NOT THE ACTIVE BUTTON, MAKE IT ACTIVE


if (eButton != eActiveButton)  

{

eActiveButton = eButton;

eActiveButton.style.borderColor = sDownBorderColor;

eActiveButton.style.color = sDownTextColor;

SetButtonPadding(eActiveButton,sDownPadding);

sPaneName = eActiveButton.id.replace(/tbl(.*)Button/,"$1");


// insert code here for button showing 

window.status = "Now showing: " + sPaneName;

}


// OTHERWISE, RESET IT


else  

{

eActiveButton.style.backgroundColor = sOverBackColor;

eActiveButton.style.borderColor = sOverBorderColor;

eActiveButton.style.color = sOverTextColor;

SetButtonPadding(eActiveButton,sOverPadding);

eActiveButton = null;


// insert code here for button hiding 

window.status = window.defaultStatus;

}


}


//--></SCRIPT>


<BODY>


<TABLE ID="tblCoolbar" CELLPADDING="0" CELLSPACING="0" BORDER="0" WIDTH="100%" ONSELECTSTART="return false;">

<TR VALIGN="middle">


<TD>

<TABLE ID="tblContentsButton" CELLPADDING="0" CELLSPACING="0" BORDER="0" ONMOUSEOVER="button_over(this);" ONMOUSEOUT="button_out(this);" ONMOUSEDOWN="button_down(this);" ONMOUSEUP="button_up(this);" TITLE="Contents">

<TR VALIGN="middle">

<TD><IMG HSPACE="1" HEIGHT="19" WIDTH="18" BORDER="0" SRC="jadwal2.png" ALT="Contents"></TD>

<TD>Contents&nbsp;&nbsp;&nbsp;</TD>

</TR>

</TABLE>

</TD>


<TD>

<TABLE ID="tblIndexButton" CELLPADDING="0" CELLSPACING="0" BORDER="0" ONMOUSEOVER="button_over(this);" ONMOUSEOUT="button_out(this);" ONMOUSEDOWN="button_down(this);" ONMOUSEUP="button_up(this);" TITLE="Index">

<TR VALIGN="middle">

<TD><IMG HSPACE="1" HEIGHT="19" WIDTH="18" BORDER="0" SRC="note.png" ALT="Index"></TD>

<TD>Index&nbsp;&nbsp;&nbsp;</TD>

</TR>

</TABLE>

</TD>


<TD>

<TABLE ID="tblSearchButton" CELLPADDING="0" CELLSPACING="0" BORDER="0" ONMOUSEOVER="button_over(this);" ONMOUSEOUT="button_out(this);" ONMOUSEDOWN="button_down(this);" ONMOUSEUP="button_up(this);" TITLE="Search">

<TR VALIGN="middle">

<TD><IMG HSPACE="1" HEIGHT="19" WIDTH="18" BORDER="0" SRC="secure.png" ALT="Search"></TD>

<TD>Search&nbsp;&nbsp;&nbsp;</TD>

</TR>

</TABLE>

</TD>


<TD>

<TABLE ID="tblGlossaryButton" CELLPADDING="0" CELLSPACING="0" BORDER="0" ONMOUSEOVER="button_over(this);" ONMOUSEOUT="button_out(this);" ONMOUSEDOWN="button_down(this);" ONMOUSEUP="button_up(this);" TITLE="Glossary">

<TR VALIGN="middle">

<TD><IMG HSPACE="1" HEIGHT="19" WIDTH="22" BORDER="0" SRC="recovery.png" ALT="Glossary"></TD>

<TD>Glossary&nbsp;&nbsp;&nbsp;</TD>

</TR>

</TABLE>

</TD>


<TD WIDTH="100%"></TD>


</TR>

</TABLE>




<BR><BR><BR>

<P><A HREF="javascript:self.close();">Close this sample window</A>.</P>

<SCRIPT LANGUAGE="JScript"><!--


// OPTIONAL: START WITH CONTENTS BUTTON ACTIVE


button_over(tblContentsButton);

button_up(tblContentsButton);

button_out(tblContentsButton);


// PRELOAD "OVER" IMAGES


var sImgPath = "";

var aImgNames = new Array("contents","index","search","glossary");

var aImgs = new Array();

for (var i=0;i<aImgNames.length;i++)

{

aImgs[i] = new Image();

aImgs[i].src = sImgPath + aImgNames[i] + "_over.png";

}


//--></SCRIPT>

</BODY>

</HTML>


Perdana Menteri Belanda

 




Senin, 03 November 2025

JavaScript - Menu

 







<html>

<HEAD><TITLE>menu

</TITLE>



<style>

a:hover {color:white; text-decoration:none;}

a:link {color:yellow; text-decoration:none}

a:visited {color:white; text-decoration:none}


#essenmenu

{

position: absolute;

top: 0;

left: 0;

z-index: 1;

font:xx-large arial

}



#essen

{

position: absolute;

top: -120;

left: 0;

z-index: 0;

font:xx-large arial

}



#trinkenmenu

{

position: absolute;

top: 0;

left: 120;

z-index: 1;

font:xx-large arial

}



#trinken

{

position: absolute;

top: -92;

left: 120;

z-index: 0;

font:xx-large arial

}



</style>


<script language="JavaScript">


var eypos=-124, ejump=-4;

var typos=-92, tjump=-4;


var delay=2;



function do_essen()

{

if(typos>-92)

{

tjump=-4;

if(typos>=30)

trinken_fahren();

}


ejump=-ejump;

if(eypos<=-122 || eypos>=30)

essen_fahren();

}


function essen_fahren()

{

if(document.layers) document.essen.top=eypos; else document.all.essen.style.top=eypos;

eypos+=ejump;


if(eypos>-122 && eypos<30)

setTimeout("essen_fahren()", delay);

}



function do_trinken()

{

if(eypos>-122)

{

ejump=-4;

if(eypos>=30)

essen_fahren();

}


tjump=-tjump;

if(typos<=-92 || typos>=30)

trinken_fahren();

}


function trinken_fahren()

{

if(document.layers) document.trinken.top=typos; else document.all.trinken.style.top=typos;

typos+=tjump;


if(typos>-92 && typos<30)

setTimeout("trinken_fahren()", delay);

}



</script>



</HEAD>

<BODY>


<div id=essenmenu>

 <table width=120 height=30 bgcolor="deeppink" cellspacing=0>

  <tr><td align=middle><a href="javascript:do_essen()"><b>Masakan</b></a>

 </table>

</div>


<div id=trinkenmenu>

  <table width=150 height=30 bgcolor="deeppink" cellspacing=0>

   <tr><td align=middle><a href="javascript:do_trinken()"><b>Minuman</b></a>

</table>


</div>

<div id=essen>

<table bgcolor=blue width=120 height=150 cellspacing=2>

  <tr><td align=middle><button>Sayur Sop</button>

   <tr><td align=middle><button >Nasi Goreng</button>

  <tr><td align=middle><button >Rendang</button>

<tr><td align=middle><button>Soto Ayam</button>

</table>

</div>


<div id=trinken>

<table bgcolor=blue width=150 height=118 cellspacing=2 style="font-weight:bold;color:white">

<tr><td align=middle>Air Mineral</a>

<tr><td align=middle>Kopi</a>

<tr><td align=middle>Teh Matcha</a>

<tr><td align=middle>Boba</a>

</table>

</div>


</BODY>

</HTML>

 

Additional Named Entities for HTML

 The following table contains additional named entities, their numeric character references, and a description of each. With the exception of the left and right-pointing brackets (&#9001; and &#9002;), the entities on this page are rendered using Lucida sans Unicode.

Character Named entity Numeric character reference Description
Latin Extended-B
ƒ &fnof; &#402; Latin small f with hook, =function, =florin, U0192 ISOtech
Greek
Α &Alpha; &#913; Greek capital letter alpha, U0391
Β &Beta; &#914; Greek capital letter beta, U0392
Γ &Gamma; &#915; Greek capital letter gamma, U0393 ISOgrk3
Δ &Delta; &#916; Greek capital letter delta, U0394 ISOgrk3
Ε &Epsilon; &#917; Greek capital letter epsilon, U0395
Ζ &Zeta; &#918; Greek capital letter zeta, U0396
Η &Eta; &#919; Greek capital letter eta, U0397
Θ &Theta; &#920; Greek capital letter theta, U0398 ISOgrk3
Ι &Iota; &#921; Greek capital letter iota, U0399
Κ &Kappa; &#922; Greek capital letter kappa, U039A
Λ &Lambda; &#923; Greek capital letter lambda, U039B ISOgrk3
Μ &Mu; &#924; Greek capital letter mu, U039C
Ν &Nu; &#925; Greek capital letter nu, U039D
Ξ &Xi; &#926; Greek capital letter xi, U039E ISOgrk3
Ο &Omicron; &#927; Greek capital letter omicron, U039F
Π &Pi; &#928; Greek capital letter pi, U03A0 ISOgrk3
Ρ &Rho; &#929; Greek capital letter rho, U03A1
Σ &Sigma; &#931; Greek capital letter sigma, U03A3 ISOgrk3
Τ &Tau; &#932; Greek capital letter tau, U03A4
Υ &Upsilon; &#933; Greek capital letter upsilon, U03A5 ISOgrk3
Φ &Phi; &#934; Greek capital letter phi, U03A6 ISOgrk3
Χ &Chi; &#935; Greek capital letter chi, U03A7
Ψ &Psi; &#936; Greek capital letter psi, U03A8 ISOgrk3
Ω &Omega; &#937; Greek capital letter omega, U03A9 ISOgrk3
α &alpha; &#945; Greek small letter alpha, U03B1 ISOgrk3
β &beta; &#946; Greek small letter beta, U03B2 ISOgrk3
γ &gamma; &#947; Greek small letter gamma, U03B3 ISOgrk3
δ &delta; &#948; Greek small letter delta, U03B4 ISOgrk3
ε &epsilon; &#949; Greek small letter epsilon, U03B5 ISOgrk3
ζ &zeta; &#950; Greek small letter zeta, U03B6 ISOgrk3
η &eta; &#951; Greek small letter eta, U03B7 ISOgrk3
θ &theta; &#952; Greek small letter theta, U03B8 ISOgrk3
ι &iota; &#953; Greek small letter iota, U03B9 ISOgrk3
κ &kappa; &#954; Greek small letter kappa, U03BA ISOgrk3
λ &lambda; &#955; Greek small letter lambda, U03BB ISOgrk3
μ &mu; &#956; Greek small letter mu, U03BC ISOgrk3
ν &nu; &#957; Greek small letter nu, U03BD ISOgrk3
ξ &xi; &#958; Greek small letter xi, U03BE ISOgrk3
ο &omicron; &#959; Greek small letter omicron, U03BF NEW
π &pi; &#960; Greek small letter pi, U03C0 ISOgrk3
ρ &rho; &#961; Greek small letter rho, U03C1 ISOgrk3
ς &sigmaf; &#962; Greek small letter final sigma, U03C2 ISOgrk3
σ &sigma; &#963; Greek small letter sigma, U03C3 ISOgrk3
τ &tau; &#964; Greek small letter tau, U03C4 ISOgrk3
υ &upsilon; &#965; Greek small letter upsilon, U03C5 ISOgrk3
φ &phi; &#966; Greek small letter phi, U03C6 ISOgrk3
χ &chi; &#967; Greek small letter chi, U03C7 ISOgrk3
ψ &psi; &#968; Greek small letter psi, U03C8 ISOgrk3
ω &omega; &#969; Greek small letter omega, U03C9 ISOgrk3
ϑ &thetasym; &#977; Greek small letter theta symbol, U03D1 NEW
ϒ &upsih; &#978; Greek upsilon with hook symbol, U03D2 NEW
ϖ &piv; &#982; Greek pi symbol, U03D6 ISOgrk3
General Punctuation
&bull; &#8226; bullet, =black small circle, U2022 ISOpub
&hellip; &#8230; horizontal ellipsis, =three dot leader, U2026 ISOpub
&prime; &#8242; prime, =minutes, =feet, U2032 ISOtech
&Prime; &#8243; double prime, =seconds, =inches, U2033 ISOtech
&oline; &#8254; overline, =spacing overscore, U203E NEW
&frasl; &#8260; fraction slash, U2044 NEW
Letterlike Symbols
&weierp; &#8472; script capital P, =power set, =Weierstrass p, U2118 ISOamso
&image; &#8465; blackletter capital I, =imaginary part, U2111 ISOamso
&real; &#8476; blackletter capital R, =real part symbol, U211C ISOamso
&trade; &#8482; trade mark sign, U2122 ISOnum
&alefsym; &#8501; alef symbol, =first transfinite cardinal, U2135 NEW
Arrows
&larr; &#8592; leftward arrow, U2190 ISOnum
&uarr; &#8593; upward arrow, U2191 ISOnum
&rarr; &#8594; rightward arrow, U2192 ISOnum
&darr; &#8595; downward arrow, U2193 ISOnum
&harr; &#8596; left right arrow, U2194 ISOamsa
&crarr; &#8629; downward arrow with corner leftward, =carriage return, U21B5 NEW
&lArr; &#8656; leftward double arrow, U21D0 ISOtech
&uArr; &#8657; upward double arrow, U21D1 ISOamsa
&rArr; &#8658; rightward double arrow, U21D2 ISOtech
&dArr; &#8659; downward double arrow, U21D3 ISOamsa
&hArr; &#8660; left right double arrow, U21D4 ISOamsa
Mathematical Operators
&forall; &#8704; for all, U2200 ISOtech
&part; &#8706; partial differential, U2202 ISOtech
&exist; &#8707; there exists, U2203 ISOtech
&empty; &#8709; empty set, =null set, =diameter, U2205 ISOamso
&nabla; &#8711; nabla, =backward difference, U2207 ISOtech
&isin; &#8712; element of, U2208 ISOtech
&notin; &#8713; not an element of, U2209 ISOtech
&ni; &#8715; contains as member, U220B ISOtech
&prod; &#8719; n-ary product, =product sign, U220F ISOamsb
&sum; &#8722; n-ary sumation, U2211 ISOamsb
&minus; &#8722; minus sign, U2212 ISOtech
&lowast; &#8727; asterisk operator, U2217 ISOtech
&radic; &#8730; square root, =radical sign, U221A ISOtech
&prop; &#8733; proportional to, U221D ISOtech
&infin; &#8734; infinity, U221E ISOtech
&ang; &#8736; angle, U2220 ISOamso
&and; &#8869; logical and, =wedge, U2227 ISOtech
&or; &#8870; logical or, =vee, U2228 ISOtech
&cap; &#8745; intersection, =cap, U2229 ISOtech
&cup; &#8746; union, =cup, U222A ISOtech
&int; &#8747; integral, U222B ISOtech
&there4; &#8756; therefore, U2234 ISOtech
&sim; &#8764; tilde operator, =varies with, =similar to, U223C ISOtech
&cong; &#8773; approximately equal to, U2245 ISOtech
&asymp; &#8773; almost equal to, =asymptotic to, U2248 ISOamsr
&ne; &#8800; not equal to, U2260 ISOtech
&equiv; &#8801; identical to, U2261 ISOtech
&le; &#8804; less-than or equal to, U2264 ISOtech
&ge; &#8805; greater-than or equal to, U2265 ISOtech
&sub; &#8834; subset of, U2282 ISOtech
&sup; &#8835; superset of, U2283 ISOtech
&nsub; &#8836; not a subset of, U2284 ISOamsn
&sube; &#8838; subset of or equal to, U2286 ISOtech
&supe; &#8839; superset of or equal to, U2287 ISOtech
&oplus; &#8853; circled plus, =direct sum, U2295 ISOamsb
&otimes; &#8855; circled times, =vector product, U2297 ISOamsb
&perp; &#8869; up tack, =orthogonal to, =perpendicular, U22A5 ISOtech
&sdot; &#8901; dot operator, U22C5 ISOamsb
Miscellaneous Technical
&lceil; &#8968; left ceiling, =apl upstile, U2308, ISOamsc
&rceil; &#8969; right ceiling, U2309, ISOamsc
&lfloor; &#8970; left floor, =apl downstile, U230A, ISOamsc
&rfloor; &#8971; right floor, U230B, ISOamsc
&lang; &#9001; left-pointing angle bracket, =bra, U2329 ISOtech
&rang; &#9002; right-pointing angle bracket, =ket, U232A ISOtech
Geometric Shapes
&loz; &#9674; lozenge, U25CA ISOpub
Miscellaneous Symbols
&spades; &#9824; black spade suit, U2660 ISOpub
&clubs; &#9827; black club suit, =shamrock, U2663 ISOpub
&hearts; &#9829; black heart suit, =valentine, U2665 ISOpub
&diams; &#9830; black diamond suit, U2666 ISOpub

PYTHON FRAMEWORK

 https://kinsta.com/jp/blog/python-frameworks/

Jumat, 31 Oktober 2025