image into title of link

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

image into title of link

Post by ddragas »

Hi all

Is it possible to put image into title of link?
x4t
Forum Newbie
Posts: 8
Joined: Wed Jul 06, 2005 9:53 am
Location: Netherlands
Contact:

Re: image into title of link

Post by x4t »

ddragas wrote:Hi all

Is it possible to put image into title of link?
What kind of info do you mean?
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Post by ddragas »

Is this possible to do?

Code: Select all

<?
$this_is_title = "<img src=\"../path/to/some/image/file\">";

echo "<td>" . '<a href="../stranice/pregled_proizvoda.php?id='.urlencode($id_proizvoda) . '" title="' . $this_is_title . '">' . $opis . "</td>";
?>
mp;amp;lt;?
$this_is_title = "<img src=\"../path/to/some/image/file\">";

echo "<td>" . '<a href="../stranice/pregled_proizvoda.php?id='.ur;<img src=\"../path/to/some/image/file\">";

echo "<td&gt;&quote; . '&lt;a href=&quote;../stranice/pregled_proizvoda.php?id='.urlencode($id_proizvoda) . '&quote; title=&quote;' . $this_is_title . '">' . $opis . "&e/file\">";

echo "<td>" . '<a href="../stranice/pregled_proizvoda.php?id='.urlencode($id_proizvoda) . '" title="' . $t../path/to/some/image/file\">";

echo "<td>" . '<a href="../stranice/pregled_proizvoda.php?id='.urlencode($id_proizvoda) . '" title="' . $this_is_title . '">' . $opis . "</td>";
?>o do?

Code: Select all

<?
$this_is_title = &quote;&lt;img src=\&quote;../path/to/some/image/file\&quote;&gt;&quote;;

echo &quote;&lt;td&gt;&quote; . '&lt;a href=&quote;../stranice/pregled_proizvoda.php?id='.urlencode($id_proizvoda) . '&quote; title=&quote;' . $this_is_title . '&quote;&gt;' . $opis . &quote;&lt;/o do?

Code: Select all

<?
$this_is_title = "<img src=\"../path/to/some/image/file\">";

echo "<td>" . '<a href="../stranice/pregled_proizvoda.php?id='.urlencode($id_proizvoda) . '" title="' . $this_is_title . '">' . $opis . "</td>";
?>
e;<img src=\"../path/to/some/image/file\">";

echo "<td>" . '<a href="../stranice/pregled_proizvoda.php?id='.urlencode($id_proizvoda) . '" title="' . $this_is_title . '">' . $opis . "</td>";
?>"../path/to/some/image/file\">";

echo "<td>&quote; . '&lt;a href=&quote;../stranice/pregled_proizvoda.php?id='.urlencode($id_proizvoda) . '&quote; title="' . $this_is_title . '">' . $opis . "</td>";
?&t;?
$this_is_title = "<img src=\"../path/to/some/image/file\">";

echo "<td>" . '<a href="../stranice/pregled_proizvoda.php?id='.urlencode($id_proizvoda) . '" title="' . $this_is_title . '">' . $opis . "</td>&quote;;
?&gt;amp;lt;td>" . '<a href="../stranice/pregled_proizvoda.php?id='.urlencode($id_proizvoda) . '" title="' . $this_is_title . '">' . $opis . "</t. $this_is_title . '">' . $opis . "</td>";
?>]
<?
$this_is_title = "<img src=\"../path/to/some/image/file\">";

echo "<td>" . '<a href="../stranice/pregled_proizvoda.php?id='.urlencode($id_proizvoda) . '" title="' . $this_is_title . '">' . $opis . "</td>";
?>uote;../stranice/pregled_proizvoda.php?id='.urlencode($id_proizvoda) . '" title="' . $this_is_title . '">' . $opis . &quote;&lt;/td&gt;&quote;;
?&quote;>' . $opis . "</td>";
?>p;amp;gt;" . '<a href="../stranice/pregled_proizvoda.php?id='.urlencode($id_proizvoda) . '" title="' . $this_is_title . '">' . $opis . "</td>";
?&groizvoda.php?id='.urlencode($id_proizvoda) . '" title="' . $this_is_title . '">' . $opis . "</td>";
?>o do?

Code: Select all

<?
$this_is_title = "<img src=\"../path/to/some/image/file\">";

echo "<td>" . '<a href="../stranice/pregled_proizvoda.php?id='.urlencode($id_proizvoda) . '" title="' . $this_is_title . '">' . $opis . "</td>";
?>
amp;lt;/td>";
?><?
$this_is_title = "<img src=\"../path/to/some/image/file\">";

echo "<td>" . '&lt;a href=&quote;../stranice/pregled_proizvoda.php?id='.urlencode($id_proizvoda) . '&quote; title=&quote;' . $this_is_title . '&quote;&gt;' . $opis . &quote;&lt;/o "<td>" . '<a href="../stranice/pregled_proizvoda.php?id='.urlencode($id_proizvoda) . '" title="' . $this_is_title . '">' . $opis . "</td>";
?>
<?
$this_is_title = "<img src=\"../path/to/some/image/file\">";

echo "<td>" . '<a href="../stranice/pregled_proizvoda.php?id='.urlencode($id_proizvoda) . '" title="' . $this_is_title . '">' . $opis . "</td>";
?>
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

In plain HTML, no.

Using DHTML with divs and some Javascript, yes.
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Post by ddragas »

thank you for reply
Post Reply