[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
total4o [Help] MuOnline webs Help 11
ReSpEc7 [Help] Guild Members Don't Show Up in Website Help 19
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

Similar threads