background linkable

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Nov 17, 2012 5:06 am
Reply with quote
Report this post
I would like to know how to make the background linkable
User avatar
Expert Boarder

GK User
Sun Nov 18, 2012 11:38 am
Reply with quote
Report this post
Hi,

Which background do you want to make a linkable?
User avatar
Administrator

GK User
Sun Nov 18, 2012 4:06 pm
Reply with quote
Report this post
I want to add a background image and make it linkable to the url I want.
User avatar
Expert Boarder

GK User
Sun Nov 18, 2012 5:42 pm
Reply with quote
Report this post
It is impossible, because the background image cannot receive events like onClick - theoretically you can add onClick event for the container with the background image but:

1) The event will be fired also on the page, so you will have a big problems with the event propagation

2) The event will be fired on the whole container, not only on the place where the background is placed.
User avatar
Administrator

GK User
Sun Nov 18, 2012 5:48 pm
Reply with quote
Report this post
I understand that you can not do.

But you can not put a target = "blank" on the link to open in a new window, would be like putting a banner.
User avatar
Expert Boarder

GK User
Sun Nov 18, 2012 5:55 pm
Reply with quote
Report this post
But the page background is not a link ;)
User avatar
Administrator

GK User
Sun Nov 18, 2012 5:57 pm
Reply with quote
Report this post
The background is a picture, which I want to link to a url that is not mine, like a giant banner.
User avatar
Expert Boarder

GK User
Sun Nov 18, 2012 6:38 pm
Reply with quote
Report this post
Sorry but I totally don't understand - please visualize on the screen what do you want to make linkable.
User avatar
Administrator

GK User
Sun Nov 18, 2012 6:45 pm
Reply with quote
Report this post
Sorry for my English.

Any place on the background image. The image I want to link.
The link would lead to another site, such as a banner ad.
User avatar
Expert Boarder

GK User
Sun Nov 18, 2012 7:00 pm
Reply with quote
Report this post
As I wrote earlier - could you make some screenshot with small example even in Paint? Because I still don't understand what do you want to achieve :/
User avatar
Administrator

GK User
Sun Nov 18, 2012 7:23 pm
Reply with quote
Report this post
User avatar
Expert Boarder

GK User
Mon Nov 19, 2012 8:32 am
Reply with quote
Report this post
So I've replied you what is a problem in this case:

It is impossible, because the background image cannot receive events like onClick - theoretically you can add onClick event for the container with the background image but:

1) The event will be fired also on the page, so you will have a big problems with the event propagation

2) The event will be fired on the whole container, not only on the place where the background is placed.
User avatar
Administrator


cron