[ Príspevkov: 16 ] 
AutorSpráva
Offline

Užívateľ
Užívateľ
Banner

Registrovaný: 29.12.08
Prihlásený: 10.01.09
Príspevky: 5
Témy: 1 | 1
NapísalOffline : 29.12.2008 21:27 | Banner

Neviem prísť na jednu vec s bannermi. Potreboval by som aby sa prehrávali náhodne pri otvorení stránky, a neviem či to je vôbec možné.

Mám na mysli, že ak si otvorím stránku www.ikaro.sk, zavriem ju a opätovne zasa otvorím tak sa zobrazí stále ten istý banner. V tej to chvíli tam fungujú iba dva bannery, ale potom môže byť aj tretí. Podstatné je to, aby pri prvotnom načítaní stránky sa tam objavil stále iný banner. Posielam aj časť skriptu.



Ďakujem za pomoc.

Kód:
<?

session_start();

 

$id = $_GET['id'];

 

include("includes/cfg.inc.php");

// include("includes/classes.inc.php");

// include("includes/dbconnect.inc.php");

extract($_SESSION);

include("includes/utils.inc.php");

 

 

$b1 =               

"<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"728\" height=\"90\">".

                        "<param name=\"movie\" value=\"images/baners/banner_ikaro.swf?clickthru=http://www.comfor.sk/ \">".

                        "<param name=\"quality\" value=\"high\">".

                        "<embed src=\"images/baners/banner_ikaro.swf?clickthru=http://www.comfor.sk/ \" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"728\" height=\"90\"></embed></object>";

 

$b2 =

"<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"728\" height=\"90\">".

                        "<param name=\"movie\" value=\"images/baners/banner_c200september.swf?clickthru=http://www2.ces.cz/HPPlanetPartnersSK/public/ppp.aspx\">".

                        "<param name=\"quality\" value=\"high\">".

                        "<embed src=\"images/baners/banner_c200september.swf?clickthru=http://www2.ces.cz/HPPlanetPartnersSK/public/ppp.aspx\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"728\" height=\"90\"></embed></object>";

 

$b3 =               

"<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"728\" height=\"90\">".

                        "<param name=\"movie\" value=\"images/baners/banner_ikaro.swf?clickthru=http://http://www.ikaro.sk/ \">".

                        "<param name=\"quality\" value=\"high\">".

                        "<embed src=\"images/baners/banner_ikaro.swf?clickthru=http://http://www.ikaro.sk/ \" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"728\" height=\"90\"></embed></object>".

                                                           "</a>";

if($_SESSION['b1_cnt']<1 && $_SESSION['ban'] == "b1") $_SESSION['b1_cnt']++;

if($_SESSION['b1_cnt']==1)

{

    $_SESSION['ban'] = "b3";

                        $_SESSION['b1_cnt'] = 0;

                        $_SESSION['b2_cnt'] = 0;

                        $_SESSION['b3_cnt'] = 0;

 

}

if($_SESSION['b2_cnt']<1 && $_SESSION['ban'] == "b2") $_SESSION['b2_cnt']++;

if($_SESSION['b2_cnt']==1)

{

    $_SESSION['ban'] = "b1";

                        $_SESSION['b1_cnt'] = 0;

                        $_SESSION['b2_cnt'] = 0;

                        $_SESSION['b3_cnt'] = 0;

 

}

if($_SESSION['b3_cnt']<1 && $_SESSION['ban'] == "b3") $_SESSION['b3_cnt']++;

if($_SESSION['b3_cnt']==1)

{

    $_SESSION['ban'] = "b2";

                        $_SESSION['b1_cnt'] = 0;

                        $_SESSION['b2_cnt'] = 0;

                        $_SESSION['b3_cnt'] = 0;

 

}

 

if(!isset($_SESSION['b1_cnt']))

{

    $_SESSION['ban'] = "b1";

                        $_SESSION['b1_cnt'] = 0;

                        $_SESSION['b2_cnt'] = 0;

                        $_SESSION['b3_cnt'] = 0;

}                       

$banner = $$_SESSION['ban'];


Offline

Užívateľ
Užívateľ
Obrázok užívateľa

Registrovaný: 20.11.07
Prihlásený: 18.01.09
Príspevky: 2929
Témy: 116 | 116
NapísalOffline : 29.12.2008 22:00 | Banner

teda v zivote som nevidel zlozitejsi skript na davanie banerov vygenerujes nahodne cislo myslim ze "rand" medzi 1 a 3 podla cisla budes priradzovat jednotlive baney ;)


Offline

Užívateľ
Užívateľ
Obrázok užívateľa

Registrovaný: 21.06.08
Prihlásený: 11.12.19
Príspevky: 84
Témy: 20 | 20
NapísalOffline : 30.12.2008 15:43 | Banner

no zbohom rodina to si skadial vyhrabal? skus toto lebo na hento sa neda kukat :-D
Kód:
<script type="text/javascript">
  <!--
  Pics = new Array(3);
  Pics[0] = '<A HREF="http://www.link.sk" title="">'+
    '<img src="http://www.ikaro/cesta.jpg" alt="" /></a>';
  Pics[1] = '<A HREF="http://www.link.sk" title="">'+
    '<img src="http://www.ikaro/cesta.jpg" alt="" /></a>';
  Pics[2] = '<A HREF="" title="">'+
    '<img src="" alt="" /></a>';
   document.write(Pics[Math.floor(Math.random() * Pics.length)]);
 // -->
</script>


Offline

Užívateľ
Užívateľ
Banner

Registrovaný: 29.12.08
Prihlásený: 10.01.09
Príspevky: 5
Témy: 1 | 1
Napísal autor témyOffline : 02.01.2009 14:01 | Banner

Slappy píše:
no zbohom rodina to si skadial vyhrabal? skus toto lebo na hento sa neda kukat :-D
Kód:
<script type="text/javascript">
  <!--
  Pics = new Array(3);
  Pics[0] = '<A HREF="http://www.link.sk" title="">'+
    '<img src="http://www.ikaro/cesta.jpg" alt="" /></a>';
  Pics[1] = '<A HREF="http://www.link.sk" title="">'+
    '<img src="http://www.ikaro/cesta.jpg" alt="" /></a>';
  Pics[2] = '<A HREF="" title="">'+
    '<img src="" alt="" /></a>';
   document.write(Pics[Math.floor(Math.random() * Pics.length)]);
 // -->
</script>


to je pekné ale nepomáha ja mám ten script v priamo v index.php


Offline

Užívateľ
Užívateľ
Obrázok užívateľa

Registrovaný: 20.11.07
Prihlásený: 18.01.09
Príspevky: 2929
Témy: 116 | 116
NapísalOffline : 02.01.2009 14:26 | Banner

no a? sak to nemusis dat do php skriptu


Offline

Užívateľ
Užívateľ
Banner

Registrovaný: 29.12.08
Prihlásený: 10.01.09
Príspevky: 5
Témy: 1 | 1
Napísal autor témyOffline : 02.01.2009 16:22 | Banner

no ono to je o tom, že ak zmením php script, tak stránka nefunguje vôbec.
preto chcem zmeniť neako ten pôvodný script, ako prerábať celú stránku.


Offline

Užívateľ
Užívateľ
Obrázok užívateľa

Registrovaný: 20.11.07
Prihlásený: 18.01.09
Príspevky: 2929
Témy: 116 | 116
NapísalOffline : 02.01.2009 16:29 | Banner

