The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How do I make this image clickable?

View previous topic View next topic Go down

Solved How do I make this image clickable?

Post by Cool-Guy on October 15th 2011, 1:07 pm

Hello,

I earlier got this code:

Code:
$(document).ready(function() {
  $('#chatbox_popup').after('<div class="novo" align="left"><img src="http://img51.imageshack.us/img51/2012/15656504.png" alt="stats" /></div>');
});

What can I do to make it a link to another page?

Thanks.


Last edited by Cool-Guy on October 15th 2011, 4:52 pm; edited 1 time in total

Cool-Guy
Forumember

Posts : 295
Reputation : 0
Language : English

Back to top Go down

Solved Re: How do I make this image clickable?

Post by *Mare-SBK™* on October 15th 2011, 1:13 pm

Just add a - anchor tags
Code:
$(document).ready(function() {
  $('#chatbox_popup').after('<div class="novo" align="left"><a href="URL"><img src="http://img51.imageshack.us/img51/2012/15656504.png" alt="stats" /></a></div>');
});

Just change URL to your link.

*Mare-SBK™*
Forumember

Male Posts : 181
Reputation : 16
Language : Serbian, English, German

http://design4u.forumsr.com/

Back to top Go down

Solved Re: How do I make this image clickable?

Post by Cool-Guy on October 15th 2011, 1:18 pm

Very, very good. But what if I want it to open in a new tab?

Cool-Guy
Forumember

Posts : 295
Reputation : 0
Language : English

Back to top Go down

Solved Re: How do I make this image clickable?

Post by *Mare-SBK™* on October 15th 2011, 1:26 pm

just add target="_blank" bounce
Code:
$(document).ready(function() {
  $('#chatbox_popup').after('<div class="novo" align="left"><a href="URL" target="_blank"><img src="http://img51.imageshack.us/img51/2012/15656504.png" alt="stats" /></a></div>');
});

*Mare-SBK™*
Forumember

Male Posts : 181
Reputation : 16
Language : Serbian, English, German

http://design4u.forumsr.com/

Back to top Go down

Solved Re: How do I make this image clickable?

Post by Cool-Guy on October 15th 2011, 1:39 pm

Amazing. Solved. bounce

Cool-Guy
Forumember

Posts : 295
Reputation : 0
Language : English

Back to top Go down

Solved Re: How do I make this image clickable?

Post by Sanket on October 15th 2011, 7:55 pm

Since this thread is marked solved, I will lock this thread.


Sanket Smile


Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum