|
Posted by Steve on 10/14/06 04:31
"Wings" <glenn61@earthlink.net> wrote in message
news:quZXg.6863$Lv3.80@newsread1.news.pas.earthlink.net...
|I thought I had seen one of these before, but long searches have netted me
| nothing. (Not a programmer). If anyone knows the whereabouts of such a
| critter, I'd appreciate directions. I want to upload urls to an html doc
and
| have them put in a format of <A HREF="http://www.blah.blahblah">
|
| Thanks in advance.
interesting terminology...but anyway, here's a basic example in php. have
fun with the text-wrapping;
<?
$urls = array(
'Edit Profile' => 'blah.blah.php' ,
'Help' => 'blah.blah.blah.php' ,
'Log Out' => '?logOut=yes'
);
$urlOutput = "<div style=\"padding-right:2px; position:absolute; top:88px;
width:800px;\">\n";
foreach ($urls as $description => $uri)
{
$style = $description == 'Log Out' ? 'style="float:right;
margin-right:5px;"' : 'style="float:left; margin-left:8px"';
$urlOutput .= " <span " . $style . ">\n";
$urlOutput .= " <a class=\"topMenu\" href=\"" . $uri . "\"><span
class=\"menuItem\" style=\"border:solid 1px white; width:100px;\">" .
$description . "</span></a>\n";
$urlOutput .= " </span>\n";
}
$urlOutput .= "</div style=\"padding-right:2px; position:absolute;
top:88px; width:800px;\">\n";
echo $urlOutput;
?>
Navigation:
[Reply to this message]
|