ale sak nemusis prerabat celu stranku iba vymaz cely ten svoj skript a nahraj to tymto


Offline

Užívateľ
Užívateľ
Banner

Registrovaný: 29.12.08
Prihlásený: 10.01.09
Príspevky: 5
Témy: 1 | 1
Napísal autor témyOffline : 02.01.2009 17:21 | Banner

dadmtb píše:
ale sak nemusis prerabat celu stranku iba vymaz cely ten svoj skript a nahraj to tymto


mesarc píše:
tak asi som mimo, ale mne to nefunguje. stále tam mám eror. ale posielam celý index. obavam sa ze to nebude fungovat, ale pozri a uvidíš. ja to nedokážem prekopať :oops:
Kód:
<?
session_start();

$id = $_GET['id'];

include("includes/cfg.inc.php");
// include("includes/classes.inc.php");
// include("includes/dbconnect.inc.php");
extract($_SESSION);
include("includes/utils.inc.php");


$b1 =       
         "<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="728" height="90">".
            "<param name="movie" value="images/baners/banner_ikaro.swf?clickthru=http://www.comfor.sk/ ">".
            "<param name="quality" value="high">".
            "<embed src="images/baners/banner_ikaro.swf?clickthru=http://www.comfor.sk/ " quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="728" height="90"></embed></object>";

$b2 =
          "<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="728" height="90">".
            "<param name="movie" value="images/baners/banner_c200september.swf?clickthru=http://www2.ces.cz/HPPlanetPartnersSK/public/ppp.aspx">".
            "<param name="quality" value="high">".
            "<embed src="images/baners/banner_c200september.swf?clickthru=http://www2.ces.cz/HPPlanetPartnersSK/public/ppp.aspx" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="728" height="90"></embed></object>";

$b3 =      
          "<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="728" height="90">".
            "<param name="movie" value="images/baners/banner_ikaro.swf?clickthru=http://http://www.ikaro.sk/ ">".
            "<param name="quality" value="high">".
            "<embed src="images/baners/banner_ikaro.swf?clickthru=http://http://www.ikaro.sk/ " quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="728" height="90"></embed></object>".
               "</a>";
if($_SESSION['b1_cnt']<1 && $_SESSION['ban'] == "b1") $_SESSION['b1_cnt']++;
if($_SESSION['b1_cnt']==1)
{
    $_SESSION['ban'] = "b3";
      $_SESSION['b1_cnt'] = 0;
      $_SESSION['b2_cnt'] = 0;
      $_SESSION['b3_cnt'] = 0;

}
if($_SESSION['b2_cnt']<1 && $_SESSION['ban'] == "b2") $_SESSION['b2_cnt']++;
if($_SESSION['b2_cnt']==1)
{
    $_SESSION['ban'] = "b1";
      $_SESSION['b1_cnt'] = 0;
       $_SESSION['b2_cnt'] = 0;
       $_SESSION['b3_cnt'] = 0;

}
if($_SESSION['b3_cnt']<1 && $_SESSION['ban'] == "b3") $_SESSION['b3_cnt']++;
if($_SESSION['b3_cnt']==1)
{
    $_SESSION['ban'] = "b2";
      $_SESSION['b1_cnt'] = 0;
       $_SESSION['b2_cnt'] = 0;
       $_SESSION['b3_cnt'] = 0;

}

if(!isset($_SESSION['b1_cnt']))
{
    $_SESSION['ban'] = "b1";
         $_SESSION['b1_cnt'] = 0;
      $_SESSION['b2_cnt'] = 0;
      $_SESSION['b3_cnt'] = 0;
}      
$banner = $$_SESSION['ban'];

$arrTitle[0] = "Domov"; $arrPage[0] = "pages/m_home.php";
$arrTitle[1] = "PRODUKTY"; $arrPage[1] = "pages/m_techinka.php";
$arrTitle[2] = "SERVIS"; $arrPage[2] = "pages/m_servis.php";
$arrTitle[3] = "PODPORA"; $arrPage[3] = "pages/m_podpora.php";
$arrTitle[4] = "SPOTREBÁK"; $arrPage[4] = "pages/m_spotrebak.php";
$arrTitle[5] = "SLUŽBY"; $arrPage[5] = "pages/m_sluzby.php";
$arrTitle[6] = "E-OBCHOD"; $arrPage[6] = "pages/m_obchod.php";
$arrTitle[7] = "AKCIE"; $arrPage[7] = "pages/m_akcie.php";
$arrTitle[8] = "ŠTÚDIO A0"; $arrPage[8] = "pages/m_studio.php";
$arrTitle[9] = "ARCHÍV"; $arrPage[9] = "pages/m_archiv.php"; // 9
$arrTitle[83] = "DOKUMENTY"; $arrPage[83] = "pages/m_dokumenty.php"; // 83

