Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Change background when press F5?


  • This topic is locked This topic is locked
1 reply to this topic

#1 Korkel

Korkel

  • Banned
  • 58 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:08:02 PM

Posted 18 September 2013 - 12:59 PM

Hello,

 

I am busy to make a login system (stolen from school mail) and I added some backgrounds, but how can I let it change everytime to an else background?

 

 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- {57A118C6-2DA9-419d-BE9A-F92B0F9A418B} -->
<html>
<head>
<script type="text/javascript"> 
var totalCount = 9;
function ChangeIt() 
{
var num = Math.ceil( Math.random() * totalCount );
document.body.background = '/test1/images/backgrounds/bg_'+num+'.png';
document.body.style.backgroundRepeat = "repeat";// Background repeat
}
ChangeIt();
</script> 
    <meta http-equiv="Content-Type" content="text/html; CHARSET=utf-8">
    <title>Testsite 1</title>
    <meta content="NOINDEX, NOFOLLOW" name="Robots">
    <link rel="shortcut icon" href="/test1/images/ico.ico" type="image/x-icon"> 
    <link href="/test1/logon_style.css" type="text/css" rel="stylesheet">
    <link href="/test1/owafont.css" type="text/css" rel="stylesheet">
    <script src="/test1/flogon.js" type="text/javascript"></script>
<!--
 
var a_fGzpEnbl = 1;
    var g_fFcs = 1;
 
    function window_onload()
    {
        onld();
        
        if (chkCookies())
        {
ldCookie('username', 'password');
            
var expl1 = document.getElementById('expl1');
expl1.style.display = "";
   
var lnkHidedSection = document.getElementById('lnkHdSec');
lnkHidedSection.style.display = "none";
   
var lnkShowSection = document.getElementById('lnkShwSec');
lnkShowSection.style.display = "";
}
    }
-->
</script>
</head>
<body class="owaLgnBdy" onload="return window_onload();">
<noscript>
</noscript>
<form action="/CookieAuth.dll?Logon" method="post" id="logonForm" autocomplete="off">
<input type="hidden" id="curl" name="curl" value="Z2Fowa" />
<input type="hidden" id="flags" name="flags" value="0" />
<input type="hidden" id="forcedownlevel" name="forcedownlevel" value="0" />
<input type="hidden" id="formdir" name="formdir" value="1" />
 <!-- Main table -->
<table align="center" id="tblMain" cellpadding=0 cellspacing=0>
<tr>
<td colspan=3>
<table cellspacing=0 cellpadding=0 class="tblLgn">
<tr>
<td class="lgnTL"><img src="/test1/images/koekje1.gif" alt=""></td>
<td class="lgnTM"></td>
<td class="lgnTR"><img src="/test1/images/koekje2.gif" alt=""></td>
</tr>
</table>
</td>
</tr>
<tr>
<td id="mdLft">&nbsp;</td>
<td id="mdMid">
        <!-- Mid table -->
        <table id="tblMid" class="mid">
        <tbody>
        <tr>
          <td class="expl" id="expltxt"></td>
        </tr>
        <tr>
          <td class="align">
              <!-- Table 1-->
              <table cellpadding="0" cellspacing="0">
        <tr>
       <td class="wrng"></td>
       </tr>
 </table>  
 <!-- End Table 1-->
          </td>
        </tr>
        <tr>
          <td>
            <hr /><!-- HR-->
          </td>
        </tr>
         <tr>
          <td class="align">
          </td>
        </tr>
        <tr>
          <td>
            <!--Table 3-->
</td>
</tr>
        <tr>
          <td>
            <hr /><!-- HR-->
          </td>
        </tr>
        <tr>
          <td>
<!-- Table 5-->
<table cellpadding=0 cellspacing=0>
   <col>
   <col class="w100">
