It is currently Mon Sep 07, 2026 3:56 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 17 posts ] 
Author Message
 Post subject: How to enable a banner to link to an URL?
PostPosted: Sat May 28, 2011 12:11 am  (#1) 
Offline
GimpChat Member

Joined: May 28, 2011
Posts: 62
GIMP Version: 2.6.11
Operating System: Mac OS
OS Version: XP - SP3
GIMP Experience: Beginner Level



ok, I'll admit it - I'm dead new to this Gimp fun, but despite searching the web I cannot find out how to make my web banner have a link to an URL.

I've looked through all the drop down lists and see nothing that might help.

Can someone point me in the right direction, please?

:tyspin


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: How to enable a banner to link to an URL?
PostPosted: Sat May 28, 2011 12:30 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12845
[url=your website][img]your image[/img][/url]

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: How to enable a banner to link to an URL?
PostPosted: Sat May 28, 2011 12:37 am  (#3) 
Offline
GimpChat Member

Joined: May 28, 2011
Posts: 62
Where in the banner layer(s) do I put this code, though?


Top
 Post subject: Re: How to enable a banner to link to an URL?
PostPosted: Sat May 28, 2011 12:40 am  (#4) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5241
Location: Gimpville
The code to link your banner to a URL is not a function of GIMP. It's a function of HTML. Gimp Chat and most other discussion forums use BBcode (which gets converted to HTML).

lylejk is correct for posting a banner in here or on most other discussion forums which use BBcode.

However, if you are using basic HTML (not clear from your question), the code would be..

<a href="http://wesbite.com"><img src="http://website.com/image.jpg" alt="some text"></a>

If you want the browser to open your link in a new window or tab, add target="_blank" to the href tag.

<a href="http://wesbite.com" target="_blank" ><img src="http://website.com/image.jpg" alt="some text"></a>

You can add additional parameters that specify the size and position of the banner. Read more here.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: How to enable a banner to link to an URL?
PostPosted: Sat May 28, 2011 12:49 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12845
Assumed you meant here Windy. Other places (like the Registry for instance) uses HTML and then you need to do as Tux said. Wacky isn't it? lol

I never wanted to ever learn any of these codes and such, but after 8+ years, it just becomes an afterthought. Still, I have to admit that I do like the sites that include a wizard to do this for you.

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: How to enable a banner to link to an URL?
PostPosted: Sat May 28, 2011 12:54 am  (#6) 
Offline
GimpChat Member

Joined: May 28, 2011
Posts: 62
My error, what I meant was that I want to make a banner to go on someone else's website, and I need my banner to have a link to my own website embedded in it somewhere so that when a viewer does a mouseover they can click on the banner and get to my site.


Top
 Post subject: Re: How to enable a banner to link to an URL?
PostPosted: Sat May 28, 2011 1:00 am  (#7) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5241
Location: Gimpville
You can't "embed" a link inside an image. You will have to use HTML code similar to the example I gave you, except with URLs to your image and your website.

The code needs to specify the location of your image (img tag)

img src="http://image_website.com/image.jpg"

and the location of the website you want to go to when the image is clicked (href tag)

href="http://your_wesbite.com"

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: How to enable a banner to link to an URL?
PostPosted: Sat May 28, 2011 1:03 am  (#8) 
Offline
GimpChat Member

Joined: May 28, 2011
Posts: 62
I see. So I have a copy of the banner on the 'other' site, and a copy on my own site, is that right?


Top
 Post subject: Re: How to enable a banner to link to an URL?
PostPosted: Sat May 28, 2011 1:06 am  (#9) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5241
Location: Gimpville
You only need to have the image on one website.

For example, suppose you have an image "my_image.jpg" on website1.com..

and you wanted to link to website2.com when that image is clicked. The code would be..

<a href="http://wesbite2.com"><img src="http://website1.com/my_image.jpg" alt="some text"></a>

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: How to enable a banner to link to an URL?
PostPosted: Sat May 28, 2011 1:09 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12845
Yes, you need to host the image at your site, then you need to get the online path for your banner (it will be in the form of http://img339.imageshack.us/img339/2624/peony2.jpg (yes, this is something that I recently rendered for another site so it's an actual image link. Note, if you are using BBS, you don't use the quotes like you would html code) to use as per the above (for here, you need to use BBS codes). :)

edit:

Argue; you beat me to it Tux. lol

:)

_________________
Lyle

Psalm 109:8

Image


Last edited by lylejk on Sat May 28, 2011 1:13 am, edited 1 time in total.

Top
 Post subject: Re: How to enable a banner to link to an URL?
PostPosted: Sat May 28, 2011 1:12 am  (#11) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5241
Location: Gimpville
lylejk wrote:
you beat me to it Tux. lol

Ninja posted you, lylejk. :lol

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: How to enable a banner to link to an URL?
PostPosted: Sat May 28, 2011 1:13 am  (#12) 
Offline
GimpChat Member

Joined: May 28, 2011
Posts: 62
Blimey, food for thought!

Cheers both, I'll see how I get on.

W


Top
 Post subject: Re: How to enable a banner to link to an URL?
PostPosted: Sat May 28, 2011 3:03 am  (#13) 
Offline
GimpChat Member

Joined: Apr 11, 2010
Posts: 545
Location: In the mini-chat, saying silly things
To make things extra clear (or confuse you more. :lol ), the code GnuTux and Lyle are talking about has be put on the website where you want the image to show.

A website is made with html code and you need to alter that code to make it show your image.
If it is someone else's website you might not be able to change the code at all unless they give you permission to work on it, or they will do it for you.

There is some function in GIMP though that can do something with html code, or at least prepare it for a website, but don't ask me, what, where, when or how late because for the life of me I cannot remember. But there is something buried there that has something to do with websites.
Anyone feel like reading the manual?

_________________
Image


Top
 Post subject: Re: How to enable a banner to link to an URL?
PostPosted: Sat May 28, 2011 3:11 am  (#14) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16170
Tux and Lyle pretty much have it covered. :)

_________________
Image


Top
 Post subject: Re: How to enable a banner to link to an URL?
PostPosted: Sat May 28, 2011 3:23 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Oct 06, 2010
Posts: 4050
You can embed links into for images using javascript, but that's a whole new ballgame with a big chunk of information to chew on for beginners.

You can also use absolute positioning of your link coordinates creating an image map, which doesn't require javascript, but HTML.

Edit:
To clarify the above comments. You can embed links for an image, by creating an image map, that has defined coordinates within the image. If you're interested you can learn more about that here:

http://www.w3schools.com/tags/tag_map.asp

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Last edited by mahvin on Sun May 29, 2011 12:35 am, edited 1 time in total.

Top
 Post subject: Re: How to enable a banner to link to an URL?
PostPosted: Sat May 28, 2011 4:04 pm  (#16) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5241
Location: Gimpville
I would quibble a bit with your terminology, Mahvin. You can associate an image with a link using javascript, much the same as you do using HTLM or PHP. However, the link is not embedded in (or is any way a part of) the image.

As fas as HTML image maps are concerned, you can associate specific areas within an image (or the entire image) with clickable links but again, it's simply external code and not part of the image.

Just to be clear, no attribute of the map tag allows you to position an image.

It should be mentioned that you can also create a linkable image using CSS.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: How to enable a banner to link to an URL?
PostPosted: Sun May 29, 2011 12:37 pm  (#17) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
I can't imagine that anyone can put a linking image on someone else's website the way we can do in a forum comment...wouldn't you just send the code to them to incorporate into their site?


Top
Post new topic Reply to topic  [ 17 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group