$arrTitle[10] = "PÍŠTE"; $arrPage[10] = "pages/m_piste.php"; // 10
$arrTitle[11] = "FIRMA"; $arrPage[11] = "pages/m_firma.php"; // 11
$arrTitle[12] = "KONTAKTY"; $arrPage[12] = "pages/m_kontakty.php"; // 12
$arrTitle[13] = "Výpočtová technika"; $arrPage[13] = "pages/m_technika_vypoctova.php"; // 13
$arrTitle[14] = "Kopírovacia technika"; $arrPage[14] = "pages/m_technika_kopirovacia.php"; // 14
$arrTitle[15] = "Ostatná technika"; $arrPage[15] = "pages/m_technika_ostatna.php"; // 15
$arrTitle[16] = "Kopírovacie a multifunkčné zariadenia Konica Minolta"; $arrPage[16] = "pages/m_technika_kopirovacia_nova.php"; // 16
$arrTitle[17] = "Konica Minolta PagePro 1380MF čierno-biela"; $arrPage[17] = "pages/m_technika_kopirovacia_1380MF.php"; // 17
$arrTitle[18] = "Konica Minolta Bizhub 130f čierno-biela"; $arrPage[18] = "pages/m_technika_kopirovacia_130f.php"; // 18
$arrTitle[19] = "Konica Minolta Bizhub 160 čierno-biela"; $arrPage[19] = "pages/m_technika_kopirovacia_160.php"; // 19
$arrTitle[20] = "Konica Minolta Bizhub 162 čierno-biela"; $arrPage[20] = "pages/m_technika_kopirovacia_162.php"; // 20
$arrTitle[21] = "Konica Minolta Bizhub 210 čierno-biela"; $arrPage[21] = "pages/m_technika_kopirovacia_210.php"; // 21
$arrTitle[22] = "Konica Minolta Bizhub 250 čierno-biela"; $arrPage[22] = "pages/m_technika_kopirovacia_250.php"; // 22
$arrTitle[23] = "Konica Minolta Bizhub 350 čierno-biela"; $arrPage[23] = "pages/m_technika_kopirovacia_350.php"; // 23
$arrTitle[24] = "Konica Minolta Bizhub C250P farebná"; $arrPage[24] = "pages/m_technika_kopirovacia_C250P.php"; // 24
$arrTitle[25] = "Konica Minolta Bizhub C250 farebná"; $arrPage[25] = "pages/m_technika_kopirovacia_C250.php"; // 25
$arrTitle[26] = "Konica Minolta Bizhub C350 farebná"; $arrPage[26] = "pages/m_technika_kopirovacia_C350.php"; // 26
$arrTitle[27] = "Konica Minolta Bizhub C351 farebná"; $arrPage[27] = "pages/m_technika_kopirovacia_C351.php"; // 27
$arrTitle[28] = "Konica Minolta Bizhub C450 farebná"; $arrPage[28] = "pages/m_technika_kopirovacia_C450.php"; // 28
$arrTitle[29] = "Konica Minolta Bizhub C450P farebná"; $arrPage[29] = "pages/m_technika_kopirovacia_C450P.php"; // 29
$arrTitle[30] = "Bazár strojov Konica"; $arrPage[30] = "pages/m_test.php"; // 30
$arrTitle[31] = "Kopírovacia technika Konica 7222"; $arrPage[31] = "pages/m_technika_kopirovacia_repasovana_7222.php"; // 31
$arrTitle[32] = "Kopírovacia technika Konica 7228"; $arrPage[32] = "pages/m_technika_kopirovacia_repasovana_7228.php"; // 32
$arrTitle[33] = "Kopírovacia technika Konica 7235"; $arrPage[33] = "pages/m_technika_kopirovacia_repasovana_7235.php"; // 33
$arrTitle[34] = "Konica Minolta Magicolor 2480MF"; $arrPage[34] = "pages/m_technika_vypoctova_tlaciarne_2480.php"; // 34
$arrTitle[35] = "Konica Minolta Magicolor 2500W"; $arrPage[35] = "pages/m_technika_vypoctova_tlaciarne_2500.php"; // 35
$arrTitle[36] = "Konica Minolta Magicolor 2530DL"; $arrPage[36] = "pages/m_technika_vypoctova_tlaciarne_2530.php"; // 36
$arrTitle[37] = "Konica Minolta Magicolor 2550"; $arrPage[37] = "pages/m_technika_vypoctova_tlaciarne_2550.php"; // 37
$arrTitle[38] = "Konica Minolta Magicolor 5430DL"; $arrPage[38] = "pages/m_technika_vypoctova_tlaciarne_5430.php"; // 38
$arrTitle[39] = "Konica Minolta Magicolor 5440DLX"; $arrPage[39] = "pages/m_technika_vypoctova_tlaciarne_5440.php"; // 39
$arrTitle[40] = "Konica Minolta Magicolor 5450"; $arrPage[40] = "pages/m_technika_vypoctova_tlaciarne_5450.php"; // 40
$arrTitle[41] = "Konica Minolta Bizhub Príslušenstvo C250"; $arrPage[41] = "pages/m_technika_kopirovacia_prislusenstvoC250.php"; // 41
$arrTitle[42] = "Konica Minolta Bizhub Príslušenstvo C250P"; $arrPage[42] = "pages/m_technika_kopirovacia_prislusenstvoC250P.php"; // 42
$arrTitle[43] = "Konica Minolta PagePro 1390MF čierno-biela"; $arrPage[43] = "pages/m_technika_kopirovacia_1390MF.php"; // 43
$arrTitle[44] = "Konica Minolta Bizhub Príslušenstvo C450P"; $arrPage[44] = "pages/m_technika_kopirovacia_prislusenstvoC450P.php"; // 44
$arrTitle[45] = "Konica Minolta Bizhub Príslušenstvo C350"; $arrPage[45] = "pages/m_technika_kopirovacia_prislusenstvoC350.php"; // 45
$arrTitle[46] = "Konica Minolta Bizhub Príslušenstvo C351"; $arrPage[46] = "pages/m_technika_kopirovacia_prislusenstvoC351.php"; // 46
$arrTitle[47] = "Konica Minolta Bizhub Príslušenstvo C450"; $arrPage[47] = "pages/m_technika_kopirovacia_prislusenstvoC450.php"; // 47
$arrTitle[48] = "Kopírovacia technika Konica"; $arrPage[48] = "pages/m_technika_kopirovacia_repasovana.php"; // 48
$arrTitle[49] = "Kopírovacia technika Konica 1312"; $arrPage[49] = "pages/m_technika_kopirovacia_repasovana_1312.php"; // 49
$arrTitle[50] = "Kopírovacia technika Konica 1212"; $arrPage[50] = "pages/m_technika_kopirovacia_repasovana_1212.php"; // 50
$arrTitle[51] = "Kopírovacia technika Konica 1216"; $arrPage[51] = "pages/m_technika_kopirovacia_repasovana_1216.php"; // 51
$arrTitle[52] = "Kopírovacia technika Konica 7020"; $arrPage[52] = "pages/m_technika_kopirovacia_repasovana_7020.php"; // 52
$arrTitle[53] = "Kopírovacia technika Konica 7025"; $arrPage[53] = "pages/m_technika_kopirovacia_repasovana_7025.php"; // 53
$arrTitle[54] = "Kopírovacia technika Konica 7030"; $arrPage[54] = "pages/m_technika_kopirovacia_repasovana_7030.php"; // 54
$arrTitle[55] = "Kopírovacia technika Konica 7035"; $arrPage[55] = "pages/m_technika_kopirovacia_repasovana_7035.php"; // 55
$arrTitle[56] = "Kopírovacia technika Konica 7115"; $arrPage[56] = "pages/m_technika_kopirovacia_repasovana_7115.php"; // 56
$arrTitle[57] = "Kopírovacia technika Konica 7118"; $arrPage[57] = "pages/m_technika_kopirovacia_repasovana_7118.php"; // 57
$arrTitle[58] = "Kopírovacia technika Konica 7022"; $arrPage[58] = "pages/m_technika_kopirovacia_repasovana_7022.php"; // 58
$arrTitle[59] = "Kopírovacia technika Konica 7130"; $arrPage[59] = "pages/m_technika_kopirovacia_repasovana_7130.php"; // 59
$arrTitle[60] = "Kopírovacia technika Konica 7135"; $arrPage[60] = "pages/m_technika_kopirovacia_repasovana_7135.php"; // 60
$arrTitle[61] = "Kopírovacia technika Konica 7155"; $arrPage[61] = "pages/m_technika_kopirovacia_repasovana_7155.php"; // 61
$arrTitle[62] = "Kopírovacia technika Konica 7165"; $arrPage[62] = "pages/m_technika_kopirovacia_repasovana_7165.php"; // 62
$arrTitle[63] = "PRODUKTY"; $arrPage[63] = "pages/m_technika.php"; // 63
$arrTitle[64] = "čiernobiele kopírovanie"; $arrPage[64] = "pages/m_sluzby_cb_kopirovanie.php"; // 64
$arrTitle[65] = "Plnofarebné kopírovanie"; $arrPage[65] = "pages/m_sluzby_plnofarebne_kopirovanie.php"; // 65
$arrTitle[66] = "Veľkokapacitné kopírovanie"; $arrPage[66] = "pages/m_sluzby_velkokapacitne_kopirovanie.php"; // 66
$arrTitle[67] = "Skenovanie"; $arrPage[67] = "pages/m_sluzby_skenovanie.php"; // 67
$arrTitle[68] = "Hrebeňová väzba a laminovanie"; $arrPage[68] = "pages/m_sluzby_hrebenova_vazba.php"; // 68
$arrTitle[69] = "Planografia"; $arrPage[69] = "pages/m_sluzby_planografia.php"; // 69
$arrTitle[70] = "Planografia čiernobiela"; $arrPage[70] = "pages/m_sluzby_planografia_cb.php"; // 70
$arrTitle[71] = "Planografia farebná"; $arrPage[71] = "pages/m_sluzby_planografia_farba.php"; // 71
$arrTitle[72] = "Certifikáty"; $arrPage[72] = "pages/m_certifikaty.php"; // 72
$arrTitle[73] = "Ocenenia"; $arrPage[73] = "pages/m_ocenenia.php"; // 73
$arrTitle[74] = "HP Supplies partner connect"; $arrPage[74] = "images/certifikat_HP.gif"; // 74
$arrTitle[75] = "Konica Minolta Bizhub C352P farebná"; $arrPage[75] = "pages/m_technika_kopirovacia_C352P.php"; // 75
$arrTitle[76] = "Konica Minolta Bizhub Príslušenstvo C352P"; $arrPage[76] = "pages/m_technika_kopirovacia_prislusenstvoC352P.php"; // 76
$arrTitle[77] = "Kopírovacia technika Konica 7145"; $arrPage[77] = "pages/m_technika_kopirovacia_repasovana_7145.php"; // 77
$arrTitle[78] = "Emperon"; $arrPage[78] = "pages/m_emperon.htm"; // 78
$arrTitle[79] = "Konica 7135"; $arrPage[79] = "pages/m_technika_bazar_7135.php"; // 79
$arrTitle[80] = "Konica Minolta Magicolor 2490MF"; $arrPage[80] = "pages/m_technika_vypoctova_tlaciarne_2490.php"; // 80
$arrTitle[81] = "PictBridge"; $arrPage[81] = "pages/m_pictbridge.php"; // 81
$arrTitle[82] = "Akciová ponuka"; $arrPage[82] = "pages/m_akciova_ponuka.php"; // 82
$arrTitle[84] = "Konica Minolta Bizhub 163 čierno-biela"; $arrPage[84] = "pages/m_technika_kopirovacia_163.php"; // 84
$arrTitle[85] = "Čo je nové"; $arrPage[85] = "pages/m_co_je_nove.php"; // 85
$arrTitle[86] = "Konica Minolta Bizhub 211 čierno-biela"; $arrPage[86] = "pages/m_technika_kopirovacia_211.php"; // 86
$arrTitle[87] = "Planografia farebná foto"; $arrPage[87] = "pages/m_sluzby_planografia_fototlac.php"; // 87
$arrTitle[88] = "Splátkový predaj"; $arrPage[88] = "pages/m_splatkovy_predaj.php"; // 88
$arrTitle[89] = "Splátkový predaj SNP"; $arrPage[89] = "pages/m_splatkovy_predaj_snp.php"; // 89
$arrTitle[90] = "Splátkový predaj Cash + ZS"; $arrPage[90] = "pages/m_splatkovy_predaj_cashzs.php"; // 90
$arrTitle[91] = "Splátkový predaj Cash"; $arrPage[91] = "pages/m_splatkovy_predaj_cash.php"; // 91
$arrTitle[92] = "Archív starších modelov"; $arrPage[92] = "pages/m_archiv_stroje.php"; // 92
$arrTitle[93] = "Konica Minolta Bizhub C352 farebná"; $arrPage[93] = "pages/m_technika_kopirovacia_C352.php"; // 93
$arrTitle[94] = "Konica Minolta Bizhub Príslušenstvo C352"; $arrPage[94] = "pages/m_technika_kopirovacia_prislusenstvoC352.php"; // 94
$arrTitle[95] = "Konica Minolta Bizhub C300 farebná"; $arrPage[95] = "pages/m_technika_kopirovacia_C300.php"; // 95
$arrTitle[96] = "Konica Minolta Bizhub Príslušenstvo C300"; $arrPage[96] = "pages/m_technika_kopirovacia_prislusenstvoC300.php"; // 96
$arrTitle[97] = "Konica Minolta Bizhub 420"; $arrPage[97] = "pages/m_technika_kopirovacia_420.php"; // 97
$arrTitle[98] = "Konica Minolta Bizhub Príslušenstvo 420"; $arrPage[98] = "pages/m_technika_kopirovacia_prislusenstvo_420.php"; // 98
$arrTitle[99] = "Konica Minolta Bizhub C252 farebná"; $arrPage[99] = "pages/m_technika_kopirovacia_C252.php"; // 99
$arrTitle[100] = "Konica Minolta Bizhub C252P farebná"; $arrPage[100] = "pages/m_technika_kopirovacia_C252P.php"; // 100
$arrTitle[101] = "Konica Minolta Bizhub Príslušenstvo C252"; $arrPage[101] = "pages/m_technika_kopirovacia_prislusenstvoC252.php"; // 101
$arrTitle[102] = "Konica Minolta Bizhub Príslušenstvo C252P"; $arrPage[102] = "pages/m_technika_kopirovacia_prislusenstvoC252P.php"; // 102
$arrTitle[103] = "Konica Minolta Bizhub C550 farebná"; $arrPage[103] = "pages/m_technika_kopirovacia_C550.php"; // 103
$arrTitle[104] = "Konica Minolta Bizhub Príslušenstvo C550"; $arrPage[104] = "pages/m_technika_kopirovacia_prislusenstvoC550.php"; // 104
$arrTitle[105] = "Konica Minolta Bizhub Príslušenstvo 211"; $arrPage[105] = "pages/m_technika_kopirovacia_prislusenstvo_211.php"; // 105
$arrTitle[106] = "Konica Minolta Bizhub Príslušenstvo 250"; $arrPage[106] = "pages/m_technika_kopirovacia_prislusenstvo_250.php"; // 106
$arrTitle[107] = "Konica Minolta Bizhub Príslušenstvo 350"; $arrPage[107] = "pages/m_technika_kopirovacia_prislusenstvo_350.php"; // 107
$arrTitle[108] = "Konica Minolta Bizhub Príslušenstvo C203"; $arrPage[108] = "pages/m_technika_kopirovacia_prislusenstvoC203.php"; // 108
$arrTitle[109] = "Konica Minolta Bizhub Príslušenstvo C253"; $arrPage[109] = "pages/m_technika_kopirovacia_prislusenstvoC253.php"; // 109
$arrTitle[110] = "Konica Minolta Bizhub Príslušenstvo C353"; $arrPage[110] = "pages/m_technika_kopirovacia_prislusenstvoC353.php"; // 110
$arrTitle[111] = "Konica Minolta Bizhub Príslušenstvo C451"; $arrPage[111] = "pages/m_technika_kopirovacia_prislusenstvoC451.php"; // 111
$arrTitle[112] = "Konica Minolta Bizhub C203 farebná"; $arrPage[112] = "pages/m_technika_kopirovacia_C203.php"; // 103
$arrTitle[113] = "Konica Minolta Bizhub C253 farebná"; $arrPage[113] = "pages/m_technika_kopirovacia_C253.php"; // 103
$arrTitle[114] = "Konica Minolta Bizhub C353 farebná"; $arrPage[114] = "pages/m_technika_kopirovacia_C353.php"; // 103
$arrTitle[115] = "Konica Minolta Bizhub C451 farebná"; $arrPage[115] = "pages/m_technika_kopirovacia_C451.php"; // 103
$arrTitle[116] = "Konica Minolta Bizhub Príslušenstvo 163"; $arrPage[116] = "pages/m_technika_kopirovacia_prislusenstvo_163.php"; // 116
$arrTitle[117] = "Archív starších modelov"; $arrPage[117] = "pages/m_archiv_konica.php"; // 117
$arrTitle[118] = "Archív čo je nové"; $arrPage[118] = "pages/m_archiv_conove.php"; // 118
$arrTitle[119] = "Konica Minolta Bizhub C550 farebná"; $arrPage[119] = "pages/m_technika_kopirovacia_C650.php"; // 119
$arrTitle[120] = "Konica Minolta Bizhub Príslušenstvo C550"; $arrPage[120] = "pages/m_technika_kopirovacia_prislusenstvoC650.php"; // 120
$arrTitle[121] = "Konica Minolta Bizhub 500"; $arrPage[121] = "pages/m_technika_kopirovacia_500.php"; // 121
$arrTitle[122] = "Konica Minolta Bizhub Príslušenstvo 500"; $arrPage[122] = "pages/m_technika_kopirovacia_prislusenstvo_500.php"; // 122
$arrTitle[123] = "Konica Minolta Bizhub 600"; $arrPage[123] = "pages/m_technika_kopirovacia_600.php"; // 123
$arrTitle[124] = "Konica Minolta Bizhub Príslušenstvo 600"; $arrPage[124] = "pages/m_technika_kopirovacia_prislusenstvo_600.php"; // 124
$arrTitle[125] = "Konica Minolta Bizhub 750"; $arrPage[125] = "pages/m_technika_kopirovacia_750.php"; // 125
$arrTitle[126] = "Konica Minolta Bizhub Príslušenstvo 750"; $arrPage[126] = "pages/m_technika_kopirovacia_prislusenstvo_750.php"; // 126
$arrTitle[127] = "Konica Minolta Bizhub C200"; $arrPage[127] = "pages/m_technika_kopirovacia_C200.php"; // 127
$arrTitle[128] = "Konica Minolta Bizhub Príslušenstvo C200"; $arrPage[128] = "pages/m_technika_kopirovacia_prislusenstvo_C200.php"; // 128
$arrTitle[129] = "Konica Minolta Bizhub 361"; $arrPage[129] = "pages/m_technika_kopirovacia_361.php"; // 129
$arrTitle[130] = "Konica Minolta Bizhub Príslušenstvo 361"; $arrPage[130] = "pages/m_technika_kopirovacia_prislusenstvo_361.php"; // 130
$arrTitle[131] = "Konica Minolta Bizhub 421"; $arrPage[131] = "pages/m_technika_kopirovacia_421.php"; // 131
$arrTitle[132] = "Konica Minolta Bizhub Príslušenstvo 421"; $arrPage[132] = "pages/m_technika_kopirovacia_prislusenstvo_421.php"; // 132
$arrTitle[133] = "Konica Minolta Bizhub 501"; $arrPage[133] = "pages/m_technika_kopirovacia_501.php"; // 133
$arrTitle[134] = "Konica Minolta Bizhub Príslušenstvo 501"; $arrPage[134] = "pages/m_technika_kopirovacia_prislusenstvo_501.php"; // 134
$arrTitle[135] = "Nonstop print"; $arrPage[135] = "pages/m_nonstop_print.php"; // 135
$arrTitle[136] = "Výročné správy"; $arrPage[136] = "pages/m_vyrocna_sprava.php"; // 136
$arrTitle[137] = "Akciová ponuka"; $arrPage[137] = "pages/m_akciova_ponuka.php"; // 137
$arrTitle[138] = "Akciová ponuka"; $arrPage[138] = "pages/m_velke_veci.php"; // 138




