Header

From Dxx

(Difference between revisions)
Line 1: Line 1:
-
<!-- this script got from www.javascriptfreecode.com-Coded by: Krishna Eydatoula -->
 
-
<!-- Web Site:  http://www.javakhafan.9f.com-->
 
-
<!-- javakhafan.9f.com -->
 
-
<script>
 
-
// Set the number of snowflakes (more than 30 - 40 not recommended)
 
-
var snowmax=35
 
-
// Set the colors for the snow. Add as many colors as you like
 
-
var snowcolor=new Array("#aaaacc","#ddddFF","#ccccDD")
 
-
 
-
// Set the fonts, that create the snowflakes. Add as many fonts as you like
 
-
var snowtype=new Array("Arial Black","Arial Narrow","Times","Comic Sans MS")
 
-
 
-
// Set the letter that creates your snowflake (recommended:*)
 
-
var snowletter="*"
 
-
 
-
// Set the speed of sinking (recommended values range from 0.3 to 2)
 
-
var sinkspeed=0.6
 
-
 
-
// Set the maximal-size of your snowflaxes
 
-
var snowmaxsize=22
 
-
 
-
// Set the minimal-size of your snowflaxes
 
-
var snowminsize=8
 
-
 
-
// Set the snowing-zone
 
-
// Set 1 for all-over-snowing, set 2 for left-side-snowing
 
-
// Set 3 for center-snowing, set 4 for right-side-snowing
 
-
var snowingzone=3
 
-
 
-
///////////////////////////////////////////////////////////////////////////
 
-
// CONFIGURATION ENDS HERE
 
-
///////////////////////////////////////////////////////////////////////////
 
-
 
-
 
-
// Do not edit below this line
 
-
var snow=new Array()
 
-
var marginbottom
 
-
var marginright
 
-
var timer
 
-
var i_snow=0
 
-
var x_mv=new Array();
 
-
var crds=new Array();
 
-
var lftrght=new Array();
 
-
var browserinfos=navigator.userAgent
 
-
var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/)
 
-
var ns6=document.getElementById&&!document.all
 
-
var opera=browserinfos.match(/Opera/) 
 
-
var browserok=ie5||ns6||opera
 
-
 
-
function randommaker(range) {
 
-
rand=Math.floor(range*Math.random())
 
-
    return rand
 
-
}
 
-
 
-
function initsnow() {
 
-
if (ie5 || opera) {
 
-
marginbottom = document.body.clientHeight
 
-
marginright = document.body.clientWidth
 
-
}
 
-
else if (ns6) {
 
-
marginbottom = window.innerHeight
 
-
marginright = window.innerWidth
 
-
}
 
-
var snowsizerange=snowmaxsize-snowminsize
 
-
for (i=0;i<=snowmax;i++) {
 
-
crds[i] = 0;                     
 
-
    lftrght[i] = Math.random()*15;       
 
-
    x_mv[i] = 0.03 + Math.random()/10;
 
-
snow[i]=document.getElementById("s"+i)
 
-
snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)]
 
-
snow[i].size=randommaker(snowsizerange)+snowminsize
 
-
snow[i].style.fontSize=snow[i].size
 
-
snow[i].style.color=snowcolor[randommaker(snowcolor.length)]
 
-
snow[i].sink=sinkspeed*snow[i].size/5
 
-
if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}
 
-
if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}
 
-
if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}
 
-
if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}
 
-
snow[i].posy=randommaker(2*marginbottom-marginbottom-2*snow[i].size)
 
-
snow[i].style.left=snow[i].posx
 
-
snow[i].style.top=snow[i].posy
 
-
}
 
-
movesnow()
 
-
}
 
-
 
-
function movesnow() {
 
-
for (i=0;i<=snowmax;i++) {
 
-
crds[i] += x_mv[i];
 
-
snow[i].posy+=snow[i].sink
 
-
snow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i]);
 
-
snow[i].style.top=snow[i].posy
 
-
 
-
if (snow[i].posy>=marginbottom-2*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){
 
-
if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}
 
-
if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}
 
-
if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}
 
-
if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}
 
-
snow[i].posy=0
 
-
}
 
-
}
 
-
var timer=setTimeout("movesnow()",50)
 
-
}
 
-
 
-
for (i=0;i<=snowmax;i++) {
 
-
document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowletter+"</span>")
 
-
}
 
-
if (browserok) {
 
-
window.onload=initsnow
 
-
}
 
-
</script>
 

Revision as of 13:43, 10 December 2008






<style type="text/css">

  /*
     Notes: 
      -You must log as admin to edit this page
      -Whatever you enter in this page will be added to the html in the header after the standard style sheet, so you can override styles. 
      -if you want your code to look nice on this page, put a space at the beginning of each line
      -This is the default style sheet that you can override : http://editthis.info/wiki/skins/monobook/main.css 
      
      For example uncomment this next section to turn all the text green:
  */
 /*
body {
   color: green;
}
 */ 
</style>