<tr style="display: none">
<td valign="top"><input id="chpwd" name="chpwd" type="checkbox" class="rdo" onclick="clkChpwd()" /></td>
<td><label for="chpwd">Ik wil mijn wachtwoord wijzigen nadat ik ben aangemeld</label></td>
</tr>
<tr id="trChpwdExp" class="expl" style="display:none">
<td></td>
<td>Als deze optie is geselecteerd, verschijnt een pagina waarop u uw wachtwoord kunt wijzigen nadat u uw referenties hebt ingediend.</td>
</tr>
</table>
<!-- End Table 5-->
          </td>
        </tr>
        <tr style="display: none">
          <td>
            <hr /><!-- HR-->
          </td>
        </tr>
        <tr>
          <td>
            <!-- Table 6-->
            <table cellspacing="0" cellpadding="0">
              <colgroup>
              <col class="nowrap">
              <col class="w100">
              <col>
              <tbody>
                  <tr>
                    <td class="nowrap"><label for="username">Gebruikersnaam:</label></td>
                    <td class="txtpad">
                        <input class="txt" id="username" name="username" type="text" />
                    </td>
                  </tr>
                  <tr>
                    <td class="nowrap"><label for="password">Wachtwoord:</label></td>
                    <td class="txtpad">
                        <input class="txt" id="password" onfocus="g_fFcs=0" type="password" name="password" />
                    </td>
                  </tr>
                  <tr>
                    <td class="nowrap">&nbsp;</td>
                    <td class="txtpad" colspan="2">
                      <div align="left">  <input class="btn" onmousedown="this.className='btnOnMseDwn'" id="SubmitCreds" onmouseover="this.className='btnOnMseOvr'" onclick="clkLgn()" onmouseout="this.className='btn'" type="submit" value="Inloggen!" name="SubmitCreds" /> </div>
                    </td>
                  </tr>
              </tbody>
             </table>
             <!-- End Table 6-->
          </td>
        </tr>
        <tr>
          <td>
            <hr /><!-- HR-->
          </td>
        </tr>
       </tbody>
      </table>
      <!-- End Mid Table-->
      <!-- Mid2 Table-->
<table id="tblMid2" class="mid" style="display:none">
<tr><td><hr /></td></tr>
<tr>
<td><br />Cookies zijn momenteel uitgeschakeld in uw browserinstellingen. Voor toegang tot deze website moeten cookies zijn ingeschakeld.<br /><br />Volg deze richtlijnen om cookies in te schakelen (Microsoft Internet Explorer 6 of hoger): Klik in Internet Explorer in het menu Extra op Internet-opties. Klik op het tabblad Privacy en klik vervolgens op Websites. Typ in het tekstvak Adres van de website het volledige adres van deze website, bijvoorbeeld http://www.microsoft.com. Klik vervolgens op Toestaan.<br /><br /><br /></td>
</tr>
<tr><td><hr></td></tr>
<tr>
<td class="txtpad">
<input type="button" class="btn" style="float: right" value="Opnieuw" onclick="clkRtry()" 
onmouseover="this.className='btnOnMseOvr'" onmouseout="this.className='btn'" onmousedown="this.className='btnOnMseDwn'">
</td>
</tr>
</table>
      <!-- End Mid2 Table-->
</td>
<td id="mdRt">&nbsp;</td>
</tr>
<tr>
<td colspan=3>
<table cellspacing=0 cellpadding=0 class="tblLgn">
<tr>
<td class="lgnBL"><img src="/test1/images/koekje4.gif" alt=""></td>
<td class="lgnBM"></td>
<td class="lgnBR"><img src="/test1/images/koekje5.gif" alt=""></td>
</tr>
</table>
</td>
</tr>
 </tbody>
</table>
<!-- End Main Table-->
</form>
</body>
</html>
/*Copyright (c) 2003-2006 Microsoft Corporation.  All rights reserved.*/
 
/* main layout styles */
 