// build menu
$mnu = "<table width="100%" cellspacing=1 cellpadding=4>\r\n".
          "<tr>\r\n";

foreach($arrTitle AS $i => $val)
{
   if(!file_exists($arrPage[$i]))
    {
       $fp = fopen($arrPage[$i],"w");
         fwrite($fp,"<h1>".$arrTitle[$i]."</h1><p>&nbsp;<p align=center><b>Pripravujeme...</b><br><img src="images/null.gif" width=1 height=300>\r\n");
         fclose($fp);
    }
    if(($i==0 || $i>9) && $i!=83) continue;
    //      <a href="default.html" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '150px')" onMouseout="delayhidemenu()">Web Design</a>
    if($id==$i && $i!=1) $mnu .= "<td bgcolor="#cccccc" align="center" style="font-size:11px;"><b>".$arrTitle[$i]."</b></td>\r\n";
    // elseif($i==1) $mnu .= "<td bgcolor="#ff9600" align="center" onmouseover="this.style.background='#ffcf84'" onmouseOUT="this.style.background='#ff9600'"><a href="index.php?id=$i" class="mainmenu" onMouseover="dropdownmenu(this, event, menu1, '150px')" onMouseout="delayhidemenu()">".$arrTitle[$i]."</a></td>\r\n";
    elseif($i==1)
    {
       // ake je Techinka vyp, kop alebo ostatna
         if($id==13 || $id==14 || $id==15 || $id==16)
         {
            $mnu .= "<td bgcolor="#cccccc" align="center" style="font-size:11px;"><span style="color : white; text-decoration : none; font-weight: bold; font-size: 11px;" onMouseover="dropdownmenu(this, event, menu1, '130px')" onMouseout="delayhidemenu()">".$arrTitle[$i]."</span></td>\r\n";
         }
         else $mnu .= "<td bgcolor="#ff9600" align="center" onmouseover="this.style.background='#ffcf84'" onmouseOUT="this.style.background='#ff9600'"><span style="color : white; text-decoration : none; font-weight: bold; font-size: 11px;" onMouseover="dropdownmenu(this, event, menu1, '130px')" onMouseout="delayhidemenu()">".$arrTitle[$i]."</span></td>\r\n";
    }
    elseif($i==6)
    {
         // ak je linka na e-obchod, tak linka na e-obchod
            $mnu .= "<td bgcolor="#ff9600" align="center" onmouseover="this.style.background='#ffcf84'" onmouseOUT="this.style.background='#ff9600'"><a href="index.php?id=6" class="mainmenu">".$arrTitle[$i]."</a></td>\r\n";
    }
     else $mnu .= "<td bgcolor="#ff9600" align="center" onmouseover="this.style.background='#ffcf84'" onmouseOUT="this.style.background='#ff9600'"><a href="index.php?id=$i" class="mainmenu">".$arrTitle[$i]."</a></td>\r\n";
}
$mnu .= "</tr>\r\n</table>\r\n";

