CSS style for input

Source: Internet
Author: User
Tags tagname

Cssfile:

Input {

Behavior:url (BINDBUTTON.HTC);

}

Htcfile:

  <public:component lightweight=true>
<public:attach event= "Oncontentready" onevent= "load ()"/>

<public:attach event= "onmouseout" onevent= "mouseout ()"/>

<public:attach event= "onmouseover" onevent= "MouseMove ()"/>

<public:attach event= "onmousedown" onevent= "MouseDown ()"/>

<public:attach event= "onmouseup" onevent= "MouseUp ()"/>
<public:property name= "direction"/>


<script language= "JScript" >

function Load ()

if (element.tagname = = ' INPUT ' && (element.type = ' button ' | | | element.type = ' Submit ' | | Element.type = = ' Reset ') || (Element.tagname = = ' BUTTON '))     

  {
element.style[' background '] = ' ... ';

  element.style.border = (element.type== ' CheckBox ' | | element.type== ' Radio ')? ' None ': ' 1px  double #888888 '); 



  function setimage (simg)  
  < span Arial Narrow '; font-size:14px; line-height:26px; ">{&NBSP
  if (bset)  
  {&NBSP
  //element.style[' background '] = ' URL (' + simg + ') ';  




function Mouseout () {setimage (Anormal[idir]); try{element.style.mozopacity=0.8;element.filters.alpha.opacity=80;} catch (e) {}}    

  function MouseMove () {setimage (Aover[idir]); try{element.style.mozopacity=1;element.filters.alpha.opacity=100;} catch (e) {}}  

  function MouseDown () {setimage (Aclick[idir]);}
function MouseUp () {setimage (Anormal[idir]);}

</SCRIPT>

</PUBLIC:COMPONENT>

Note : More wonderful articles please pay attention to the triple web Design tutorial section.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.