Jump to content
php.lv forumi

login formas


ziedinjsh

Recommended Posts

nu var jau arī bez js:

 

<style>
.con{
 margin:5px;
 padding:5px;
}
.con span{
 position:absolute;
 padding:4px;
}
.con input{
 position:relative;
 background:transparent;
 color:transparent;
}
.con input:focus{
 background:#fff;
 color:#000;
}
</style>
<div class="con">
 <span>Username</span>
 <input type="text" />
</div>  
<div class="con">
 <span>Password</span>
 <input type="text" /><br />
</div>  
<div class="con">  
 <span>Email</span>
 <input type="text" /><br />
</div>

Link to comment
Share on other sites

kāpēc šitais neiet

<script>
function openCloseDiv( elementId ){
 var element = document.getElementById(elementId);
 if ( element.style.display == 'block' ) {
   element.style.display = 'none';
 } else {
   element.style.display = 'block';
 }
}
</script>

<span title="Click here to display info..." onclick="openCloseDiv( 'DIVNAME' )">
Blah Blah....
</span>
<div id="DIVNAME" style="display: none;"></div>

Link to comment
Share on other sites

ieraksti tač kko tur iekšā, lai redzētu, vai tas strādā/nestrādā! :D:D:D

<div id="DIVNAME" style="display: none;">asdfasdfdsf</div>

tur viss strādā :P

 

kr4 šis ir ideāls piemērs tam, ka iedot gatavu skriptu neko nedod, ja saņēmējs nerubī fišku, kas ir js,css

vnk ir vajadzīgas kkādas zināšanas tajā sfērā, lai izmantotu arī gatavu kodu...

Edited by 2easy
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
Reply to this topic...

×   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.

Loading...
×
×
  • Create New...