if (isset($id) == false) $id = 0;
if ($id > count($arrTitle)) $id = 0;

?>
<html>
<head>

      <title>IKARO s.r.o.</title>
   
   <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
   <meta name="description" lang="sk" content="Konica Minolta, Konica Minolta, HP, Hewlett Packard, Riso, kopirka, kopírka, kopirky, kopírky, kopírovací stroj, tlaeiarne, poeítae, PC, notebook, monitory, LCD, MFP, projektory, multifunkené, tonery, cartridge, servis, prenájom, predaj">
   <meta name="keywords" lang="sk" content="Konica Minolta, Konica Minolta, HP, Hewlett Packard, Riso, kopirka, kopírka, kopirky, kopírky, kopírovací stroj, tlaeiarne, poeítae, PC, notebook, monitory, LCD, MFP, projektory, multifunkené, tonery, cartridge, servis, prenájom, predaj">
   <meta name="ROBOTS" content="ALL; FOLLOW">
   <meta name="resource-type" content="document">
   <meta name="copyright" content="(c) IKARO s.r.o.">
   <meta name="author" content="IKARO s.r.o.">
   <meta http-equiv="Content-Language" content="sk">
   <meta name="language" content="sk">
   <meta http-equiv="Content-Script-Type" content="text/javascript">
   <meta http-equiv="Content-Style-Type" content="text/css">         
   <link rel="shortcut icon" href="http://www.ikaro.sk/images/maskot.gif" type="image/vnd.microsoft.icon" />      
   <link rel="stylesheet" type="text/css" href="includes/style.css">   
   <style type="text/css">

