Is There A Way To Make "absolute Links"? - Like links in a picture..

free web hosting
Open Discussion > General > Hosted Members Area

Is There A Way To Make "absolute Links"? - Like links in a picture..

Milk
I wanted to try a different layout but my lack of in-depth html knowledge prevents me from moving forward....I didn't know where else to post this, but I needed help so...

this is the image:

http://img115.echo.cx/img115/3231/sonata3ga.png

I wanted to do frames but I wanted also to make the links be from the image.......

Meaning, you see the flowers? Where the petals come out of, the circular things >_>;; They're magenta, cyan, and green. Um...these things: http://img241.echo.cx/img241/6057/yellow9ru.gif. Well, I wanted to make links out of those circular things and have them point into a frame (which is what the empty space out to the right would be...)

Can anyone tell/teach me how you can do that? I know you have to do absolute positioning or whatever it's called, and I've already got them cut out as gifs, but now I need to actually know how to link them. I don't have any html set up as of now, I just kinda wanted to know how you would start off?

I thank you guys in advance, if you're able to help me =/

 

 

 


Reply

beeseven
What I would do is first cut down the picture to just that group of flowers and then put that in a frame to the side. I haven't used frames in a long time, but you should be able to get code for them really easily on Google.

Next, you'd need a map to designate the parts as links:
CODE

 <img src="**LINK TO IMAGE**" usemap="#**MAP ID**" alt="**ALT**">
 <map id="**MAP ID**" name="**MAP NAME**">
  <area shape="circle" coords="**X, Y, R**" href="**LINK TO**" alt="**ALT**" target="**TARGET**">
 </map>

Replace the stuff with what you need. Make sure the map id is preceded by a #. You can add more areas and there are different shapes, but for the center of the flowers, those are all circles. For the coordinates, the origin (0,0) is at the top left of the image. R is the radius of the circle.

For more map stuff, go to http://www.w3schools.com/tags/tag_map.asp

 

 

 


Reply

clagnol
To accomplish your first goal of making a part of the flower into a link, you have three options:

Option one (and this is the option I would choose), you could create what is called an "image map" by inserting a little bit of html into your page.

CODE
<map name="flower">
<area shape="circle" coords="130,114,29" href="iframecontent.html" target="iframename">
</map>


In the above code, "130" is the x-position (horizontal) of the center of the circle (in pixels), and "114" is the y-position (vertical). "29" refers to the width of the radius.

If you have Dreamweaver, Fireworks, Imageready, or a comparable html/image editing program, the program will do most of the work for you.

For more another page on image maps, see this page.

Option two depends on the use of slices. Imageready and Fireworks will cut your image into rectangular slices. They are saved as individual images which are put together as one image. All you have to do is give the link slice a URL and then take the code provided by the image-editing program.

Often, designers prefer to cut up their images to make them load faster.

Option three is probably what you are inquiring about. You could position the yellow circle image on top of the larger image and make the small image into a link. There are a lot of ways this can go wrong, so I'd recommend you go with my first method, but here's how you could do it. Since you know about absolute positioning, I would assume you know how to place the small image right where you want it on top of the large image. To add a link, the code would look something like this:

<a href="iframecontent.html" target="iframename"><img src="flower.jpg" style="position: absolute; left: 235px; top: 78"></a>

Now this only leaves the matter of putting up an iframe. If you need any assistance with that, just reply. Good luck.

Reply

Tyssen
Or check out this page for a totally CSS-based solution.

Reply

Milk
Oh wow, thanks guys.

I have another question....is there a way to make the 'circle' different on hover? Like, I cut it out and made it 'brighter' so that when you hover over the circles, they'll light up.

>_> How would you do that?

Reply

dodgerblue
In your source code, between the < style > and < /style > tags, define the division style.

For example, the division ID is going to be called "circles"

This is what it should look like:

HTML
<html>
<head>
<style>

- whatever else styles you have -

<!-- the style of your div -->
#circles {
blah blah }

<!-- style of named objects -->
#circles a {
background: the color AT FIRST url(url of your circle image); }

<!-- style when your mouse goes over the links -->
#circles a:hover {
background: the color you want it to change to url(url of your circle image); }

</style>
</head>

<body>

<div id="circles">

<a name="circle1">the circle</a>

</div>

</body>

</html>


OK some explanation in order: The output you'll get is just the circle shape with the words "the circle" in the circle shape.

If you need to look at an example you can take a look at my blog. wink.gif The colour of the circles in the top menu changes when you hover your mouse over it - I assume that's the effect you're talking about.

It was done in PHP but that's too complicated to explain here and anyway I only used PHP because that's what my blog engine runs on. You'll get the same effect just fine if you use CSS and HTML. wink.gif

Hope that answered your question.

Any other questions I'll be happy to help. smile.gif

Notice from BuffaloHELP:
Edited as per request. Instead of [code] tag use [html] tag for pretty colors~ tongue.gif.

Reply

BuffaloHELP
Milk,

tatatee has written an excellent tutorial of editing image map effortlessly on this tutorial. I hope that helps you out in any ways. By the way, I've secretly always wanted to know how to do this, too rolleyes.gif

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Similar Topics

Keywords : absolute links links

  1. Help With Links - using /page instead of http://site.com/page (2)
  2. Php-nuke Help With Links - How to change links in theme DeepBlue? (0)
    Hi all, i have a problem. /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' />
    I have just installed PHP-Nuke, and use only one theme 'DeepBlue' which comes with the
    PHP-Nuke install here on Trap17. Now my question is, there is a bar of links at the top, just under
    the banner thing. I have replaced the images with mine, and wanting them to point to other pages.
    now my problem, How do i edit those links?..What file contains them? I have not edited files in any
    way. Take alook what i mean HERE , the bar under my logo, aircraft graphic. ...
  3. Anyone Want To Do A 'small' Code For Me? - I need my links at my site fixed. (9)
    www.gigapass.trap17.com You see the links at the top? I need those to have maybe a backround that
    reflects the users current theme sidebar color, and I need them to be spread out left to right. I am
    currently trying to learn php, so I have no idea where to start/what to do....
  4. Links To Me - (3)
    I am trying to figure out the best way to see what sites are linking to me. I have a counter on my
    page, and that helps. I also go into cpanel, look at my stats, and can see where they came from.
    Usually those are links to. But I would like to be able to do it on a search engine. Somebody
    previously said yahoo was good...but I wasnt able to see how to request it. So...what is the best
    way to see who links to me? Sunkist...
  5. Relevant Links - some errors (6)
    I know that the new relevant links feature gives trap17 money. But it shows the hosting competitors....
  6. Referral Links - Can we use them? (0)
    Are we allowed to use referral links on this forum. A friend (www.paidway.co.uk) told me one could
    if stated that they are referrals? Thanks...
  7. My 5 links to trap17 - (1)
    Here are my 5 links outside of trap17:
    http://microcuts.nexenservices.com/viewtop...p?p=63523#63523
    http://www.phpbb.com/phpBB/viewtopic.php?p=1182272#1182272
    http://forums.gentoo.org/viewtopic.php?p=1397797#1397797
    http://www.vbulletin.com/forum/showthread....3071#post713071
    http://www.webhostingtalk.com/showthread.p...threadid=303792 the last one did not let me put a
    link in so I just wrote the text....



Looking for make, absolute, links, links, picture

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for make, absolute, links, links, picture

*MORE FROM TRAP17.COM*
advertisement



Is There A Way To Make "absolute Links"? - Like links in a picture..



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE