Jump to content
Fórum Script Brasil
  • 0

botão seguir igual twitter


Daniel Correia

Question

1 answer to this question

Recommended Posts

  • 0

Boa tarde.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<title>teste</title>

<script>

function muda(oObj){

oObj.className = ( oObj.className == 'btSeguir' ) ? 'btNSeguir' : 'btSeguir' ;

oObj.innerHTML = ( oObj.className == 'btSeguir' ) ? 'Seguir' : 'Seguindo' ;

}

</script>

<style>

.btSeguir{

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 11px;

font-style: normal;

line-height: normal;

font-weight: bold;

font-variant: normal;

text-transform: capitalize;

color: #000000;

text-align: center;

vertical-align: middle;

height: 25px;

width:10%;

border: 1px dashed #000000;

cursor:pointer;

}

.btNSeguir{

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 11px;

font-style: normal;

line-height: normal;

font-weight: bold;

font-variant: normal;

text-transform: capitalize;

color: #0066CC;

text-align: center;

vertical-align: middle;

height: 25px;

width:10%;

border: 1px dashed #000000;

background-color: #DDF4FF;

cursor:pointer;

}

</style>

</head>

<body>

<button class="btSeguir" onClick="muda(this);">Seguir</button>

</body>

</html>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...