nasel sem si tuhle peknou blbustku
http://tutorialzine.com/2010/03/sponsor ... query-css/
ale potreboval bych aby se mi rozkliknuty odkaz oteviral v novem okne.
Nevite co je treba pridat do kodu a kam aby se tak delo?
Moderátor: Moderátoři Živě.cz
onclick="window.open('url','mywindow'); return false;"
01 // Each sponsor is an element of the $sponsors array:
02
03 $sponsors = array(
04 array('facebook','The biggest social..','http://www.facebook.com/'),
05 array('adobe','The leading software de..','http://www.adobe.com/'),
06 array('microsoft','One of the top c..','http://www.microsoft.com/'),
07 array('sony','A global multibillion electronics..','http://www.sony.com/'),
08 array('dell','One of the biggest computer develo..','http://www.dell.com/'),
09 array('ebay','The biggest online auction and..','http://www.ebay.com/'),
10 array('digg','One of the most popular web 2.0..','http://www.digg.com/'),
11 array('google','The company that redefined w..','http://www.google.com/'),
12 array('ea','The biggest computer game manufacturer.','http://www.ea.com/'),
13 array('mysql','The most popular open source dat..','http://www.mysql.com/'),
14 array('hp','One of the biggest computer..','http://www.hp.com/'),
15 array('yahoo','The most popular network of so..','http://www.yahoo.com/'),
16 array('cisco','The biggest networking and co..','http://www.cisco.com/'),
17 array('vimeo','A popular video-centric social n..','http://www.vimeo.com/'),
18 array('canon','Imaging and optical technology ma..','http://www.canon.com/')
19 );
20
21 // Randomizing the order of sponsors:
22
23 shuffle($sponsors);
foreach($sponsors as $company)
04 {
05 echo'
06 <div class="sponsor" title="Click to flip">
07 <div class="sponsorFlip">
08 <img src="img/sponsors/'.$company[0].'.png" alt="More about '.$company[0].'" />
09 </div>
10
11 <div class="sponsorData">
12 <div class="sponsorDescription">
13 '.$company[1].'
14 </div>
15 <div class="sponsorURL">
16 <a href="'.$company[2].'">'.$company[2].'</a>
17 </div>
18 </div>
19 </div>
20
21 ';
22 }
15 <div class="sponsorURL">
16 <a href="'.$company[2].'" onclick="window.open(\''.$company[2].'\',\'mywindow\'); return false;">'.$company[2].'</a>
17 </div>
Uživatelé procházející toto fórum: Žádní registrovaní uživatelé a 0 návštevníků