#dropmenudiv{
position:absolute;
border: 1px solid white;
border-bottom-width: 0;
font:normal 1px Verdana;
line-height:18px;
z-index:100;
}

#dropmenudiv a{
width: 100%;
display: block;
text-indent2px;
border-bottom: 1px solid white;
padding: 1px 0;
text-decoration: normal;
font-weight: normal;
}

#dropmenudiv a:hover{ /*hover background color*/
background-color: #c8eeca;
}

</style>

<script type="text/javascript">

/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="index.php?id=13" class="menu">::výpočtová technika</a>'
menu1[1]='<a href="index.php?id=14" class="menu">::kopírovacia technika</a>'
menu1[2]='<a href="index.php?id=15" class="menu">::ostatná technika</a>'

//Contents for menu 2, and so on
/*
var menu2=new Array()
menu2[0]='<a href="http://cnn.com">CNN</a>'
menu2[1]='<a href="http://msnbc.com">MSNBC</a>'
menu2[2]='<a href="http://news.bbc.co.uk">BBC News</a>'
*/
   
var menuwidth='165px' //default menu width
var menubgcolor='#9fd7a3'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}



function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")-10
dropmenuobj.y=getposOffset(obj, "top")+4
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

</script>
</head>
<body>

<center>
<table border="0" width="900" align="center" cellpadding=1 cellspacing=0 bgcolor="white"><tr><td>
<table border="0" width="900" align="center" cellpadding=0 cellspacing=0 bgcolor="white">
  <tr>   
   <? if($id==0) $cs=3; else $cs = 2; ?>
    <td width="900" colspan="<?= $cs ?>">
      <!-- logo -->
         <table border=0 cellpadding=0 cellspacing=0 width="100%">
          <tr>
            <td width="507"><img src="images/ikaro_logo.jpg" alt="<?= $projectName ?>"></td>
               <td align=center>
               <?= $banner ?>
               </td>
               <!--
               <td align="right" vAlign="top"><a href="index.php" title="Domov"><img src="images/home_ico.gif" width="55" height="17" alt="Domov" border="0" vSpace="5" hSpace="5"></a></td>
               -->
          </tr>
          </table>
      <!-- logo end -->
      </td>
  </tr>
  <tr>
 
    <td width="900" colspan="<?= $cs ?>" align="right">
      <!-- ikonky -->
        <table border=0 cellpadding=0 cellspacing=0>
           <tr>
                   <td><a href="index.php?id=85" title="Čo je nové"><img src="images/co_je_nove.gif" width="76" height="14" alt="" border="0"></a></td>
<td><img src="images/null.gif" width="68" height="18">
                   <td><img src="images/sep.gif" width="17" height="18" alt="" border="0"></td>
                   <td><a href="index.php?id=10" title="Píšte"><img src="images/piste.gif" width="43" height="18" alt="" border="0"></a></td>
                  <td><img src="images/sep.gif" width="17" height="18" alt="" border="0"></td>
                  <td><a href="index.php" title="Domov"><img src="images/home.gif" width="47" height="18" alt="" border="0"></a></td>
                  <td><img src="images/sep.gif" width="17" height="18" alt="" border="0"></td>
                  <td><a href="index.php?id=11" title="Firma"><img src="images/firma.gif" width="47" height="18" alt="" border="0"></a></td>
                  <td><img src="images/sep.gif" width="17" height="18" alt="" border="0"></td>
                  <td><a href="index.php?id=12" title="Kontakty"><img src="images/kontakty.gif" width="70" height="18" alt="" border="0"></a></td>
                  <td><img src="images/null.gif" width="10" height="18" alt="" border="0"></td>
           <td align="top"><script src="http://p1.naj.sk/code?site=27052;t=o14" type="text/javascript"></script><noscript><div><a href="http://naj.sk/"><img src="http://p1.naj.sk/hit?site=27052;t=o14;ref=;jss=0" width="14" height="14" alt="NAJ.sk" style="border:none" /></a></div></noscript></td>
            
            </tr>
         </table>
      <!-- ikonky end -->
      </td>
  </tr>
  <tr>
    <td width="112" rowspan="2" bgcolor="#9fd7a3" vAlign="top">
      <!-- lavy stlpec -->
      <table border=0 cellpadding=0 cellspacing=0 width="100%">
      <tr><td><img src="images/postavy.jpg" width="122" height="160" alt=""></tr></tr>
      <tr><td bgcolor="white"><img src="images/null.gif" width="1" height="1" alt=""></td></tr>
      <tr><td><img src="images/null.gif" width="1" height="1" alt="">

<script>
function tick() {
var hours, minutes, seconds, ap;
var intHours, intMinutes, intSeconds;
var today;

today = new Date();

intHours = today.getHours();
intMinutes = today.getMinutes();
intSeconds = today.getSeconds();

if (intHours == 0) {
hours = "24:";
ap = "Midnight";
} else if (intHours < 24) {
hours = intHours+":";
ap = " ";
} else if (intHours == 24) {
hours = "24:";
ap = "Noon";
} else {
intHours = intHours - 24
hours = intHours + ":";
ap = " ";
}

if (intMinutes < 10) {
minutes = "0" + intMinutes + ":";
} else {
minutes = intMinutes + ":";
}

if (intSeconds < 10) {
seconds = "0" + intSeconds + " ";
} else {
seconds = intSeconds + " ";
}

timeString = hours + minutes + seconds + ap;

Clock.innerHTML = timeString;

window.setTimeout("tick();", 100);
}

window.onload = tick;

</script>

<div id="Clock" align="center" style="font-family: arial; font-size: 15px; color: white;"> </div>
</td></tr>
      <tr><td bgcolor="white"><img src="images/null.gif" width="1" height="1" alt=""></td></tr>
      <tr><td><img src="images/slogan.jpg" width="119" height="178" alt=""></td></tr>
      <tr><td bgcolor="white"><img src="images/null.gif" width="1" height="1" alt=""></td></tr>
      <? if($id==0) {?>
      <tr><td><img src="images/null.gif" width="1" height="20" alt=""></td></tr>
      <?} else {?>
      <tr><td align="center"><br>&nbsp;
          <table border=0 cellpadding=0 cellspacing=3 bgcolor="white" align="center">   
            <tr>
               <td><a href="index.php?id=6"><img src="images/e-obchod_small.jpg" alt="" border="0"></a></td>
            
            </tr>
            </table>
      </td></tr>
      <tr><td><img src="images/null.gif" width="1" height="40" alt=""></td></tr>
      <?}?>
      <tr><td bgcolor="white"><img src="images/null.gif" width="1" height="1" alt=""></td></tr>
      </table>
      <table border=0 cellpadding=0 align="center">
      <td>
            <SCRIPT language=JavaScript><!--
