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.
The forum of the forums
3 posters

    Need code for widget that links to another page.

    Castellana
    Castellana
    Forumember


    Female Posts : 282
    Reputation : 5
    Language : english

    Solved Need code for widget that links to another page.

    Post by Castellana July 14th 2013, 8:02 pm

    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?
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

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

    Post by Ange Tuteur July 14th 2013, 10:28 pm

    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
    Castellana
    Castellana
    Forumember


    Female Posts : 282
    Reputation : 5
    Language : english

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

    Post by Castellana July 15th 2013, 12:21 am

    :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.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

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

    Post by SLGray July 15th 2013, 12:26 am

    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.
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

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

    Post by Ange Tuteur July 15th 2013, 12:26 am

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

      Current date/time is September 22nd 2024, 11:36 pm