Javascript - Падащи снежинки, листа

staf

Registered
Можете да ползвате не само снежинки и падащи листа
Просто копирайте картиката която желаете и я сложете в директорията на скрипта

snwflk1.gif
snwflk2.gif
snwflk3.gif
snwflk4.gif
snow3.gif
dott.gif
snow8.gif
snow2.gif
snow2a.gif
snow3.gif


Също променяте името на всяка нова картинка в скрипта която ползвате

Ето и демо http://web-tourist.net/project/staf/demo.html



<SCRIPT LANGUAGE="JavaScript1.2">







</script>
 

amd

Super Moderator
НАправи някъде едно демо.
Може и в твоята директория в http://web-tourist.net/control/st.php
 

staf

Registered
Код:
<script>
// 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+300
		marginright = document.body.clientWidth
	}
	else if (ns6) {
		marginbottom = window.innerHeight+300
		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-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=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
}
</script>
 

NeedFix

Registered
Ама ако можеш оправи това снежинките да продължават все надолу и на долу скрол бара само се смалява!Това не е подходящо за сайт!
 

Admin

Registered
NeedFix каза:
Ама ако можеш оправи това снежинките да продължават все надолу и на долу скрол бара само се смалява!Това не е подходящо за сайт!

<script>
// 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.size)
snow.style.left=snow.posx
snow.style.top=snow.posy
}
movesnow()
}