function open_win(pth,w,h) {
 w = w + 40;
 h = h + 45;
  newWin1 = open(pth, "Ikaro", "resizable=yes,width="+w+",height="+h+",directories=no,location=no,status=no,toolbar=no,scrollbars=yes");
  newWin1.focus();
}
//--></SCRIPT>
            <a href="javascript:open_win('images/15rokov.htm',810,640)">
            <table><img border="0" src="images/baners/15rokov_maskot.jpg" width="96" height="99"></table></a><br>            
            
                        
            <img border="0" align="center" src="images/null.gif" width="86" height="99"></table></a>
      <!-- lavy stlpec end -->
      </td>
      <? if($id==0) $cs=2; else $cs = 1; ?>
    <td width="788" height="20" colspan="<?= $cs ?>" vAlign="top">
      <!-- hlavne menu -->
      <?= $mnu; ?>
      <!-- hlavne menu end -->
      </td>
  </tr>
  <tr>
    <td width="780" vAlign="top">
      <!-- hlavny obsah -->
     <?
            if(file_exists($arrPage[$id])) include($arrPage[$id]);
            else err('<br>&nbsp;Vybraná stránka neexistuje!');
     ?>                  
      <!-- hlavny obsah end -->
      </td>
      <? if($id==0) { ?>
    <td width="188" vAlign="top" style="background-image: url('images/mriezka.gif')" align="center">
      <!-- pravy stlpec -->
      <br>
      <table cellpadding=0 cellspacing=0 width="188" vAlign=bottom><tr>
      <td align="center">
                <table border=0 cellpadding=0 cellspacing=5 bgcolor="white" align="center">
            <tr>
               <td><a href="index.php?id=6"><img src="images/e-obchod_new.jpg" border=0></a></td>
            </tr>
            </table>
      </td>
      </tr></table>
      <br>
   
      <a href="http://ikaro.sk.orchidej.biz/main.aspx?ORDER_BY=PRICE&PIX_SORT=E00501490437&PRO_ID=&CLS=product&VMENUITEM1=2521&VMENU=88&PRS_ID=&VMENUITEM2=-103912&PAGE=5&__page=7" target="_blank">
      <img src="images/hppp_2008_blk_vert2.jpg" border=0></a>
      <p>
      <a href="index.php?id=14"><img src="images/konica_logo.gif" border=0></a>
      <p>
      <a href="http://www.risograph.sk" target="_blank"><img src="images/riso_logo.jpg" border=0></a></p>
      <br>
            <div align="center"><a href="http://ikaro.ekatalog.biz/zbozi.aspx?skup=2&kat=124&vyr=361&skladem=0&page=1&sort=Cena%20EU&desc=0" target="_blank">
      <img border="0" src="images/comfor_logo.jpg" width="86" height="23"></a></div>
      <br>
      <div align="center"><a href="http://ikaro.sk.orchidej.biz/main.aspx?ORDER_BY=PRICE&PRO_ID=&CLS=product&VMENUITEM3=6681&PRS_ID=&VMENUITEM1=2521&VMENU=88&PAGE=1&VMENUITEM2=-103909&PIX_SORT=E005014905470352&__cls=product&__pro_id=&__pix_sort=E005014905490355&__vmenuitem3=6681" target="_blank">
      <img border="0" src="images/logo_designjet.jpg" width="113" height="123"></a></div>
      <img src="images/null.gif" width=1 height="30" border=0><br>   
      <!-- pravy stlpec end -->
      </td>
      <?}?>
  </tr>
</table>
</td></tr></table>
<p class="copy">©2007 IKARO s.r.o.</p>
</center>
</body>

</html>
[/quote]


Offline

Užívateľ
Užívateľ
Obrázok užívateľa

Registrovaný: 21.06.08
Prihlásený: 11.12.19
Príspevky: 84
Témy: 20 | 20
NapísalOffline : 02.01.2009 20:57 | Banner

a to je jakoze co? ja viem ze niektory ludia nemaju vela chapavosti k tomuto co je antom take tazke tam daj ten moj kod namiesto toho tvojho? ved to pochopi snad kazdy normalny clovek...


Offline

Užívateľ
Užívateľ
Banner

Registrovaný: 29.12.08
Prihlásený: 10.01.09
Príspevky: 5
Témy: 1 | 1
Napísal autor témyOffline : 10.01.2009 18:42 | Banner

[quote="mesarc"]Neviem prísť na jednu vec s bannermi. Potreboval by som aby sa prehrávali náhodne pri otvorení stránky, a neviem či to je vôbec možné.

Mám na mysli, že ak si otvorím stránku www.ikaro.sk, zavriem ju a opätovne zasa otvorím tak sa zobrazí stále ten istý banner. V tej to chvíli tam fungujú iba dva bannery, ale potom môže byť aj tretí. Podstatné je to, aby pri prvotnom načítaní stránky sa tam objavil stále iný banner. Posielam aj časť skriptu.



Ďakujem za pomoc.


Offline

Skúsený užívateľ
Skúsený užívateľ
Banner

Registrovaný: 30.05.06
Prihlásený: 08.10.14
Príspevky: 1756
Témy: 35 | 35
Bydlisko: BA - WESTSIDE
NapísalOffline : 10.01.2009 19:17 | Banner

Stačí ti toto:
Kód:
$banners = array("b1", "b2", "b3");
$banner = $banners[mt_rand(1, 3)];

Takže celkove to bude vyzerať takto:
Kód:
<?php
session_start();
$id = $_GET['id'];
include("includes/cfg.inc.php");
// include("includes/classes.inc.php");
// include("includes/dbconnect.inc.php");
extract($_SESSION);
include("includes/utils.inc.php");
$b1 = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"728\" height=\"90\">".
"<param name=\"movie\" value=\"images/baners/banner_ikaro.swf?clickthru=http://www.comfor.sk/ \">".
"<param name=\"quality\" value=\"high\">".
"<embed src=\"images/baners/banner_ikaro.swf?clickthru=http://www.comfor.sk/ \" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"728\" height=\"90\"></embed></object>";
$b2 = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"728\" height=\"90\">".
"<param name=\"movie\" value=\"images/baners/banner_c200september.swf?clickthru=http://www2.ces.cz/HPPlanetPartnersSK/public/ppp.aspx\">".
"<param name=\"quality\" value=\"high\">".
"<embed src=\"images/baners/banner_c200september.swf?clickthru=http://www2.ces.cz/HPPlanetPartnersSK/public/ppp.aspx\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"728\" height=\"90\"></embed></object>";
$b3 = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"728\" height=\"90\">".
"<param name=\"movie\" value=\"images/baners/banner_ikaro.swf?clickthru=http://http://www.ikaro.sk/ \">".
"<param name=\"quality\" value=\"high\">".
"<embed src=\"images/baners/banner_ikaro.swf?clickthru=http://http://www.ikaro.sk/ \" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"728\" height=\"90\"></embed></object>".
"</a>";
$banners = array("b1", "b2", "b3");
$banner = $banners[mt_rand(1, 3)];


