Здравейте.Въпросът ми е относно към скрипта за снега, къде трябва да го сложа този код и как трябва да стане за да може да вали.Всякакви начини опитвах нестава плс помощ.
Само тези фаилове има 4те
Мерси предварително.
// CREDITS:
// Snowmaker Copyright (c) 2003 Peter Gehrig. All rights reserved.
// Distributed by http://www.hypergurl.com
// Permission given to use the script provided that this notice remains as is.
// Set the number of snowflakes (more than 30 - 40 not recommended)
var snowmax=25
// 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=1.5
// Set the maximal-size of your snowflaxes
var snowmaxsize=26
// 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=1
///////////////////////////////////////////////////////////////////////////
// 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+0
marginright = document.body.clientWidth
}
else if (ns6) {
marginbottom = window.innerHeight+0
marginright = window.innerWidth
}
var snowsizerange=snowmaxsize-snowminsize
for (i=0;i<=snowmax;i++) {
crds = 0;
lftrght = Math.random()*15;
x_mv = 0.03 + Math.random()/10;
snow=document.getElementById("s"+i)
snow.style.fontFamily=snowtype[randommaker(snowtype.length)]
snow.size=randommaker(snowsizerange)+snowminsize
snow.style.fontSize=snow.size
snow.style.color=snowcolor[randommaker(snowcolor.length)]
snow.sink=sinkspeed*snow.size/5
if (snowingzone==1) {snow.posx=randommaker(marginright-snow.size-50)}
if (snowingzone==2) {snow.posx=randommaker(marginright/2-snow.size)}
if (snowingzone==3) {snow.posx=randommaker(marginright/2-snow.size)+marginright/4}
if (snowingzone==4) {snow.posx=randommaker(marginright/2-snow.size)+marginright/2}
snow.posy=randommaker(6*marginbottom-marginbottom-6*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-6*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){
if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size-50)}
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
}
[color=red]footer.php[/color]
</td>
<?php
if(mysql_query("SELECT * FROM blocks WHERE position='r'"))
right_menu();
?>
</tr>
<tr>
<td height="20%" colspan="2">
<?php
//print("<p align=right>BtitTracker (Alpha3) by Btiteam</p>"); //mysql_stat());
?>
</td></tr>
</table>
</table>
[color=red]header.php[/color]
<?php
require_once("include/functions.php");
require_once("include/config.php");
require_once("include/blocks.php");
?>
<?php
//Side menu by fatepower, start
global $USE_SIDE_MENU;
if ($USE_SIDE_MENU)
{
?>
<head>
<style type="text/css">
</style>
<style type="text/css">
</style>
<SCRIPT SRC="js/ssm.js" language="JavaScript1.2">
//Dynamic-FX slide in menu v6.5 (By maXimus, http://maximus.ravecore.com/)
//Updated July 8th, 03' for doctype bug
//For full source, and 100's more DHTML scripts, visit http://www.dynamicdrive.com
</SCRIPT>
<SCRIPT SRC="js/ssmItems.js" language="JavaScript1.2"></SCRIPT>
</head>
<?php
}
//Side menu by fatepower, ends
?>
<table width="100%" height="100%" border="0">
<tr>
<td height="100" colspan="2">
<table width=100%>
<tr><td align=left>
<div><center><a href=./index.php><img border=0 src="<?php echo $STYLEPATH ?>/logo.gif"></a></center></div>
</td>
</tr>
</table>
</td>
</tr>
<tr><td height="100" colspan="2">
<?php
main_menu();
//User Warning System Hack Start - 11:20 01.08.2006
$resuser=mysql_query("SELECT disabled FROM users WHERE id=".$CURUSER["uid"]);
$rowuser=mysql_fetch_array($resuser);
if ($rowuser["disabled"] == "yes")
{
redirect("logout.php");
}
else
{
}
//User Warning System Hack Stop
?>
</td></tr>
<table width="100%" height="100%" border="0">
<tr>
<?php
side_menu();
?>
<td valign=top>
<div id="adds-box" align="left">
<script type="text/javascript">
</script>
<script type="text/javascript"
</script>
</div>
[color=red]index.php[/color]
<?php
header ("Location: ../../index.php");
?>
[color=red]torrent.css[/color]
body {
font-family: "tahoma", "arial", "helvetica", "sans-serif";
font-size: 8pt;
background: url('eba.gif');
scrollbar-face-color: #4E5559;
scrollbar-highlight-color: #A3A3A3;
scrollbar-shadow-color: #000000;
scrollbar-3dlight-color: #000000;
scrollbar-arrow-color: #A3A3A3;
scrollbar-track-color: #000000;
scrollbar-darkshadow-color: #000000;
color: #EFEFEF;
}
a:link,a:active,a:visited { color : #FFC000; }
a:hover { text-decoration: underline; color : #FF8000; }
h1 {
font-size: 12pt;
}
p {
font-size: 10pt;
}
table.lista {
font-size: 8pt;
background-color: #87898A;
border: 1px #F6F6F6 solid;
}
td.block {
border:1px solid #FFFFFF;
background-color: #000000;
background-image:url(block_back.gif);
padding:0px;
margin:0px;
font-size: 12pt;
color: white;
}
td.blocklist {
background-color: #4D5157;
padding:2px;
margin:1px;
font-size: 8pt;
font-weight: bold;
color: #DEDEDE;
}
td.lista {
background-color:#626369;
color : #FFC000;
font-size: 8pt;
}
td {
}
td.header {
font-weight:bold;
color:#FFC000;
padding:7px;
margin:0px;
background-color: #000000;
background-image: url(header_back.gif);
}
td.title {
font-size: 8pt;
}
td.navigation {
background-color: #FAFCFE;
font-weight: bold;
font-size: 8pt;
}
form {
margin-top: 0;
margin-bottom: 0;
}
.sublink {
font-style: italic;
font-size: 7pt;
font-weight: normal;
}
a.index {
font-weight: bold;
}
a.biglink {
font-weight: bold;
font-size: 10pt;
}
.important {
font-weight: bold;
font-size: 10pt;
}
td.red {
font-size: 8pt;
background-color:#797B7C;
color: red;
}
td.yellow {
background-color: #797B7C;
color: #EEEE20;
}
td.green {
font-size: 8pt;
background-color:#797B7C;
color: #00DD00;
}
td.progress {
padding: 0px;
background-image: url(backprogress.gif);
background-repeat: repeat-x;
height: 10px;
}
td.red a:link {
color: red;
}
td.red a:visited {
color: red;
}
td.yellow a:link {
color: #EEEE20;
}
td.yellow a:visited {
color: #EEEE20;
}
td.green a:link {
color: #00DD00;
}
td.green a:visited {
color: #00DD00;
}
li{
list-style-position:inside;
}
td.button {
background-color: #3860BB;
color: #3A4F6C;
font-size: 10px;
font-weight: bold;
background-image: url(header_back.gif);
border:ridge;
border-color:#00CCFF;
}
.showstate{ /*Definition for state toggling image */
cursor:hand;
cursor
ointer;
float: left;
margin-left: 3px;
margin-top: 3px;
margin-right: 3px;
}
.switchcontent{
} [color=darkred][/color][color=red][/color]
Само тези фаилове има 4те
Мерси предварително.
// CREDITS:
// Snowmaker Copyright (c) 2003 Peter Gehrig. All rights reserved.
// Distributed by http://www.hypergurl.com
// Permission given to use the script provided that this notice remains as is.
// Set the number of snowflakes (more than 30 - 40 not recommended)
var snowmax=25
// 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=1.5
// Set the maximal-size of your snowflaxes
var snowmaxsize=26
// 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=1
///////////////////////////////////////////////////////////////////////////
// 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+0
marginright = document.body.clientWidth
}
else if (ns6) {
marginbottom = window.innerHeight+0
marginright = window.innerWidth
}
var snowsizerange=snowmaxsize-snowminsize
for (i=0;i<=snowmax;i++) {
crds = 0;
lftrght = Math.random()*15;
x_mv = 0.03 + Math.random()/10;
snow=document.getElementById("s"+i)
snow.style.fontFamily=snowtype[randommaker(snowtype.length)]
snow.size=randommaker(snowsizerange)+snowminsize
snow.style.fontSize=snow.size
snow.style.color=snowcolor[randommaker(snowcolor.length)]
snow.sink=sinkspeed*snow.size/5
if (snowingzone==1) {snow.posx=randommaker(marginright-snow.size-50)}
if (snowingzone==2) {snow.posx=randommaker(marginright/2-snow.size)}
if (snowingzone==3) {snow.posx=randommaker(marginright/2-snow.size)+marginright/4}
if (snowingzone==4) {snow.posx=randommaker(marginright/2-snow.size)+marginright/2}
snow.posy=randommaker(6*marginbottom-marginbottom-6*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-6*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){
if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size-50)}
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
}
[color=red]footer.php[/color]
</td>
<?php
if(mysql_query("SELECT * FROM blocks WHERE position='r'"))
right_menu();
?>
</tr>
<tr>
<td height="20%" colspan="2">
<?php
//print("<p align=right>BtitTracker (Alpha3) by Btiteam</p>"); //mysql_stat());
?>
</td></tr>
</table>
</table>
[color=red]header.php[/color]
<?php
require_once("include/functions.php");
require_once("include/config.php");
require_once("include/blocks.php");
?>
<?php
//Side menu by fatepower, start
global $USE_SIDE_MENU;
if ($USE_SIDE_MENU)
{
?>
<head>
<style type="text/css">
</style>
<style type="text/css">
</style>
<SCRIPT SRC="js/ssm.js" language="JavaScript1.2">
//Dynamic-FX slide in menu v6.5 (By maXimus, http://maximus.ravecore.com/)
//Updated July 8th, 03' for doctype bug
//For full source, and 100's more DHTML scripts, visit http://www.dynamicdrive.com
</SCRIPT>
<SCRIPT SRC="js/ssmItems.js" language="JavaScript1.2"></SCRIPT>
</head>
<?php
}
//Side menu by fatepower, ends
?>
<table width="100%" height="100%" border="0">
<tr>
<td height="100" colspan="2">
<table width=100%>
<tr><td align=left>
<div><center><a href=./index.php><img border=0 src="<?php echo $STYLEPATH ?>/logo.gif"></a></center></div>
</td>
</tr>
</table>
</td>
</tr>
<tr><td height="100" colspan="2">
<?php
main_menu();
//User Warning System Hack Start - 11:20 01.08.2006
$resuser=mysql_query("SELECT disabled FROM users WHERE id=".$CURUSER["uid"]);
$rowuser=mysql_fetch_array($resuser);
if ($rowuser["disabled"] == "yes")
{
redirect("logout.php");
}
else
{
}
//User Warning System Hack Stop
?>
</td></tr>
<table width="100%" height="100%" border="0">
<tr>
<?php
side_menu();
?>
<td valign=top>
<div id="adds-box" align="left">
<script type="text/javascript">
</script>
<script type="text/javascript"
</script>
</div>
[color=red]index.php[/color]
<?php
header ("Location: ../../index.php");
?>
[color=red]torrent.css[/color]
body {
font-family: "tahoma", "arial", "helvetica", "sans-serif";
font-size: 8pt;
background: url('eba.gif');
scrollbar-face-color: #4E5559;
scrollbar-highlight-color: #A3A3A3;
scrollbar-shadow-color: #000000;
scrollbar-3dlight-color: #000000;
scrollbar-arrow-color: #A3A3A3;
scrollbar-track-color: #000000;
scrollbar-darkshadow-color: #000000;
color: #EFEFEF;
}
a:link,a:active,a:visited { color : #FFC000; }
a:hover { text-decoration: underline; color : #FF8000; }
h1 {
font-size: 12pt;
}
p {
font-size: 10pt;
}
table.lista {
font-size: 8pt;
background-color: #87898A;
border: 1px #F6F6F6 solid;
}
td.block {
border:1px solid #FFFFFF;
background-color: #000000;
background-image:url(block_back.gif);
padding:0px;
margin:0px;
font-size: 12pt;
color: white;
}
td.blocklist {
background-color: #4D5157;
padding:2px;
margin:1px;
font-size: 8pt;
font-weight: bold;
color: #DEDEDE;
}
td.lista {
background-color:#626369;
color : #FFC000;
font-size: 8pt;
}
td {
}
td.header {
font-weight:bold;
color:#FFC000;
padding:7px;
margin:0px;
background-color: #000000;
background-image: url(header_back.gif);
}
td.title {
font-size: 8pt;
}
td.navigation {
background-color: #FAFCFE;
font-weight: bold;
font-size: 8pt;
}
form {
margin-top: 0;
margin-bottom: 0;
}
.sublink {
font-style: italic;
font-size: 7pt;
font-weight: normal;
}
a.index {
font-weight: bold;
}
a.biglink {
font-weight: bold;
font-size: 10pt;
}
.important {
font-weight: bold;
font-size: 10pt;
}
td.red {
font-size: 8pt;
background-color:#797B7C;
color: red;
}
td.yellow {
background-color: #797B7C;
color: #EEEE20;
}
td.green {
font-size: 8pt;
background-color:#797B7C;
color: #00DD00;
}
td.progress {
padding: 0px;
background-image: url(backprogress.gif);
background-repeat: repeat-x;
height: 10px;
}
td.red a:link {
color: red;
}
td.red a:visited {
color: red;
}
td.yellow a:link {
color: #EEEE20;
}
td.yellow a:visited {
color: #EEEE20;
}
td.green a:link {
color: #00DD00;
}
td.green a:visited {
color: #00DD00;
}
li{
list-style-position:inside;
}
td.button {
background-color: #3860BB;
color: #3A4F6C;
font-size: 10px;
font-weight: bold;
background-image: url(header_back.gif);
border:ridge;
border-color:#00CCFF;
}
.showstate{ /*Definition for state toggling image */
cursor:hand;
cursor
float: left;
margin-left: 3px;
margin-top: 3px;
margin-right: 3px;
}
.switchcontent{
} [color=darkred][/color][color=red][/color]