動態(tài)改變textbox的寬高的js
更新時間:2006年10月26日 00:00:00 作者:
復(fù)制代碼 代碼如下:
<INPUT type="button" value="↓" onclick="document.getElementById('temp10966').style.height=(parseInt
(document.getElementById('temp10966').style.height)+150).toString()+'px'">
<INPUT type="button" value="↑" onclick="if(parseInt(document.getElementById('temp10966').style.height)>150)
{document.getElementById('temp10966').style.height=(parseInt(document.getElementById('temp10966').style.height)-
150).toString()+'px'}">
<input type="button" value="→" onclick="document.getElementById('temp10966').wrap=='soft'?document.getElementById
('temp10966').wrap='off':document.getElementById('temp10966').wrap='soft';this.value=='→'?this.value='←':this.value='→'">
您可能感興趣的文章:
- JS上傳圖片前的限制包括(jpg jpg gif及大小高寬)等
- Js獲取圖片原始寬高的實現(xiàn)代碼
- js判斷圖片加載完成后獲取圖片實際寬高的方法
- javascript實現(xiàn)網(wǎng)頁中涉及的簡易運動(改變寬高、透明度、位置)
- js獲取圖片寬高的方法
- 純js代碼實現(xiàn)未知寬高的元素在指定元素中垂直水平居中顯示
- javascript獲取網(wǎng)頁寬高方法匯總
- 原生js獲取寬高與jquery獲取寬高的方法關(guān)系對比
- JS 獲取瀏覽器和屏幕寬高等信息代碼
- javascript窗口寬高,鼠標(biāo)位置,滾動高度(詳細(xì)解析)
- JS獲取圖片實際寬高及根據(jù)圖片大小進行自適應(yīng)
- JS 獲取瀏覽器和屏幕寬高等信息的實現(xiàn)思路及代碼
- javascript獲取隱藏dom的寬高 具體實現(xiàn)
- js 獲取屏幕各種寬高的方法(瀏覽器兼容)
- JS獲取IMG圖片高寬的簡單實例
相關(guān)文章
javascript在一段文字中的光標(biāo)處插入其他文字
javascript在一段文字中的光標(biāo)處插入其他文字...2007-08-08javascript select options 排序(保持option 對象完整性)
select options 排序(保持option 對象完整性)2010-03-03