stygis
Narys
Generolas
Pranešimai: 970
Įstojęs: 2006 Gru. 10 12:12:02
|
Pas mane php-f v7 kur gauti ta snigimo koda ir kur jy tureciau patlapinti ?
Balandžio 3d atsikėlęs iš numirusiųjų. |
EGasZ
Narys
Spalvotas
Pranešimai: 70
Įstojęs: 2008 Rugp. 16 21:08:46
|
php-f v7 nesinaudoju, tai padėti negaliu ;p
|
Pongis
Narys
Tankas
Pranešimai: 2272
Įstojęs: 2007 Vas. 18 11:02:23
|
Nu ten gi bl javascript'as ir nepriklausomai ar v6, ar v7 tiks bet kuriuo atveju.
Scriptą dėk į subheader.php, tarp <head></head> tagų.
|
stygis
Narys
Generolas
Pranešimai: 970
Įstojęs: 2006 Gru. 10 12:12:02
|
Pongis dekoju
Beda tame kad V7 nera subheader
Balandžio 3d atsikėlęs iš numirusiųjų.
Redagavo stygis 2008 Lap. 17 19:11:59 |
stygis
Narys
Generolas
Pranešimai: 970
Įstojęs: 2006 Gru. 10 12:12:02
|
bandziau ydeti y maintence bet neysideda
Balandžio 3d atsikėlęs iš numirusiųjų. |
sniuff
Narys
Antras po Dievo
Pranešimai: 4491
Įstojęs: 2007 Geg. 14 16:05:52
|
themes/templates/header.php
Cia ikisk...
Jai teisingas url.
|
stygis
Narys
Generolas
Pranešimai: 970
Įstojęs: 2006 Gru. 10 12:12:02
|
Scriptas
// Snow Effect Javascript
// copyright 19th November 2004, 20th July 2006 by Stephen Chapman
// permission to use this Javascript on your web page is granted
// provided that all of the code in this script (including these
// comments) is used without any alteration
// you can change the number of snow flakes if you like
var num_flakes = 10;
var snowflakes = new Array("snowflake.gif","snowflake1.gif");
// DOM test
var aDOM = 0, ieDOM = 0, nsDOM = 0; var stdDOM = document.getElementById;
if (stdDOM) aDOM = 1; else {ieDOM = document.all; if (ieDOM) aDOM = 1; else {
var nsDOM = ((navigator.appName.indexOf('Netscape') != -1)
&& (parseInt(navigator.appVersion) ==4)); if (nsDOM) aDOM = 1;}}
function findDOM(objectId, wS) {
if (stdDOM) return wS ? document.getElementById(objectId).style:
document.getElementById(objectId);
if (ieDOM) return wS ? document.all[objectId].style: document.all[objectId];
if (nsDOM) return document.layers[objectId];
}
// window size tests
function findLivePageWidth() {return window.innerWidth != null? window.innerWidth : document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body != null ? document.body.clientWidth :700;}function findLivePageHeight() {return window.innerHeight != null? window.innerHeight : document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body != null? document.body.clientHeight :500;}
function posX() {return typeof window.pageXOffset != 'undefined' ? window.pageXOffset:document.documentElement.scrollLeft? document.documentElement.scrollLeft:document.body.scrollLeft? document.body.scrollLeft:0;}
function posY() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset:document.documentElement.scrollTop? document.documentElement.scrollTop: document.body.scrollTop?document.body.scrollTop:0;}
// make it snow
var speed = 50;var movw = new Array();var movh = new Array();var move = new Array();var stepw = new Array();var steph = new Array();var posw = new Array();var posh = new Array();var dir = new Array();var winWidth;var winHeight;
function startSnow() {winWidth = findLivePageWidth()-75;winHeight = findLivePageHeight()-50;
for (var i = 0; i < num_flakes; i++){move[i] = 0;movh[i] = 12+ Math.random()*2;movw[i] = 11+ Math.random()*4;posw[i] = Math.random()*(winWidth-35)+12;posh[i] = Math.random()*winHeight; stepw[i] = 0.02 + Math.random()/10;steph[i] = 0.7 + Math.random();dir[i] = (Math.random()>0.5)?1:-1;document.write('<div id="snow'+ i +'" style="position: absolute; z-index: '+ i +'; visibility:hidden; "><img src="'+snowflakes[Math.floor(Math.random()*snowflakes.length)]+ '" border="0"></div>');}setTimeout("moreSnow()", speed);}
function moreSnow() {for (var i = 0; i < num_flakes; i++) {if (posh[i] > winHeight-50) {posw[i] = 10+ Math.random()*(winWidth-movw[i]-30);posh[i] = 0;dir[i]=(Math.random()<0.5)?1:-1;stepw[i] = 0.02 + Math.random()/9;steph[i] = 1.3 + Math.random();} move[i] += stepw[i] *dir[i]; if (Math.abs(move[i]) > 3) {dir[i]=-dir[i]; posh[i]+=Math.abs(movh[i]*move[i]);posw[i]+=movw[i]*move[i]; move[i]=0;} objstyle = findDOM('snow'+i,1); objstyle.left = (posX()+posw[i] + movw[i]*move[i])+'px'; objstyle.top = (posY()+posh[i] + movh[i]*(Math.abs(Math.cos(move[i])+move[i])))+'px';objstyle.visibility = 'visible';} setTimeout("moreSnow()", speed);}
headeris ir kaip man jy ydeti
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: header.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
require_once INCLUDES."output_handling_include.php";
require_once INCLUDES."header_includes.php";
require_once THEME."theme.php";
if ($settings['maintenance'] == "1" && !iADMIN) { redirect(BASEDIR."maintenance.php"); }
if (iMEMBER) { $result = dbquery("UPDATE ".DB_USERS." SET user_lastvisit='".time()."', user_ip='".USER_IP."' WHERE user_id='".$userdata['user_id']."'"); }
echo "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\n";
echo "<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='".$locale['xml_lang']."' lang='".$locale['xml_lang']."'>\n";
echo "<head>\n<title>".$settings['sitename']."</title>\n";
echo "<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."' />\n";
echo "<meta name='description' content='".$settings['description']."' />\n";
echo "<meta name='keywords' content='".$settings['keywords']."' />\n";
echo "<link rel='stylesheet' href='".THEME."styles.css' type='text/css' media='screen' />\n";
if (file_exists(IMAGES."favicon.ico")) { echo "<link rel='shortcut icon' href='".IMAGES."favicon.ico' type='image/x-icon' />\n"; }
if (function_exists("get_head_tags")) { echo get_head_tags(); }
echo "<script type='text/javascript' src='".INCLUDES."jscript.js'></script>\n";
echo "<script type='text/javascript' src='".INCLUDES."jquery.js'></script>\n";
echo "</head>\n<body>\n";
require_once THEMES."templates/panels.php";
ob_start();
?>
Balandžio 3d atsikėlęs iš numirusiųjų.
Redagavo stygis 2008 Lap. 17 20:11:48 |
Wiav
Narys
Tankas
Pranešimai: 2116
Įstojęs: 2008 Vas. 10 16:02:29
|
po ?> dėti bandyk.
|
stygis
Narys
Generolas
Pranešimai: 970
Įstojęs: 2006 Gru. 10 12:12:02
|
neveikia
Balandžio 3d atsikėlęs iš numirusiųjų. |
samsung123
Narys
Terminatorius
Pranešimai: 1610
Įstojęs: 2007 Spa. 15 17:10:09
|
Į veikiančia panelę, po kodu įdėk
|
stygis
Narys
Generolas
Pranešimai: 970
Įstojęs: 2006 Gru. 10 12:12:02
|
Irgi ne gal kas tikrai zino ?
Balandžio 3d atsikėlęs iš numirusiųjų. |
sniuff
Narys
Antras po Dievo
Pranešimai: 4491
Įstojęs: 2007 Geg. 14 16:05:52
|
Pažiūrėk anų metų forumo pranešimus, kai buvo žiema, pasinaudok paieška, radau per 30sec. ir ten yra veikiantys sutvarkyti, specialiai panelėms...
|
7even
Narys
Ekspertas
Pranešimai: 2609
Įstojęs: 2008 Kov. 24 23:03:37
|
nedek waisai jai nemoki
http://www.youtube.com/watch?v=bBdrYrRpLrU |
stygis
Narys
Generolas
Pranešimai: 970
Įstojęs: 2006 Gru. 10 12:12:02
|
blogai tylek tu sutrauka dink nx jei nemoki nk tai cia nevaryk pats sedi su v6 prikroves y kelnes kad kas nenuhackontu
P.S. jei radai tai ko url nenumetai ? net neranda o tik parasyt kazka
Balandžio 3d atsikėlęs iš numirusiųjų.
Redagavo stygis 2008 Lap. 17 21:11:58 |
moonlike
Narys
Pulkininkas
Pranešimai: 453
Įstojęs: 2008 Rugs. 24 20:09:39
|
<SCRIPT type="text/javascript">
var snowmax=35
var snowcolor=new Array("#AAAACC","#DDDDFF","#CCCCDD","#F3F3F3","#F0FFFF")
var snowtype=new Array("Arial Black","Arial Narrow","Times","Comic Sans MS")
var snowletter="*"
var sinkspeed=2
var snowmaxsize=35
var snowminsize=10
var snowingzone=1
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>
wa as radau koda...
Pigiai koduoju HTML, xHTML/CSS dizainus. |
stygis
Narys
Generolas
Pranešimai: 970
Įstojęs: 2006 Gru. 10 12:12:02
|
nu koda ir as radau bet kur jy kisti ?
Balandžio 3d atsikėlęs iš numirusiųjų. |
Pongis
Narys
Tankas
Pranešimai: 2272
Įstojęs: 2007 Vas. 18 11:02:23
|
Nu tarp <head></head>, tik uždaryk <php> kodą, po to įkišk tą scriptą ir vėl atidaryk <php>.
|
stygis
Narys
Generolas
Pranešimai: 970
Įstojęs: 2006 Gru. 10 12:12:02
|
bandziau sita ysideti
https://webdnd.com/forum/viewthr...ad_id=2456
bet meta tokia klaida
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/muinfo/domains/mu-info.lt/public_html/themes/templates/header.php on line 38
Gal kas padarytumete kad veiktu ?
themes/templates/header.php
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: header.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
require_once INCLUDES."output_handling_include.php";
require_once INCLUDES."header_includes.php";
require_once THEME."theme.php";
if ($settings['maintenance'] == "1" && !iADMIN) { redirect(BASEDIR."maintenance.php"); }
if (iMEMBER) { $result = dbquery("UPDATE ".DB_USERS." SET user_lastvisit='".time()."', user_ip='".USER_IP."' WHERE user_id='".$userdata['user_id']."'"); }
echo "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\n";
echo "<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='".$locale['xml_lang']."' lang='".$locale['xml_lang']."'>\n";
echo "<head>\n<title>".$settings['sitename']."</title>\n";
echo "<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."' />\n";
echo "<meta name='description' content='".$settings['description']."' />\n";
echo "<meta name='keywords' content='".$settings['keywords']."' />\n";
echo "<link rel='stylesheet' href='".THEME."styles.css' type='text/css' media='screen' />\n";
if (file_exists(IMAGES."favicon.ico")) { echo "<link rel='shortcut icon' href='".IMAGES."favicon.ico' type='image/x-icon' />\n"; }
if (function_exists("get_head_tags")) { echo get_head_tags(); }
echo "<script type='text/javascript' src='".INCLUDES."jscript.js'></script>\n";
echo "<script type='text/javascript' src='".INCLUDES."jquery.js'></script>\n";
echo "<script type="text/javascript" src="script/snowstorm.js"></script></head>\n<body>\n";
require_once THEMES."templates/panels.php";
ob_start();
?>
Balandžio 3d atsikėlęs iš numirusiųjų.
Redagavo stygis 2008 Lap. 18 21:11:32 |
stygis
Narys
Generolas
Pranešimai: 970
Įstojęs: 2006 Gru. 10 12:12:02
|
wo ir nk nezino tai jau v7 visiskai kitks dalykas kaip php-nuke koks ? nk nezino
Balandžio 3d atsikėlęs iš numirusiųjų. |