|
|
|
|
![]() ![]() |
Nov 25 2006, 01:04 AM
Post
#1
|
|
|
Newbie [Level 2] ![]() ![]() Group: Members Posts: 31 Joined: 9-August 06 Member No.: 28,049 |
Many of you would have noticed that on flickr, there's feature that you can select some part of the picture (usually there' a small box) and add description for that part when you upload.
Can someone tell me what kind of feature it is, and how it can be made ? im very keen to learn about that. I have attached the image below, there' you can see the boxes on the picture.. i want to learn how to make that feature.. please help me. Thanks. Sami.
|
|
|
|
Nov 25 2006, 03:40 AM
Post
#2
|
|
|
Desperately seeking "any key" to continue... ![]() Group: Admin Posts: 3,463 Joined: 23-April 05 From: Trap17 storage box Member No.: 6,042 |
Looks like the combination of Tool Tip (jhaslip as written a topic about this) and image layer code to combine two sets of images to form one.
The photo would behave as the background and the Tool Tip overlay acts as the item description. It would be nice to see if Trap17 master coders can manufacture something similar and post it under Programming section. |
|
|
|
Nov 25 2006, 06:27 AM
Post
#3
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 3,971 Joined: 24-July 05 From: In Trouble Again... still? Member No.: 9,787 ![]() |
Hmmmmm.... Image map and the Tooltip Pop-up combination... Might have to have a look at that possibility...
|
|
|
|
Nov 25 2006, 09:11 AM
Post
#4
|
|
|
apt-get moo ![]() Group: [MODERATOR] Posts: 2,103 Joined: 28-May 05 From: Hertfordshire, England Member No.: 7,593 ![]() |
Been searching around and by the looks of it no-one has tried anything like it and written a tutorial or any code for it. There are, however, a few similar things that might be of use for some code and ideas.
This uses JS to do a similar thing to Google Maps, so perhaps it could be adapted for any image. I don't have time to go through it, but it might be useful. This script applies tooltips to the various parts of an imagemap, but there is no box image or indication there is a tooltip there. Finally, this page goes into a little more detail about applying a fancy tooltip to an imagemap, but again there is no indication that a tooltip is there. |
|
|
|
Nov 25 2006, 02:51 PM
Post
#5
|
|
|
A clever man learns from his own mistakes, a WISE man learns from those of OTHERS ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 939 Joined: 12-April 06 From: Essex, UK Member No.: 21,719 |
Using an image map as jlhaslip said you can use the "alt" attribute of a link to display a smal box with text in it but its very uncustomizable. I havent used the tooltip thing so ill leave that for someone else!
The HTML for what i done is simple: CODE <CENTER><IMG SRC="hover.bmp" USEMAP="#sitemap" align=center> <map name="sitemap"> <area shape="rect" coords="85, 160, 325, 190" href="#" alt=Hover> </map> Just replace the numbers with the co-ords of the top left and bottom right corner points of the area and the alt message to the text you want. And of course the image SRC needs to be changed. ITs only a very simple example, the tooltip will probably be better |
|
|
|
Nov 25 2006, 03:08 PM
Post
#6
|
|
|
Newbie [Level 3] ![]() ![]() ![]() Group: Members Posts: 49 Joined: 29-October 06 Member No.: 32,450 |
i bulieve you can do it in many ways. for example in flash or in html coding.
both ways will give a neat effect to a picture. great ideea |
|
|
|
Jan 8 2007, 12:27 PM
Post
#7
|
|
|
Desperately seeking "any key" to continue... ![]() Group: Admin Posts: 3,463 Joined: 23-April 05 From: Trap17 storage box Member No.: 6,042 |
It's been bugging me how this "effect" didn't have a proper name.
And then this morning, walking down the Vegas Strip, it dawned on me. So I searched. And I think I found the correct term for this effect. Most commonly used terms is annotating image or parts of image. http://esw.w3.org/mt/esw/archives/000038.html The correct term, at least I can tell, is Image Region vocabulary http://www.bnowack.de/w3photo/pages/image_vocabs It's a mixture of XML with coordinates and an image. This is called RDF (Resource Description Framework). I'm still trying to understand how it is actually achieved but a demo generator in this page is the best I can find: http://www.kanzaki.com/docs/sw/img-annotator.html This site selects a region using JAVA script. Then you enter all tags for necessary fields and it generates RDF. And the final image is generated with an ID tag per region previously selected. Then the RDF can be used to describe individually or like the tool tip on the image. Pretty cool. I hope someone can isolate and strip the source scirpt so that it can be used on anyone's hosting account. ![]() A demonstration of page in action: http://www.kanzaki.com/bass/the-giant.rdf |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 30th August 2008 - 05:38 PM |