Good day fellow coders,
I was hoping you would be able to look over my PHP Code below and help to me out. I am trying to get the http link to open in a new blank window.
Currently the link opens in the same window?
Can you help me out?
Any help or suggestions you can offer would be greatly greatly appreciated.PHP Code:
<?php
// Each sponsor is an element of the $sponsors array:
$sponsors = array(
array('fleming','Apply for the EVC Program today.','http://flemingcollege.ca/'),
array('rom','You belong at the ROM','http://www.rom.on.ca/'),
array('canadian_wildlife','Canadian Wildlife Federation. Celebrating 50 years.','http://www.cwf-fcf.org/en/index.html/'),
array('support','Help support Fleming College and the EVC Program.','http://flemingcollege.ca/'),
array('support','Help support Fleming College and the EVC Program.','http://flemingcollege.ca/'),
array('support','Help support Fleming College and the EVC Program.','http://flemingcollege.ca/'),
array('support','Help support Fleming College and the EVC Program.','http://flemingcollege.ca/'),
array('support','Help support Fleming College and the EVC Program.','http://flemingcollege.ca/'),
array('support','Help support Fleming College and the EVC Program.','http://flemingcollege.ca/'),
array('support','Help support Fleming College and the EVC Program.','http://flemingcollege.ca/'),
);
/* // Randomizing the order of sponsors:
shuffle($sponsors); */
?>
<?php
// Looping through the array:
foreach($sponsors as $company)
{
echo'
<div class="sponsor" title="Click to flip">
<div class="sponsorFlip">
<img src="images/collaborate/'.$company[0].'.png" alt="More about '.$company[0].'"/>
</div>
<div class="sponsorData">
<div class="sponsorDescription">
'.$company[1].'
<br /><br />
<div class="sponsorURL">
<a href="'.$company[2].'">'.$company[2].' </a>
</div></div></div></div>
';
}
?>
Many thanks,
Alan



Reply With Quote

Bookmarks