Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: link us button

  1. #1
    Regular Coder Crake's Avatar
    Join Date
    Dec 2004
    Location
    Loose, Maidstone, KENT
    Posts
    577
    Thanks
    0
    Thanked 3 Times in 3 Posts

    link us button

    hi i have my own little button and i want to be able to say link us and give a html code for it. the button is placed www.powarfun.com/powar.jpg the image i wud like is tht. thankls for ure help.
    SteveO

  • #2
    New Coder
    Join Date
    Jan 2005
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <textarea name=fd rows=4 cols=40><a href="www.powarfun.com"><img border=0 src="www.powarfun.com/powar.jpg"></a></textarea>
    Last edited by Dmitriy; 02-05-2005 at 07:28 PM.

  • #3
    Regular Coder
    Join Date
    May 2004
    Location
    Berkeley, California Age: 15
    Posts
    398
    Thanks
    0
    Thanked 0 Times in 0 Posts
    its just standard html...with a bit of Unicode
    Code:
    <div style="Add styles here">Link to us!</div>
    <img src="www.powarfun.com/powar.jpg" alt="Powarfun">
    <code>
    &lt;a href="powarfun.com"&gt;&lt;img src="www.powarfun.com/powar.jpg" alt="Powarfun"&gt;&lt;/a&gt;
    </code>
    dump all that in your html...

    &lt; is for <
    &gt; is for >

    If you don't want to sstyle the "link to us" part you could just dump the <div> and add a <br> at the end.

    This allows the browser to not actually render the html code and just display it as plain text. any questions?

    Edit:
    Dmitry, you didn't close your <a> tag, used textarea randomly, and you can't use img inside textarea according to HTML specs
    Last edited by Jalenack; 02-05-2005 at 07:26 PM.
    Jalenack.com .:. YWDA Founder .:. Rounded Corners Maker 1.1! .:. My Blog
    The hardest thing about teaching is not knowing the right answers, but knowing the right questions - Elisabeth Klein
    Pretty buttons does not a great website make.

  • #4
    New Coder
    Join Date
    Jan 2005
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thants not what i mean...go ahead and put it in notepad and save it as htm and u will c what i mean

    In your situation there will be an ugly border around the image...border="0" is needed
    Last edited by Dmitriy; 02-05-2005 at 07:39 PM.

  • #5
    Regular Coder
    Join Date
    May 2004
    Location
    Berkeley, California Age: 15
    Posts
    398
    Thanks
    0
    Thanked 0 Times in 0 Posts
    fine but thats a style choice not a 'how to code this' choice.

    You can just add to your css to set it universally for all images enclosed in links:
    a img {border: none}

    He knows how to code a link with an image inside, thats easy. He wants to display the code on his site for other webmasters to copy and paste...which is what i showed him. You shouldn't be using textarea, its a form element.you could style it with <div style="overflow: scroll">**text**</div>..but you have to use lt; and gt;
    Last edited by Jalenack; 02-05-2005 at 07:53 PM.
    Jalenack.com .:. YWDA Founder .:. Rounded Corners Maker 1.1! .:. My Blog
    The hardest thing about teaching is not knowing the right answers, but knowing the right questions - Elisabeth Klein
    Pretty buttons does not a great website make.

  • #6
    New Coder
    Join Date
    Jan 2005
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes it does but have u seen his site?
    He has a text area there where he wants his code to be

    Code:
    <textarea name="textarea" cols="17" rows="5">
    &lt;a href="http://powarfun.com"&gt; &lt;img border=0 src="http://powarfun.com/powar.jpg" width="128" height="50"&gt;&lt;/a&gt;</textarea>

    There

  • #7
    Regular Coder Crake's Avatar
    Join Date
    Dec 2004
    Location
    Loose, Maidstone, KENT
    Posts
    577
    Thanks
    0
    Thanked 3 Times in 3 Posts

    thanks everyone!

    cheers everyone for helpng me
    SteveO


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •