The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Need code for widget that links to another page.

3 posters

Go down

Solved Need code for widget that links to another page.

Post by Castellana July 14th 2013, 22:02

Hello!  Hello 

I need help to create a portal page widget which will lead to another page in the forum. 
Here is what I want it to do -

The widget will be on the portal page: 
http://cvas.forumotion.com/portal

This photo will be what you see.  Here is the HTML for the photo:
<a href="https://s76.photobucket.com/user/dclaro/media/Plants/dcdSHOW10Gtop.jpg.html" target="_blank"><img src="https://2img.net/h/i76.photobucket.com/albums/j12/dclaro/Plants/dcdSHOW10Gtop.jpg" border="0" alt="10G tank open top view. photo dcdSHOW10Gtop.jpg"/></a>

And when you click on it it will lead you to this page:
http://cvas.forumotion.com/f2-plants

Can someone tell me what to put in the widget source code to accomplish that?
Castellana
Castellana
Forumember

Female Posts : 282
Reputation : 5
Language : english

http://cvas.forumotion.com/portal

Back to top Go down

Solved Re: Need code for widget that links to another page.

Post by Ange Tuteur July 15th 2013, 00:28

From what I see you're currently linking to the image on photobucket, so when I click the image it will take me to photobucket.

<a href="https://s76.photobucket.com/user/dclaro/media/Plants/dcdSHOW10Gtop.jpg.html" target="_blank">

I edited your code and corrected it with the url you specified above.
Code:
<a href="http://cvas.forumotion.com/f2-plants" title="Plants" target="_blank"><img src="http://i76.photobucket.com/albums/j12/dclaro/Plants/dcdSHOW10Gtop.jpg" alt="Plants"/></a>

I also added in title which displays a title for the link when you hover over the object, it is currently set to 'Plants'. alt has been changed to 'Plants' as well, that is the content which is displayed when a image has not been loaded. You can modify all the content in the code above to your liking. If you need anymore help or information on HTML please let us know. Smile
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Need code for widget that links to another page.

Post by Castellana July 15th 2013, 02:21

:wouhou: 
It works perfectly!

Thank you very much, Seth.  My plan is to change the photo periodically and now I know how to do that, too.
Castellana
Castellana
Forumember

Female Posts : 282
Reputation : 5
Language : english

http://cvas.forumotion.com/portal

Back to top Go down

Solved Re: Need code for widget that links to another page.

Post by SLGray July 15th 2013, 02:26

Topic Solved & Locked


Need code for widget that links to another page. Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51453
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Need code for widget that links to another page.

Post by Ange Tuteur July 15th 2013, 02:26

You're welcome, good luck on your forum. Wink
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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