function movesnow() {
for (i=0;i<=snowmax;i++) {
crds += x_mv;
snow.posy+=snow.sink
snow.style.left=snow.posx+lftrght*Math.sin(crds);
snow.style.top=snow.posy

if (snow.posy>=marginbottom-6*snow.size || parseInt(snow.style.left)>(marginright-3*lftrght)){
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=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>



В случая с bubu.to е направено да пасва на сайта им.
 

BG_NIKE

Registered
Здравейте много ще съм ви благодарен ако ми кажете как да използвам скрипта в PHP Fusion ?
 

BG_NIKE

Registered
Къде точно да го сложа ето файла theme.php:
Код:
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System   |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk            |
| email: nick@php-fusion.co.uk                |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/
/*--------------------------------------------+
|     The PFT Red Theme for PHP-Fusion v6     |
|---------------------------------------------|
| author: PHP-Fusion Themes - Shedrock © 2005 |
| web: http://phpfusion.org                   |
| email: webmaster@phpfusion.org              |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/


/************************/
/* Theme Settings		*/
/************************/

$body_text = "#000000";
$body_bg = "#EDEDED";
$theme_width = "100%";
$theme_width_l = "165";
$theme_width_r = "165";

function render_header($header_content) {
global $theme_width,$settings;

	echo "<table class='forumline' align='center' width='100%' cellspacing='0' cellpadding='0'>";
	echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
	echo "<tr><td><table align='center' width='100%' cellspacing='1' cellpadding='0'>";
	echo "<tr><td class='header' style='background-color:#E7E7E7;padding:5px;'>";
	// Start banner code
	echo "<table width='100%' cellspacing='0' cellpadding='0'>";
	echo "<tr><td>$header_content</td>";
	echo "</tr></table></tr></td></table>\n";
	// End banner code
	echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>";
	echo "<td class='sub-header'>\n";

$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
	$i = 0;
	while($data = dbarray($result)) {
		if (checkgroup($data['link_visibility'])) {
			if ($data['link_url']!="---") {
				if ($i != 0) { echo " <img alt='' src='".THEME."images/bullet.gif'> \n"; } else { echo "\n"; }
				$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
				if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
					echo "<a class='white' href='".$data['link_url']."'".$link_target.">".$data['link_name']."</a>";
				} else {
					echo "<a class='white' href='".BASEDIR.$data['link_url']."'".$link_target.">".$data['link_name']."</a>";
				}
			}
			$i++;
		}
	}
}
	echo ($i == 0 ? " " : "")."</td>";
	echo "<td align='right' class='sub-header'>".ucwords(showdate($settings['subheaderdate'], time()))."";
	echo "</td></tr></table>\n";
	echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'>";
}

function render_footer($license=false) {
global $theme_width,$locale,$settings;

	echo "</tr>\n</table>\n";
	echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>";
	echo "<td>".stripslashes($settings['footer'])."</td>";
	echo "</tr></table></td></tr></table><br>";
	echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0'>";
	echo "<tr><td width='32%' class='footer' align='left'><div align='left'>";
		if ($license == false) {
	echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'><img alt='' src='".THEME."images/fusion.gif' style='vertical-align:middle;'></a> v".$settings['version']." © 2003-2005";
	}
	echo "</div></td>";
	echo "<td width='35%' class='footer' align='center'>";

	echo "The PFT Red Theme by: <a target='_blank' href='http://phpfusion.org/'><img alt='' src='".THEME."images/fthemes.gif' style='vertical-align:middle;'></a></td>";
	echo "<td width='33%' class='footer' align='right'>";
	echo "<font class='clock'><b>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
	echo "</td></tr></table>";
}

function render_news($subject, $news, $info) {

global $locale;

	echo "<table class='news-border' border='0' cellspacing='1' width='100%' cellpadding='1'><tr>";
	echo "<td class='table-cellpic'>$subject</td>";
	echo "</tr></table>";
	echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
	echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
	echo "<td class='main-body'>$news</td></tr></table>";
	echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
	echo "<td class='news-footer'>";
	echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
	echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
	echo "<td height='24' align='right' class='news-footer'>";
	echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
	if ($info['news_allow_comments'])
	echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
	echo "".$info['news_reads'].$locale['044']." ";
	echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img alt='' src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;' style='vertical-align:middle;'></a>";
	echo "</td></tr></table></td></tr></table>\n";
}

function render_article($subject, $article, $info) {

global $locale;

	echo "<table class='news-border' border='0' cellspacing='1' width='100%' cellpadding='1'><tr>";
	echo "<td class='table-cellpic'>$subject</td>";
	echo "</tr></table>";
	echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
	echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
	echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
	echo "</td></tr></table>";
	echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
	echo "<td class='news-footer'>";
	echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
	echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
	echo "<td height='24' align='right' class='news-footer'>";
	if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
	echo "".$info['article_reads'].$locale['044']." ";
	echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img alt='' src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;' style='vertical-align:middle;'></a>";
	echo "</td></tr></table></td></tr></table>\n";
}

// Open table begins
function opentable($title) {

	echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
	echo "<tr><td width='100%'><table class='panel-border' cellSpacing='0' cellPadding='1' width='100%' border='0'>";
	echo "<tr><th width='100%'><div class='table-cellpic' align='left'>$title</div></th></tr>";
	echo "<tr><td class='main-body' width='100%' bgColor='#EDEDED'>";
}

// Close table end
function closetable() {

	echo "</td></tr></table></td></tr></table>";
}

function openside($title) {

	echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
	echo "<tr><td width='100%'><table class='panel-border' cellSpacing='0' cellPadding='1' width='100%' border='0'>";
	echo "<tr><th width='100%'><div class='panel-cellpic' align='left'>$title</div></th></tr>";
	echo "<tr><td class='side-body' width='100%' bgColor='#EDEDED'>";
}

function closeside() {

	echo "</td></tr></table></td></tr></table>";
	tablebreak();
}

function opensidex($title,$open="on") {

$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";

	echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
	echo "<tr><td width='100%'><table class='panel-border' cellSpacing='0' cellPadding='1' width='100%' border='0'>";
	echo "<tr><th width='100%'>";
	echo "<div class='panel-cellpic' align='center'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\">$title</div>";
	echo "</th></tr>";
	echo "<tr><td class='side-body' width='100%' bgColor='#EDEDED'>";
	echo "<div id='box_$boxname'".($open=="off"?" style='display:none'":"").">\n";
}

function closesidex() {

	echo "</td></tr></table></td></tr></table>";
	tablebreak();
}

// Table functions
function tablebreak() {
	echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
Мерси предварително !
 

NoName

Registered
направи така
първо сложи тоя код в отделен js фаил с някво име snejinki.js
след това в темата в <head> слагаш

<script type="text/javascript" src="snejinki.js"></script> мисля че ще стане
 

BG_NIKE

Registered
Няма къде да го сложа не виждам къде е <head> в темата :(
На другата страница>>>>>>>>>> :?:
 

NoName

Registered
BG_NIKE каза:
Няма къде да го сложа не виждам къде е <head> в темата :(
я даи кода на темата, на е107 мисля че имаше хеад
 

BG_NIKE

Registered
Ето файла theme.php:
Код:
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System   |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk            |
| email: nick@php-fusion.co.uk                |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/
/*--------------------------------------------+
|     The PFT Red Theme for PHP-Fusion v6     |
|---------------------------------------------|
| author: PHP-Fusion Themes - Shedrock © 2005 |
| web: http://phpfusion.org                   |
| email: webmaster@phpfusion.org              |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/


/************************/
/* Theme Settings		*/
/************************/

$body_text = "#000000";
$body_bg = "#EDEDED";
$theme_width = "100%";
$theme_width_l = "165";
$theme_width_r = "165";
<script type='text/javascript' src='snejinki.js'></script>

function render_header($header_content) {
global $theme_width,$settings;

	echo "<table class='forumline' align='center' width='100%' cellspacing='0' cellpadding='0'>";
	echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
	echo "<tr><td><table align='center' width='100%' cellspacing='1' cellpadding='0'>";
	echo "<tr><td class='header' style='background-color:#E7E7E7;padding:5px;'>";
	// Start banner code
	echo "<table width='100%' cellspacing='0' cellpadding='0'>";
	echo "<tr><td>$header_content</td>";
	echo "</tr></table></tr></td></table>\n";
	// End banner code
	echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>";
	echo "<td class='sub-header'>\n";

$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
	$i = 0;
	while($data = dbarray($result)) {
		if (checkgroup($data['link_visibility'])) {
			if ($data['link_url']!="---") {
				if ($i != 0) { echo " <img alt='' src='".THEME."images/bullet.gif'> \n"; } else { echo "\n"; }
				$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
				if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
					echo "<a class='white' href='".$data['link_url']."'".$link_target.">".$data['link_name']."</a>";
				} else {
					echo "<a class='white' href='".BASEDIR.$data['link_url']."'".$link_target.">".$data['link_name']."</a>";
				}
			}
			$i++;
		}
	}
}
	echo ($i == 0 ? " " : "")."</td>";
	echo "<td align='right' class='sub-header'>".ucwords(showdate($settings['subheaderdate'], time()))."";
	echo "</td></tr></table>\n";
	echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'>";
}

function render_footer($license=false) {
global $theme_width,$locale,$settings;

	echo "</tr>\n</table>\n";
	echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>";
	echo "<td>".stripslashes($settings['footer'])."</td>";
	echo "</tr></table></td></tr></table><br>";
	echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0'>";
	echo "<tr><td width='32%' class='footer' align='left'><div align='left'>";
		if ($license == false) {
	echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'><img alt='' src='".THEME."images/fusion.gif' style='vertical-align:middle;'></a> v".$settings['version']." © 2003-2005";
	}
	echo "</div></td>";
	echo "<td width='35%' class='footer' align='center'>";

	echo "The PFT Red Theme by: <a target='_blank' href='http://phpfusion.org/'><img alt='' src='".THEME."images/fthemes.gif' style='vertical-align:middle;'></a></td>";
	echo "<td width='33%' class='footer' align='right'>";
	echo "<font class='clock'><b>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
	echo "</td></tr></table>";
}

function render_news($subject, $news, $info) {

global $locale;

	echo "<table class='news-border' border='0' cellspacing='1' width='100%' cellpadding='1'><tr>";
	echo "<td class='table-cellpic'>$subject</td>";
	echo "</tr></table>";
	echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
	echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
	echo "<td class='main-body'>$news</td></tr></table>";
	echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
	echo "<td class='news-footer'>";
	echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
	echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
	echo "<td height='24' align='right' class='news-footer'>";
	echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
	if ($info['news_allow_comments'])
	echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
	echo "".$info['news_reads'].$locale['044']." ";
	echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img alt='' src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;' style='vertical-align:middle;'></a>";
	echo "</td></tr></table></td></tr></table>\n";
}

function render_article($subject, $article, $info) {

global $locale;

	echo "<table class='news-border' border='0' cellspacing='1' width='100%' cellpadding='1'><tr>";
	echo "<td class='table-cellpic'>$subject</td>";
	echo "</tr></table>";
	echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
	echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
	echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
	echo "</td></tr></table>";
	echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
	echo "<td class='news-footer'>";
	echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
	echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
	echo "<td height='24' align='right' class='news-footer'>";
	if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
	echo "".$info['article_reads'].$locale['044']." ";
	echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img alt='' src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;' style='vertical-align:middle;'></a>";
	echo "</td></tr></table></td></tr></table>\n";
}

// Open table begins
function opentable($title) {

	echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
	echo "<tr><td width='100%'><table class='panel-border' cellSpacing='0' cellPadding='1' width='100%' border='0'>";
	echo "<tr><th width='100%'><div class='table-cellpic' align='left'>$title</div></th></tr>";
	echo "<tr><td class='main-body' width='100%' bgColor='#EDEDED'>";
}

// Close table end
function closetable() {

	echo "</td></tr></table></td></tr></table>";
}

function openside($title) {

	echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
	echo "<tr><td width='100%'><table class='panel-border' cellSpacing='0' cellPadding='1' width='100%' border='0'>";
	echo "<tr><th width='100%'><div class='panel-cellpic' align='left'>$title</div></th></tr>";
	echo "<tr><td class='side-body' width='100%' bgColor='#EDEDED'>";
}

function closeside() {

	echo "</td></tr></table></td></tr></table>";
	tablebreak();
}

function opensidex($title,$open="on") {

$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";

	echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
	echo "<tr><td width='100%'><table class='panel-border' cellSpacing='0' cellPadding='1' width='100%' border='0'>";
	echo "<tr><th width='100%'>";
	echo "<div class='panel-cellpic' align='center'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\">$title</div>";
	echo "</th></tr>";
	echo "<tr><td class='side-body' width='100%' bgColor='#EDEDED'>";
	echo "<div id='box_$boxname'".($open=="off"?" style='display:none'":"").">\n";
}

function closesidex() {

	echo "</td></tr></table></td></tr></table>";
	tablebreak();
}

// Table functions
function tablebreak() {
	echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
Ето и styles.css:
Код:
body {
	font-family:Verdana,Tahoma,Arial,Sans-Serif;
	font-size:10px;
	padding:0px 0px 0px 0px;
	margin:10px;
}

.forumline {
	border: solid 1px #999999;
	background-color: #FAFAFA;
}

/* General page style */
a {
	color:#292929; 
	text-decoration:none; 
	font-size:10px;
	font-weight:bold;
}

a:hover {
	color:#C70002; 
	text-decoration:none;
}

a.side {
	color:#292929; 
	text-decoration:none; 
	font-size:10px;
}

a:hover.side {
	color:#C70002; 
	text-decoration:none;
}

a.white {
	color:#292929; 
	text-decoration:none; 
	font-size:10px;
	font-weight:bold;
}

a:hover.white {
	color:#C70002;
	text-decoration:none;
}

form {
	margin:0px 0px 0px 0px;
}

hr {
	border-top:1px #999999 solid;
	border-bottom:1px #FFFFFF solid;
}

hr.side-hr {
	border:1px #999999 solid;
	border-bottom:1px #FFFFFF solid;
}

td {
	font-family:Verdana,Tahoma,Arial,Sans-Serif;
	font-size:10px;
}

pre {
	font-family:Verdana,Tahoma,Arial,Sans-Serif; 
	font-size:9px;
}

.alt {
	color:#1C1C1C;
}
.header {
	background-color:#EDEDED;
	background-image:url(images/header_bg.gif);
}

.sub-header {
	font-family:Verdana,Tahoma,Arial,Sans-Serif;
	font-size:10px;
	color:#292929;
	background-color:#EDEDED;
	background-image:url(images/cellpic_nav.gif);
	border-top:1px #999999 solid; 
	border-bottom:1px #999999 solid;
	padding:5px;
}

.button {
	font-family:Verdana,Tahoma,Arial,Sans-Serif; 
	font-size:10px; color:#000000;
	background-color:#EDEDED;
	border:1px #999999 solid;
	margin-top:2px;
}
	
.textbox {
	font-family:Verdana,Tahoma,Arial,Sans-Serif; 
	font-size:10px; 
	color:#000000;
	background-color:#FAFAFA;
	border:1px #999999 solid;
}

.main-body {
	background-color:#EDEDED;
	color: #3B3B3B;
	font-weight: normal;
	padding:4px 4px 6px 6px;
}

.table-cellpic {
	font-size: 11px;
	line-height: 25px;
	font-weight: bold;
	color: #F0F0F0;
	background-color: #EDEDED;
	background-image: url(images/cellpic1.gif);
	padding:0px 4px 0px 4px;

}

.panel-border {
	border: 1px solid #999999;
}

.news-border {
	border-top: solid #999999; 
	border-top-width: 1px; 
	border-left: solid #999999; 
	border-left-width: 1px; 
	border-right: solid #999999; 
	border-right-width:1px; 
	border-bottom: solid #F6F6F6; 
	border-bottom-width:0px;
}

.panel-cellpic {
	font-size: 11px;
	line-height: 25px;
	font-weight: bold;
	color: #F0F0F0;
	background-color: #EDEDED;
	background-image: url(images/cellpic1.gif);
	padding:0px 4px 0px 8px;
}

.side-body {
	color: #696969;
	font-weight: normal;
	padding:4px 4px 4px 4px;

}

.main-bg {
	background-color:#F8F8F8;
}

.border {
	border-width:0px 1px 1px 1px;
	border-color:#999999;
	border-style:solid;
}

.news-footer {
	background: #F0F4F7; 
	background-image:url(images/news_footer.gif);
	font-size:9px;
	font-weight:normal; 
	color:#0C0C0C;
	height:22px; 
	padding:4px 4px 4px 4px;
}

.capmain {
	font-family:Verdana,Tahoma,Arial,Sans-Serif; 
	font-size:10px;
	font-weight:bold; 
	border-width:1px 1px 1px 1px;
	border-color:#999999;
	border-style:solid; 
	color:#B78E00; 
	height:24px; 
	padding:2px 2px 2px 2px;
}

.footer {
	font-family:Verdana,Tahoma,Arial,Sans-Serif;
	font-size:9px;
	color:#EAEAEA;
	height:24px;
	background-color:#EDEDED;
	background-image: url(images/footer_bg.gif);
	border-top:1px #999999 solid; 
	border-bottom:0px #999999 solid;
	padding:4px 4px 6px 4px;
}

img {
	border: 0px;
}

.scapmain {
	font-family:Verdana,Tahoma,Arial,Sans-Serif; 
	font-size:10px;
	font-weight:bold;
	color:#000; 
	height:19px; 
	padding:0px 2px 0px 2px;
	border-width:1px 0px 1px 0px;
	border-color:#999999 #999999 #999999 #999999;
	border-style:solid;
}

.tbl-border {
	background-color:#999999;
}

.tbl {
	font-size:11px; 
	padding:4px;
}

.tbl1 {
	font-size:11px; 
	color:#091609; 
	background-color:#EDEDED;
	padding:4px;
}

.tbl2 {
	font-size:11px;
	color:#091609;
	background-color:#F1F1F1;
	padding:4px;
}

/* Forum header*/
.forum-caption {
	font-size:10px;
	font-weight:bold;
	color:#363636;
	background-color:#EDEDED;
	height:24px;
	padding:0px 4px 2px 4px;
	background-image:url(images/cellpic2.gif);
	background-repeat:repeat-x;
}

/* Quote blocks */
.quote {
	color:#006E29;
	background-color:#F0F0F0;
	padding:2px;
	margin:0px 20px 0px 20px; 
	border:1px #999999 solid;
}

/* Voting Poll */
.poll {
	height:12px; 
	border:1px #999999 solid;
}

.comment-name {
	font-weight:bold; 
	color:#DDCC88;
}

/* This is for the Shoutbox */
.shoutboxname {
	font-weight:bold;
	color:#FFDDAA;
}

.shoutbox {
	color:#06070A;
}

.shoutboxdate {
	font-size:9px;
	color:#1C1C1C;
}

.small {
	font-size:10px;
	font-weight:normal;
}

.small2 {
	font-size:9px; 
	font-weight:normal; 
	color:#1C1C1C;
}

.side-small	{
	font-size:10px;
	font-weight:normal;
	color:#000000;
}

.side-label {
	background-color:#F8F8F8; 
	font-weight:normal;
	color:#1C1C1C;
	padding:2px;
}

/* This is for the Photo Gallery */
.gallery {
	padding: 16px 0px 8px 0px;
}

.gallery img {
	border: 1px solid #999999; 
	filter: gray;
}

.gallery:hover img {
	border: 1px solid #4E79F3;
	filter: none;
}

img.activegallery	{
	border: 1px solid #999999;
	filter: none;
}
Мерси пак!
 

NoName

Registered
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: nick@php-fusion.co.uk |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| The PFT Red Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: PHP-Fusion Themes - Shedrock © 2005 |
| web: http://phpfusion.org |
| email: webmaster@phpfusion.org |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/


/************************/
/* Theme Settings */
/************************/

$body_text = "#000000";
$body_bg = "#EDEDED";
$theme_width = "100%";
$theme_width_l = "165";
$theme_width_r = "165";


function render_header($header_content) {
global $theme_width,$settings;
echo"<script type='text/javascript' src='snejinki.js'></script>" ;
echo "<table class='forumline' align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='100%' cellspacing='1' cellpadding='0'>";
echo "<tr><td class='header' style='background-color:#E7E7E7;padding:5px;'>";
// Start banner code
echo "<table width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td>$header_content</td>";
echo "</tr></table></tr></td></table>\n";
// End banner code
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>";
echo "<td class='sub-header'>\n";

$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img alt='' src='".THEME."images/bullet.gif'> \n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a class='white' href='".$data['link_url']."'".$link_target.">".$data['link_name']."</a>";
} else {
echo "<a class='white' href='".BASEDIR.$data['link_url']."'".$link_target.">".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>";
echo "<td align='right' class='sub-header'>".ucwords(showdate($settings['subheaderdate'], time()))."";
echo "</td></tr></table>\n";
echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'>";
}

function render_footer($license=false) {
global $theme_width,$locale,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td>".stripslashes($settings['footer'])."</td>";
echo "</tr></table></td></tr></table><br>";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0'>";
echo "<tr><td width='32%' class='footer' align='left'><div align='left'>";
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'><img alt='' src='".THEME."images/fusion.gif' style='vertical-align:middle;'></a> v".$settings['version']." © 2003-2005";
}
echo "</div></td>";
echo "<td width='35%' class='footer' align='center'>";

echo "The PFT Red Theme by: <a target='_blank' href='http://phpfusion.org/'><img alt='' src='".THEME."images/fthemes.gif' style='vertical-align:middle;'></a></td>";
echo "<td width='33%' class='footer' align='right'>";
echo "<font class='clock'><b>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table>";
}

function render_news($subject, $news, $info) {

global $locale;

echo "<table class='news-border' border='0' cellspacing='1' width='100%' cellpadding='1'><tr>";
echo "<td class='table-cellpic'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
echo "<td height='24' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img alt='' src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}

function render_article($subject, $article, $info) {

global $locale;

echo "<table class='news-border' border='0' cellspacing='1' width='100%' cellpadding='1'><tr>";
echo "<td class='table-cellpic'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='24' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img alt='' src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}

// Open table begins
function opentable($title) {

echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%'><table class='panel-border' cellSpacing='0' cellPadding='1' width='100%' border='0'>";
echo "<tr><th width='100%'><div class='table-cellpic' align='left'>$title</div></th></tr>";
echo "<tr><td class='main-body' width='100%' bgColor='#EDEDED'>";
}

// Close table end
function closetable() {

echo "</td></tr></table></td></tr></table>";
}

function openside($title) {

echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%'><table class='panel-border' cellSpacing='0' cellPadding='1' width='100%' border='0'>";
echo "<tr><th width='100%'><div class='panel-cellpic' align='left'>$title</div></th></tr>";
echo "<tr><td class='side-body' width='100%' bgColor='#EDEDED'>";
}

function closeside() {

echo "</td></tr></table></td></tr></table>";
tablebreak();
}

function opensidex($title,$open="on") {

$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";

echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%'><table class='panel-border' cellSpacing='0' cellPadding='1' width='100%' border='0'>";
echo "<tr><th width='100%'>";
echo "<div class='panel-cellpic' align='center'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\">$title</div>";
echo "</th></tr>";
echo "<tr><td class='side-body' width='100%' bgColor='#EDEDED'>";
echo "<div id='box_$boxname'".($open=="off"?" style='display:none'":"").">\n";
}

function closesidex() {

echo "</td></tr></table></td></tr></table>";
tablebreak();
}

// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>


пробваи така
ако нестане така посочи целия линк към JS фаила
пример:

<script type='text/javascript' src='http://sait.com/snejinki.js'></script>
 

kitchenbg

Registered
имам такъв въпрос, дали може по първия скрипт да се направи със няколко картинки едновременно?
 

Горе