<style type="text/css">

  /* Positioning */
  
  #globalWrapper {
      position: relative;
      width: 950px;
      margin: 0px auto 0;
      padding: 0 5px 4px;
  }


<style type="text/css">

/* Orange "You have new messages" changed to use that nice icon of a rotary phone and complimenting colors */ .usermessage {

   background-color: transparent;
   background: url('http://upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Exquisite-Modem_cropped.png/32px-Exquisite-Modem_cropped.png') no-repeat left;
   color: #444444;
   border: none;
   font-weight: bold;
   margin: 2em 0em 1em 0em;
   padding-left: 3.5em;
   vertical-align: middle;

}

.usermessage a {

   color:#444444;

}

/* "From Wikipedia, the free encyclopedia" modification */

  1. siteSub {
   font-family:Trebuchet MS;
   font-size: 95%;

}

/* Text alignment */ body.mediawiki {

   text-align: left;

}

/* Tab rounding */

  1. p-cactions ul

{

       overflow:visible;

}

  1. p-cactions li

{

       border: 2px solid lightgrey;
       position: relative;
       float: left;
       -moz-border-radius-topleft: .5em;
       -moz-border-radius-topright: .5em;

}

/* Get rid of the border in the page title */ .firstHeading {

   border-bottom:none;

}

hr#hrTitleModification {

   width:0%;

}

/* Replace dotted borders on pre with a solid one. */

  1. bodyContent pre {
   border: 1px solid #aaa;

}

/* Miscellaneous Corner-rounding */ div.pBody {

   -moz-border-radius-topright:0.5em;
   -moz-border-radius-bottomright:0.5em;

}

  1. content {
   -moz-border-radius-topleft: 0.75em;
   -moz-border-radius-bottomleft: 0.75em;
   border:1px solid #AAAAAA;

}

  1. footer {
   -moz-border-radius: 6px;
   border:1px solid #fabd23;

}

/* Link customization */

  1. bodyContent a:active { font-weight: normal; }
  2. bodyContent a.interwiki, a.external { color: #002bb8; background:none; }}
  3. bodyContent a.text { background: display; }

/* Some editing screen modifications */

  1. editpage-copywarn3, #editpage-copywarn2, #editpage-copywarn {
   display: none;

}

input#wpSummary {

   width: 50%;
   margin-top: 12px;

}

.editHelp {

   margin-top:1.25em;
   margin-bottom:6px;

}

  1. wpSave, #wpPreview {
   margin-right:1px;

}

  1. previewnote {
   text-decoration: blink;

}

  1. toolbar {
   display: none;

}

textarea#wpTextbox1 {

   background-color: #FFFFFF; /* Kill the horrible new background color for certain pages */
   border: 1px solid #AAAAAA;

}

  1. longpagewarning {
   display:none

}

/* Get RID of that annoying fund raiser advert */

  1. siteNotice {
   display:none

}

/* Admin tools link fixer */

  1. adminbarlinks a:visited {
   color:#002BB8

}

/* Patrolled pages fixer */ .patrollink {

   display:none

} li.not-patrolled {

   background-color:transparent

}

/* This bit is stolen from User:AzaToth/monobook.css, which is in turn modified from [[User:��var Arnfj�¶r�° Bjarmason/monobook.css]] */

/* Nice borders for (almost) all boxes */ input[type="radio"], input[type="checkbox"] { border:none; } input[type="submit"] {

   border: 1px solid #aaa !important;
   background-color: #f9f9f9 !important;

} /* make round corners for the rest */ input[type="submit"] {

  -moz-border-radius-topleft: 2px !important; 
  -moz-border-radius-topright: 2px !important;
  -moz-border-radius-bottomleft: 2px;
  -moz-border-radius-bottomright: 2px;

} input[type="submit"] {color: #aaa !important;} input[type="submit"]:hover, input[type="submit"]:focus {background-color: #fff !important; color: #000 !important; cursor: pointer !important;}

/* For use with my monobook */ .ns-0 * .tabmenu ul li {

   background: white !important;

}

/* Prettify the headers of the quickbar (left-hand column of boxes) */

  1. p-navigation h5, #p-interaction h5, #p-search h5, #p-tb h5, #p-navclone h5, #p-lang h5 {
   display: inline;
   height: 1em;
   font-size: 85%;
   font-weight: normal;
   white-space: nowrap;
   border-color:#aaa; 
   border-width:1px;
   border-style: solid solid none solid;
   padding: 0 1em 1px 1em;
   text-transform: lowercase;
   background: white;
   -moz-border-radius-topright:1em

}

  1. p-navigation, #p-interaction, #p-search, #p-tb, #p-navclone, #p-lang {
   padding-top: 2px;

}

/* Diff screen changes */

del.diffchange.diffchange-inline, ins.diffchange.diffchange-inline {

   border:none;

}

/* Works in conjunction with my monobook.js */

li#ca-userrights, li#ca-stats6, li#ca-rts {

   display:none;

}

/* Space below is for testing */ </style>

Personal tools
DXX Roster