Tech.Inno
07-14-2011, 01:20 PM
I'm trying to use some some HTML for the 'title' of a image instead of text. So instead of:
<img src="your/url/here.jpg" title="some description" />
I want to use something like:
<img src="your/url/here.jpg" title="<div>some code</div>" />
I didn't think this was possible until I noticed it used on another site. But I can't seem to make it work. Here's the code from the site:
<a title="<div style='float:left;'><img src='/anime/images/thumbnail/331.jpg' /></div><div id='entry_tag_container'>
<div style='margin-left:5px;' id='entry_information'></div>
<ul id='entry_information_content'>
<li>
<ul>
<li id='entry_tag'></li>
<li id='entry_tag_content'>
<p> sci-fi aliens pirates space action harem gods </p>
</li>
</ul>
</li>
<li>
<ul>
<li id='entry_noe'></li>
<li class='entry_information_content'>
<p> 0 </p>
</li>
</ul>
</li>
<li>
<ul>
<li id='entry_length'></li>
<li class='entry_information_content'>
<p>
30 Minutes / Half Hour </p>
</li>
</ul>
</li>
<li>
<ul>
<li id='entry_yp'></li>
<li class='entry_information_content'>
<p>
1995 </p>
</li>
</ul>
</li>
</ul></div>
" class="list_title_middle" href="/anime?id=331">Tenchi Universe</a>
The result is very cool. This example is for the title of a link, however, my guess is it will work exactly the same with the title of an image.
Here's the site that came from if you want to see an example of what I'm trying to accomplish:
http://romanceanime.com/anime/
Thanks in advance for any help.
<img src="your/url/here.jpg" title="some description" />
I want to use something like:
<img src="your/url/here.jpg" title="<div>some code</div>" />
I didn't think this was possible until I noticed it used on another site. But I can't seem to make it work. Here's the code from the site:
<a title="<div style='float:left;'><img src='/anime/images/thumbnail/331.jpg' /></div><div id='entry_tag_container'>
<div style='margin-left:5px;' id='entry_information'></div>
<ul id='entry_information_content'>
<li>
<ul>
<li id='entry_tag'></li>
<li id='entry_tag_content'>
<p> sci-fi aliens pirates space action harem gods </p>
</li>
</ul>
</li>
<li>
<ul>
<li id='entry_noe'></li>
<li class='entry_information_content'>
<p> 0 </p>
</li>
</ul>
</li>
<li>
<ul>
<li id='entry_length'></li>
<li class='entry_information_content'>
<p>
30 Minutes / Half Hour </p>
</li>
</ul>
</li>
<li>
<ul>
<li id='entry_yp'></li>
<li class='entry_information_content'>
<p>
1995 </p>
</li>
</ul>
</li>
</ul></div>
" class="list_title_middle" href="/anime?id=331">Tenchi Universe</a>
The result is very cool. This example is for the title of a link, however, my guess is it will work exactly the same with the title of an image.
Here's the site that came from if you want to see an example of what I'm trying to accomplish:
http://romanceanime.com/anime/
Thanks in advance for any help.