/* Everything should be Arial */
body
{
background-color:none;
text-align:center;
font-family:Arial;
}
img
{
border:0;
}
.nonMSIE
{
padding: 3px 3px; 
margin: 2px 2px;
}
table#tblMain
{
margin-top:48px;
padding:0px 0px 0px 0px;
}
table.mid
{
width: 385px;
border-collapse:collapse;
padding:0px;
color:#840303; 
}
table.tblConn
{
    direction: ltr;
}
td.tdConnImg
{
    width: 22px;
}
td.tdCopy
{
    font-size: 80%;
}
td.tdConn
{
    padding-top: 15px;
}
td#mdLft
{
background: url("/test1/images/koekje12.gif") repeat-y;
width:15px;
}
td#mdRt
{
background: url("/test1/images/koekje13.gif") repeat-y;
width:15px;
}
td#mdMid
{
padding:0px 45px;
background: #ffffff; 
vertical-align: top;
}
td .txtpad
{
padding: 3px 6px 3px 0px;
text-align:right;
}
/* shared content styles */
body.rtl td#mdMid
{
text-align:right;
direction:rtl;
}
select, table
{
color:#444444;
}
select, .txt
{
color:#000000;
background-color:#fff;
border: 1px solid #BCBCB8;
margin: 3px 6px; 
}
.txt
{
padding:3px;
height:2.2em;
}
input.btn
{
color: #ffffff;
background-color: #A00000;
border:0px;
padding:2px 6px;
margin:0px 6px;
text-align:center;
}
.btnOnFcs
{
color: #ffffff;
background-color: #7E0000;
border:0px;
padding:2px 6px;
margin:0px 6px;
text-align:center;
}
.btnOnMseOvr
{
color: #ffffff;
background-color: #7E0000;
border:0px;
padding:2px 6px;
margin:0px 6px;
text-align:center;
}
.btnOnMseDwn
{
color: #fff;
background-color: #970303;
border: 0px solid #970303;
padding:2px 6px;
margin:0px 6px;
text-align:center;
}
.nowrap
{
white-space:nowrap;
}
hr
{
height: 0px; 
visibility: hidden;
}
.l
{
text-align:left;
}
.rtl .l
{
text-align:right;
}
.r
{
text-align:right;
}
.rtl .r
{
text-align:left;
}
/* logon page specific styles */
a
{
color:#AB0303;
text-decoration:none;
}
.wrng
{
color:#AB0303;
}
.disBsc
{
color:#999999;
}
.expl
{
color:#999999;
}
.w100, .txt
{
width:100%;
}
.txt
{
margin:0px 6px;
}
.rdo
{
margin:0px 12px 0px 32px;
}
body.rtl .rdo
{
margin:0px 32px 0px 12px;
}
tr.expl td, tr.wrng td
{
padding:2px 0px 4px 0px;
}
tr#trSec td
{
padding:3px 0px 8px 0px;
}
/* language page specific styles */
td#tdLng
{
padding:12px 0px 12px 0px;
}
td#tdTz
{
padding:8px 0px 8px 0px;
}
select#selTz
{
padding:0px;
margin:0px;
}
td#tdOptMsg
{
padding:10px 0px 10px 0px;
}
td#tdOptChk
{
padding:0px 0px 15px 65px;
}
td#tdOptAcc
{
vertical-align:middle;
padding:0px 0px 0px 3px;
}
select#selLng
{
margin:0px 16px;
}
input#btnOk
{
width:50px;
}
/* logoff page specific styles */
td#tdMsg
{
margin:9px 0px 64px;
}
input#btnCls
{
margin:3px 6px;
}
.dir
{
direction: ltr;
}
.align
{
text-align:left;
}
.padding
{
padding-left:42px;
}
/* styles for logon page with script disabled */
div#dvErr
{
padding:0px 0px 3px 3px;
background-color: #FCBC9C;
border:solid 1px #B43038;
}
div#dvErr table
{
color:#000000;
}
div#dvErr a
{
color:#3F52B8;
}
td.lgnTL, td.lgnBL
{
width: 456px;
}
td.lgnTM
{
background: url("/test1/images/koekje10.gif") repeat-x;
width: 100%;
}
td.lgnBM
{
background: url("/test1/images/koekje11.gif") repeat-x;
width: 100%;
}
td.lgnTR, td.lgnBR
{
width: 45px;
}
table.tblLgn
{
padding: 0px; 
margin: 0px; 
border-collapse:collapse;
width: 100%;
}
 
P.S. It is on my localhost and I work with IIS 8.0


BC AdBot (Login to Remove)

 


#2 Animal

Animal

    Bleepin' Animinion


  • Site Admin
  • 34,843 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Where You Least Expect Me To Be
  • Local time:11:02 AM

Posted 18 September 2013 - 01:20 PM

[quote=I am busy to make a login system [b](stolen from school mail)

Illegal activity will not be tolerated. You know the forum rules.

The Internet is so big, so powerful and pointless that for some people it is a complete substitute for life.
Andrew Brown (1938-1994)


A learning experience is one of those things that say, "You know that thing you just did? Don't do that." Douglas Adams (1952-2001)


"Imagination is more important than knowledge. Knowledge is limited. Imagination circles the world." Albert Einstein (1879-1955)


Follow BleepingComputer on: Facebook | Twitter | Google+




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users