• Page 1 of 1
  • 1
uCause Community » Trash & Archives » Other » Password for Ucoz (Password for Ucoz)
Password for Ucoz
interoutDate: Thursday, 2011-10-06, 5:23 AM | Message # 1
Member
Group: Senior Members
Messages: 146
Awards: 1
Reputation: 4
Status: :-(


installation:
This code put in front of the tag to the desired page:


In Main Page, Or Any Category There you nead !

Default Password: pass

Code

<html>      
      <head>      
      <title>Enter Your Password</title>      
      <META http-equiv="Content-Type" content="text/html; charset=windows-1251">      
       <Style>      
       A:Link{ Color: #000000; Text-decoration: underline}      
       A:Visited{ Color: #000000; Text-decoration: underline}      
       A:Hover{ Color: #000000; Text-decoration: none}      
       td, body {font-family: verdana, arial, helvetica; font-size:11px;}      
       </Style>      
         
      <!-- HEAD START HERE -->      
         
      <!-- HEAD END HERE -->      
         
      </head>      
      <body bgcolor="#EDEDED" text="#000000" link="#000000" topmargin="0" leftmargin="0">      
      <center>      
         
      <!-- BODY START HERE -->      
         
      <script language="JavaScript">      
       if (top.location.search=="") {      
       pass = prompt('Enter Your Password');      
       if  (pass=='pass') { alert('Password Accepted') } else { alert('Password Missed!'), top.location.href="http://filmsbaze.ucoz.net/" }      
       };      
      </script>      
         
      Password Accepted
         
      <!-- BODY END HERE -->      
         
      [color=red]Password: pass[/color]      
         
      </body>      
      </html>




Message edited by interout - Thursday, 2011-10-06, 5:25 AM
 
0 Thanked you For This Useful Post:
jackassDate: Thursday, 2011-10-06, 3:37 PM | Message # 2
Member
Group: Senior Members
Messages: 262
Awards: 4
Reputation: 8
Status: :-(
Code
<script language="JavaScript">       
if (top.location.search=="") {       
pass = prompt('Enter Your Password');       
if  (pass=='pass') { alert('Password Accepted') } else { alert('Password Missed!'), top.location.href="http://filmsbaze.ucoz.net/" }       
};       
</script>   




So why it's not working on cookie? When I refresh the page it ask me to enter password again!
Attachments: 1102233.png(20.6 Kb)


 
0 Thanked you For This Useful Post:
ParadoxDate: Thursday, 2011-10-06, 4:08 PM | Message # 3
Haunter
Group: Senior Members
Messages: 468
Awards: 6
Reputation: 11
Status: :-(
jackass, that is the nature of the script. If you would like I can build a cookie based one though that will time out every 3 hours or something like that.

Request Terminated_
 
0 Thanked you For This Useful Post:
jackassDate: Thursday, 2011-10-06, 4:44 PM | Message # 4
Member
Group: Senior Members
Messages: 262
Awards: 4
Reputation: 8
Status: :-(
Paradox, yes, do that wink

 
0 Thanked you For This Useful Post:
interoutDate: Friday, 2011-10-07, 2:12 AM | Message # 5
Member
Group: Senior Members
Messages: 146
Awards: 1
Reputation: 4
Status: :-(
Paradox, thanks

 
0 Thanked you For This Useful Post:
SirDarknight(Tonmoy)Date: Friday, 2011-10-07, 5:59 AM | Message # 6
Member
Group: Senior Members
Messages: 894
Awards: 10
Reputation: 15
Status: :-(
Very good script but needsome improvements as jackass said biggrin

Please Give Me A Award or + Rep If My Post Helps You

Please Give Me A Award or + Rep If You Like my Scripts
 
0 Thanked you For This Useful Post:
uCause Community » Trash & Archives » Other » Password for Ucoz (Password for Ucoz)
  • Page 1 of 1
  • 1
Search:


"Making uCoz web designs simple and easy to use"
- uCause Developers