_________________
A. S. Tanenbaum píše:
The terms LF, MF, and HF refer to low, medium, and high frequency, respectively. Clearly, when the names were assigned, nobody expected to go above 10 MHz, so the higher bands were later named the Very, Ultra, Super, Extremely, and Tremendously High Frequency bands. Beyond that there are no names, but Incredibly, Astonishingly, and Prodigiously high frequency (IHF, AHF, and PHF) would sound nice.
Offline

Užívateľ
Užívateľ
Banner

Registrovaný: 27.09.07
Prihlásený: 31.12.15
Príspevky: 646
Témy: 233 | 233
Bydlisko: Dubnica nad...
NapísalOffline : 12.08.2009 17:16 | Banner

neexistuje nejaky univerzalny funkcny kod pre random zobrazovanie swf banerov? lebo na nete ich je vela a kazdy je iny.. a par cosom skusal mi nefungovalo...:(


_________________
Notebook: ASUS N750JV: Windows 8.1 64bit, Intel(R) Core(TM) i7-4700HQ CPU 2.40 GHz, 12GB RAM (DDR3 1600 MHz), NVIDIA GeForce GT 750M 4GB VRAM + HD Graphics 4600, 750 GB HDD (7200 rpm), Blu-ray Reader.
Smartphone: Samsung Galaxy S5 mini
Offline

Užívateľ
Užívateľ
Obrázok užívateľa

Registrovaný: 09.05.09
Prihlásený: 07.10.13
Príspevky: 63
Témy: 20 | 20
Bydlisko: Košice
NapísalOffline : 12.08.2009 18:44 | Banner

Marek Adamec píše:
neexistuje nejaky univerzalny funkcny kod pre random zobrazovanie swf banerov? lebo na nete ich je vela a kazdy je iny.. a par cosom skusal mi nefungovalo...:(


ved to mas prispevok nad tebou ;)

Kód:
<?php
$b1 = "HTML KOD PRVEHO BANNERA";
$b2 = "HTML KOD DRUHEHO BANNERA";
$b3 = "HTML KOD TRETIEHO BANNERA";
$banners = array("b1", "b2", "b3");
$banner = $banners[mt_rand(1, 3)];
echo $banner;


Offline

Čestný člen
Čestný člen
Banner

Registrovaný: 11.08.07
Príspevky: 4088
Témy: 34 | 34
Bydlisko: Brno
NapísalOffline : 12.08.2009 18:50 | Banner

p360t: nemalo tam byt skor mt_rand(0, 2) ? Kvoli tomu, aby si vecne nemusel menit cisla v pripade pridania/odstranenia prvku z pola, odporucam radsej array_rand() ;)
A ako pozeram ten kod podrobnejsie, zda sa mi, ze v premennej $banner bude len string 'b1', 'b2' alebo 'b3'...hm?


Offline

Užívateľ
Užívateľ
Banner

Registrovaný: 27.09.07
Prihlásený: 31.12.15
Príspevky: 646
Témy: 233 | 233
Bydlisko: Dubnica nad...
NapísalOffline : 13.08.2009 18:29 | Banner

moze sluzit tento kod na bezchybne prehravanie swf baneru?

Kód:
<param name="movie" value="../swf/hory.swf" /><param name="quality" value="high" /><param name="menu" value="false" /><param name="wmode" value="" /><embed src="../swf/hory.swf" wmode="" quality="high" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="560" height="72"></embed>



umna to zobrazuje dobre len by som chcel vediet ci je ten kod dobry bez chyby...


_________________
Notebook: ASUS N750JV: Windows 8.1 64bit, Intel(R) Core(TM) i7-4700HQ CPU 2.40 GHz, 12GB RAM (DDR3 1600 MHz), NVIDIA GeForce GT 750M 4GB VRAM + HD Graphics 4600, 750 GB HDD (7200 rpm), Blu-ray Reader.
Smartphone: Samsung Galaxy S5 mini
Offline

Užívateľ
Užívateľ
Banner

Registrovaný: 26.07.06
Prihlásený: 20.03.16
Príspevky: 1378
Témy: 90 | 90
Bydlisko: Slovakia-Ko...
NapísalOffline : 14.08.2009 17:30 | Banner

to nepatri sem to patri do sekcie html


_________________
CPU: Intel E7200 momentalne default + freezer 7 pro | MB: Gigabyte GA-P35-DS3 rev. 2.0 F14 | RAM: A-DATA 4x1GB EE Vitesta | VGA: ATI Radeon HD4850 Sapphire Dual Slot | Monitor: BenQ E2200HD+17CTX | HDD: WD 3200AAKS + Maxtor 6Y080M0 80GB SATAII + 120GB ATA Barracuda | PSU: Corsair VX450W | Windows 7 Ultimate Sk | REPRO: Logitech X-210
+
IPhone 3GS JB 3.1.3 (new BR)
múdry sa postara o seba ale ešte múdrejši sa postara aj o druhých
 [ Príspevkov: 16 ] 


Banner



Podobné témy

 Témy  Odpovede  Zobrazenia  Posledný príspevok 
V tomto fóre nie sú ďalšie neprečítané témy.

banner

v Redakčné systémy

13

1110

17.08.2007 21:59

Kubo86

V tomto fóre nie sú ďalšie neprečítané témy.

Banner

v Grafické programy

10

2052

07.03.2008 17:34

capricorn7

V tomto fóre nie sú ďalšie neprečítané témy.

Banner

v JavaScript, VBScript, Ajax

21

1483

03.08.2008 12:27

kajbo

V tomto fóre nie sú ďalšie neprečítané témy.

Banner

v Redakčné systémy

3

1545

27.11.2005 12:06

stefo

V tomto fóre nie sú ďalšie neprečítané témy.

Banner

v Webdesign

25

1471

17.04.2008 20:53

Tominator

V tomto fóre nie sú ďalšie neprečítané témy.

banner

v Ostatné

9

901

18.05.2009 19:24

crank139

V tomto fóre nie sú ďalšie neprečítané témy.

Banner

v Ostatné

0

688

03.12.2010 18:55

esar

V tomto fóre nie sú ďalšie neprečítané témy.

Banner

v Grafické programy

5

988

26.05.2008 23:06

renderman

V tomto fóre nie sú ďalšie neprečítané témy.

banner.html

v HTML, XHTML, XML, CSS

7

636

24.03.2010 14:44

don jebot

V tomto fóre nie sú ďalšie neprečítané témy.

reklamny banner

v Internetový marketing, SEO, reklama

9

1534

08.03.2009 16:56

incredible

V tomto fóre nie sú ďalšie neprečítané témy.

flash banner

v Webdesign

12

1577

06.09.2008 17:46

don jebot

V tomto fóre nie sú ďalšie neprečítané témy.

neodstranitelny banner

v Antivíry a antispywary

1

320

24.05.2012 12:41

Ageiris

V tomto fóre nie sú ďalšie neprečítané témy.

Rolujuci banner

v JavaScript, VBScript, Ajax

0

469

24.04.2010 10:24

Rech25

V tomto fóre nie sú ďalšie neprečítané témy.

flash banner

v Ponuka práce

6

2253

29.02.2008 23:59

neopagan

V tomto fóre nie sú ďalšie neprečítané témy.

responsible banner

v HTML, XHTML, XML, CSS

1

271

04.08.2014 11:28

hatto13

V tomto fóre nie sú ďalšie neprečítané témy.

Nahodny banner

v PHP, ASP

12

689

17.06.2008 16:47

Blackshadow



© 2005 - 2024 PCforum, edited by JanoF