■ 簡単電卓NO2 背景・色タイプ ■
7
8
9
×
4
5
6
÷
1
2
3
+
0
.
=
−
All Clear
HR>
↓のタグソースを
<head>〜</head> 間に書き込んでください。
<script language="JavaScript"> <!-- anko = ""; kina = ""; calctype="+"; function setValue(n){anko += n;document.forms[0].elements[0].value=anko;} function mathType(n){kina=anko;calctype=n;anko="";} function clear(){kina=""; anko="";document.forms[0].elements[0].value="";} function calc(){ a = eval(kina); b = eval(anko); kina = eval('a'+calctype+'b'); document.forms[0].elements[0].value=kina; } // --> </script>
↓のタグソースを
<body>〜</body> 間に書き込んでください。
<table border="0" CELLSPACEING="2" bgcolor="#e0e0e0" style="border:ridge 1px #8E8E8E;" align="center"> <TR> <td colspan="4" align="center"> <form style="margin-top:15px;"><input size="25"> </form><HR> </td> </TR> <TR> <td style="width:40px;height:40px;background-color:#000000;border-style:inset;border-color:#bebebe;border-width:5px;" align=center><a href="JavaScript:setValue('7')" style="text-decoration:none;"><font face="comic sans ms" size=4 color="ffffff"><B>7</B></font></a> </td> <td style="width:40px;height:40px;background-color:#000000;border-style:inset;border-color:#bebebe;border-width:5px;" align=center><a href="JavaScript:setValue('8')" style="text-decoration:none;"><font face="comic sans ms" size=4 color="ffffff"><B>8</B></font></a> </td> <td style="width:40px;height:40px;background-color:#000000;border-style:inset;border-color:#bebebe;border-width:5px;" align=center><a href="JavaScript:setValue('9')" style="text-decoration:none;"><font face="comic sans ms" size=4 color="ffffff"><B>9</B></font></a> </td> <td style="width:40px;height:40px;background-color:#000000;border-style:inset;border-color:#bebebe;border-width:5px;" align=center><a href="JavaScript:mathType('*')" style="text-decoration:none;"><font face="comic sans ms" size=4 color="ffffff"><B>×</B></font></a> </td> </tr> <tr> <td style="width:40px;height:40px;background-color:#000000;border-style:inset;border-color:#bebebe;border-width:5px;" align=center><a href="JavaScript:setValue('4')" style="text-decoration:none;"><font face="comic sans ms" size=4 color="ffffff"><B>4</B></font></a> </td> <td style="width:40px;height:40px;background-color:#000000;border-style:inset;border-color:#bebebe;border-width:5px;" align=center><a href="JavaScript:setValue('5')" style="text-decoration:none;"><font face="comic sans ms" size=4 color="ffffff"><B>5</B></font></a> </td> <td style="width:40px;height:40px;background-color:#000000;border-style:inset;border-color:#bebebe;border-width:5px;" align=center><a href="JavaScript:setValue('6')" style="text-decoration:none;"><font face="comic sans ms" size=4 color="ffffff"><B>6</B></font></a> </td> <td style="width:40px;height:40px;background-color:#000000;border-style:inset;border-color:#bebebe;border-width:5px;" align=center><a href="JavaScript:mathType('/')" style="text-decoration:none;"><font face="comic sans ms" size=4 color="ffffff"><B>÷</B></font></a> </td> </tr> <tr> <td style="width:40px;height:40px;background-color:#000000;border-style:inset;border-color:#bebebe;border-width:5px;" align=center><a href="JavaScript:setValue('1')" style="text-decoration:none;"><font face="comic sans ms" size=4 color="ffffff"><B>1</B></font></a> </td> <td style="width:40px;height:40px;background-color:#000000;border-style:inset;border-color:#bebebe;border-width:5px;" align=center><a href="JavaScript:setValue('2')" style="text-decoration:none;"><font face="comic sans ms" size=4 color="ffffff"><B>2</B></font></a> </td> <td style="width:40px;height:40px;background-color:#000000;border-style:inset;border-color:#bebebe;border-width:5px;" align=center><a href="JavaScript:setValue('3')" style="text-decoration:none;"><font face="comic sans ms" size=4 color="ffffff"><B>3</B></font></a> </td> <td style="width:40px;height:40px;background-color:#000000;border-style:inset;border-color:#bebebe;border-width:5px;" align=center><a href="JavaScript:mathType('+')" style="text-decoration:none;"><font face="comic sans ms" size=4 color="ffffff"><B>+</B></font></a> </td> </tr> <tr> <td style="width:40px;height:40px;background-color:#000000;border-style:inset;border-color:#bebebe;border-width:5px;" align=center><a href="JavaScript:setValue(0)" style="text-decoration:none;"><font face="comic sans ms" size=4 color="ffffff"><B>0</B></font></a> </td> <td style="width:40px;height:40px;background-color:#000000;border-style:inset;border-color:#bebebe;border-width:5px;" align=center><a href="JavaScript:setValue('.')" style="text-decoration:none;"><font face="comic sans ms" size=4 color="ffffff"><B>.</B></font></a> </td> <td style="width:40px;height:40px;background-color:#000000;border-style:inset;border-color:#bebebe;border-width:5px;" align=center><a href="JavaScript:calc('=')" style="text-decoration:none;"><font face="comic sans ms" size=4 color="ffffff"><B>=</B></font></a> </td> <td style="width:40px;height:40px;background-color:#000000;border-style:inset;border-color:#bebebe;border-width:5px;" align=center><a href="JavaScript:mathType('-')" style="text-decoration:none;"><font face="comic sans ms" size=4 color="ffffff"><B>−</B></font></a> </td> </tr> <tr> <td colspan="4" bgcolor=#000000 style="border:1px ridge #e0e0e0" align="center"><hr><a href="JavaScript:clear()"><font face="comic sans ms" color="#e0e0e0">All Clear</font></a> </td> </tr></table>
SEO
掲示板
[PR]
爆速!無料ブログ
無料ホームページ開設
無料ライブ放送