[Help] Web Banners

EvoLuTioN

Active Member
Joined
May 3, 2008
Messages
815
Reaction score
164

Може ли някоя да ми каже как да си сложа и аз такъв банер на сайта?
 

AfterShock

New Member
Joined
Apr 10, 2008
Messages
576
Reaction score
80
Сложи си това в www/index.php
PHP:
<a href="http://darksteam.net/"><img src="http://www2.imgshare.eu/i/OhW98442.jpg" border="0" width="468" height="60" target="_blank"></a>
 

AfterShock

New Member
Joined
Apr 10, 2008
Messages
576
Reaction score
80
Загради кода с това:
<center>CODE</center>
 

Gasolincho

Well-Known Member
Joined
May 15, 2008
Messages
682
Reaction score
690
Сложи си това в www/index.php
PHP:
<a href="http://darksteam.net/"><img src="http://www2.imgshare.eu/i/OhW98442.jpg" border="0" width="468" height="60" target="_blank"></a>

може и така
Code:
<?php include "banner.php"; ?>
това се слага в index.php няма значение къде ... т.е. където ти е удобно и след това създаваш файл banner.php и в него пишеш
Code:
 <?php
srand((float) microtime() * 10000000);

$banner[1]['img']='images/banners/banner.jpg';
$banner[1]['url']='http://mu.trifonov.tv/';
$banner[1]['txt']='Desc of site';

$rnd = array_rand($banner);

echo "<a href=\"".$banner[$rnd]['url']."\" title=\"".$banner[$rnd]['txt']."\" target=\"_blank\">\n";
echo "<img src=\"".$banner[$rnd]['img']."\" border=\"0\" width=\"468\" height=\"60\"></a>\n";

$zapis = $banner[$rnd]['img'];
$fp = fopen("$zapis.txt", "a+");
$count = fread($fp, 1024);
fclose($fp);
$count = $count + 1;

//echo "<br /><span style=\"font-family:Comic Sans MS;font-size:11px;\">" . $banner[$rnd]['url'] . " - " . $count . " импресии.</span>";

$fp = fopen("$zapis.txt", "w");
fwrite($fp, $count);
fclose($fp);
?>

това images/banners/banner.jpg е пътя на банера :) и ако искаш да добавиш още банери само правиш така
Code:
$banner[2]['img']='images/banners/banner2.jpg';
$banner[2]['url']='http://mu.trifonov.tv/';
$banner[2]['txt']='Desc of site';
 

Skyfi

New Member
Joined
Apr 27, 2008
Messages
64
Reaction score
4
Можеще да не ми "Цензорираш" Servera :D:D
 
Thread starter Similar threads Forum Replies Date
valvers [Help] Web release for 97d+ Help 0
H [Help] Problem with Muonlinewebs 2.2.0 Help 0
A [Help] BUY ITEMS FROM WEBSHOP PROBLEM Help 6
W [Help] Web / CMS 0.99.60/62T (1.0M) Help 0
kallixtho [Help] DTWeb 2.0 Release erro Jewels Bank Help 22
nelson25 [Help] Events Module DarksWeb 0.3 Help 6
C [Help] Webshop Help 2
natumno [Help] RoYaL MuWebshop 1.0 Change Credits database - Help Help 4
O [Help] MFS TEAM web 0.5 Connection with SQL Server failed! Help Me Help 2
K [Help] Jewels in WebShop 97d Help 4
E [Help] Webshop error Help 1
E [Help] Problems with website Help 25
B [Help] Where i can find murdrum webs analog.. :( Help 2
M [Help] Webshop for 97d+99i cookie issue Help 0
S [Help] Enemy Muweb 4.4 Help 2
T [Help] Web site problem Help 3
K [Help] Website Mu web clone install error Help 6
DemonuMu [Help] Problems with Guild from muweb Help 2
T [Help] Webshop Help 1
E [Help] Install MuOnlineWebs Help 0
S [Help] Server and web security Help 5
DemonuMu [Help] KlubZone Web OpenMu Source Help 0
M [Help] Webshop 97d promlem Help 0
E [Help] Add to my web Help 3
DemonuMu [Help] InspiredWeb 0.1 Beta 1 Problem Help 15
D [Help] MuWeb 0.9 Events time script Help 0
timetogo [Help] Website DS & BC ranking Points Help 6
M [Help] WebShop Help 0
I [Help] MuOnline Websiter for Router Help 0
dDosgwapo [Help] Помощ итеми WEBSHOP Help 0
J [Help] MuWeb 0.9 Registration problem Help 0
SharkY971 [Help] Web Market Help 5
ecnagorra [Help] WebShop Help 1
M [Help] DMN WebShio 1.6 Help 0
oovan [Help] MuWeb 0.9 Help 3
total4o [Help] Web Market Help 3
Olympusz [Help] BC and DS Rank in website Help 0
Olympusz [Help] BC and DS Rank in website Help 3
hanuka [Help] WebShop Skill problem Help 14
M [Help] Connect Web to MSSQL 2008 R2 Help 0
HOLIGAN [Help] Savoy's WebShop 0.9c execute items problem Help 1
E [Help] WebShop Help 2
hrisiz [Help] Проблем с xampp или DarksWeb 0.3 Help 16
total4o [Help] Проблем с DarksWeb 0.3 Help 7
Nesquik [Help] Add items in webshop Help 0
G [Help] Web Security Help 2
DemonuMu [Help] Error Installing WebShop Help 4
R [Help] 97d99i Webshop Help 0
C [Help] Проблем с инсталацията на сайта MuWeb 0.8 Help 9
D [Help] DarksWeb 0.3 SQL Connect Help 0

Similar threads