JAVA工具
JAVA使用軟件 開發工具 |
<style type="text/css">
.scroll {
width: 300px; /*寬度*/
height: 200px; /*高度*/
color: red; /*顏色*/
font-family: 楷體; /*字體*/
padding-left: 10px; /*層內左邊距*/
padding-right: 10px; /*層內右邊距*/
padding-top: 10px; /*層內上邊距*/
padding-bottom: 10px; /*層內下邊距*/
overflow-x: auto; /*橫向滾動條(scroll:始終出現;auto:必要時出現;具體參考CSS文檔)*/
overflow-y: auto; /*豎向滾動條*/
}
</style>
<div align="center">
<div class="scroll">
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
內容。<br />
</div>
</div>
2.受周圍人嫉妒,非議的人大多具有能力。人們從來不會去嫉妒弱者。人們也不會去踹一只死狗。
3.找女朋友,找男朋友時,眼光很高的人也是有過人之處的,他們追求卓越完美。
4.敢在人群中發出與眾不同的聲音的人,敢得罪人群的人,必是有大本領。
5.固執的人多數時候要比隨順的人要強,狂妄的人也多數時候有過人之處。
6.走路比常人快,腰桿比常人直的人,多有過人之處。
7.喜歡靜靜沉思的人,走在路上神情鎮靜穩定,不東張西望的人,腦袋里面定有他的想法。
8.當一大群人都反對他的時候,他還是依然不改變他的想法的人,定是能干的人。
9.為了生存能夠放下架子去撿垃圾,察皮靴的人日后會有出息。
10.幾乎聽不到他說某某某很厲害的人,不可以小視。那些整天在吹噓別人成就的人,多是沒出息的人。
11.看他做事情條理分明,步步都顯出目的性的人,腦袋不會是弱智。今年干的事,明年還見到他在干,
一般這種人定有持之以恒的精神,不可小視。
12.比較講究自己儀表,言行舉止的人,應該是有教養或者是有見識的人。
13.瘋狂的人,富有激情的人,充滿熱情的人多能闖出名堂。
14.能夠很好的品評各種人物的人,定有他的洞察力。大多數人似乎覺得周圍的人相差不大,這就是缺乏洞察力的表現。
憤青中有大量的人會成為極為優秀的人,憤青雖然現在多是貶義,但是決不要以為憤青真的沒出息。那些從來不憤的人,
不要相信他會有多優秀。
15.干出了些常人干不了的事的人不可以小看。甚至那些進過監獄的人也不可以小看。
16.有著強烈欲望,強烈渴求,強烈支配欲,表現欲的人不可以小看,這些是成功的開始。
17.激進的人日后一旦變得穩重,定會有大能力。http://www.aygfsteel.com/Files/niudan/jquery-1.7.1.min.rar
總之,有一條原則:最有能力的人都有某種奇異之處,這使他與常人區分開。當你發現一個人與大眾很不一樣時,
那么你就應該知道,你很有可能發現了一個優秀的人。
<a title="減一" onclick="subtractCount('p001')" href="#none" clstag="clickcart|keycount|shoppingcartpop|diminish1"><img src="skin/images/bag_close.gif" alt="66" border="none" width="20"/></a>
<input id="p001Count" width="20" value="1" maxlength="4" type="text" name="txtChange593235" onkeyup="keyUpCheck(this,'p001')" />
<a title="加一" onclick="addCount('p001')" href="#none" clstag="clickcart|keycount|shoppingcartpop|add1"><img src="skin/images/bag_open.gif" alt="666" border="none" width="20"/></a>
<input type="hidden" id="p001PerPrice" value="3400.31"/>
<input type="hidden" id="p001StockCount" value="10"/>
</td>
</tr>
<tr>
<td width="7%">商品編號</td>
<!--td width='6%' style='height:30px;'>商品編號</td-->
<td>商品名稱</td>
<td width="14%">京東價</td>
<td width="8%">返現</td>
<td width="8%">贈送積分</td>
<!--td width='10%'>京東價</td> <td width='10%'>優惠明細</td> <td width='11%'>送至{Provinces}</td-->
<td width="9%">商品數量</td>
<td width="7%">刪除商品</td>
</tr>
<tr>
<td>593235</td>
<td><div><a target="_blank" clstag="clickcart|keycount|shoppingcartpop|p-imglistcart"><img alt="66" /></a></div>
</td>
<td>¥10.3 </td>
<td>¥0.00</td>
<td>0</td>
<!--td>-</td-->
<!--td></td-->
<td>
<a title="減一" onclick="subtractCount('p002')" href="#none" clstag="clickcart|keycount|shoppingcartpop|diminish1"><img src="skin/images/bag_close.gif" alt="66" border="none" width="20"/></a>
<input id="p002Count" width="20" value="1" maxlength="4" type="text" name="txtChange593235" onkeyup="keyUpCheck(this,'p002')" />
<a title="加一" onclick="addCount('p002')" href="#none" clstag="clickcart|keycount|shoppingcartpop|add1"><img src="skin/images/bag_open.gif" alt="666" border="none" width="20"/></a>
<input type="hidden" id="p002PerPrice" value="1000.3"/>
<input type="hidden" id="p002StockCount" value="10"/>
</td>
</tr>
<tr>
<td colspan="7"><br />
<strong>商品總金額:¥<span id="cartBottom_price">3499.00</span>元</strong></td>
</tr>
</table>
<script type="text/javascript">
/*
要點元素
<a title="減一" onclick="subtractCount('p001')" --傳產品編號唯一
<a title="加一" onclick="addCount('p002')" --上同功能加
//產品數量 id="pid"+"Count"
onkeyup="keyUpCheck(this,'p002')" 這個是檢查庫存數量的
<input id="p002Count" width="20" value="1" maxlength="4" type="text" name="txtChange593235" onkeyup="keyUpCheck(this,'p002')" />
以下是產品單價的隱藏域
<input type="hidden" id="p002PerPrice" value="1000.3"/>
一下產品庫存數量的隱藏域
<input type="hidden" id="p002StockCount" value="10"/>
這個地方是要計算產品的id集合
var pids = ["p001","p002"];
cartBottom_price 總價格id
PerCount
*/
var pids = ["p001","p002"];
function JSRound(fNum,fBit){
var i = 1;
var m = 1;
var tempNum = fNum;
for(i=0;i <= fBit;i++)
m = m * 10;
tempNum = tempNum * m;
tempNum = Math.round(tempNum);
tempNum = tempNum / m;
return tempNum;
}
function $(id)
{
return document.getElementById(id);
}
function addCount(pid)
{
var currentVal = $(pid+"Count").value;
var stockCurrentVal = $(pid+'StockCount').value;
currentVal=parseInt(currentVal)+1;
if(currentVal>stockCurrentVal)
{
alert("庫存為"+stockCurrentVal+"個僅能購買次數量");
currentVal=stockCurrentVal;
}
$(pid+"Count").value=currentVal;
computeTotal();
}
function subtractCount(pid)
{
var currentVal = $(pid+"Count").value;
var stockCurrentVal = $(pid+'StockCount').value;
currentVal=parseInt(currentVal)-1;
if(currentVal<=0)
{
currentVal=1;
}
if(currentVal>stockCurrentVal)
{
alert("庫存為"+stockCurrentVal+"個僅能購買次數量");
currentVal=stockCurrentVal;
}
$(pid+"Count").value=currentVal;
computeTotal();
}
function computeTotal(){
var totalMoney =0;
var perMoney=0;
for(var i=0;i<pids.length;i++)
{
try{
perMoney = parseFloat($(pids[i]+"PerPrice").value)*parseInt($(pids[i]+"Count").value);
}
catch(e)
{
perMoney=0;
}
totalMoney+=perMoney;
}
totalMoney = JSRound(totalMoney,2);
$("cartBottom_price").innerHTML=totalMoney;
}
function keyUpCheck(obj,pid){
obj.value = obj.value.replace(/[\D]+/,'');
var stockCurrentVal = $(pid+'StockCount').value;
if(parseInt(obj.value)>stockCurrentVal)
{
obj.value=stockCurrentVal;
}
}
</script>